Chunker size to uint8 and Rectangular Doodads #84

Злито
kirsle злито 3 комітів з file-format-optimization до master 2023-02-18 05:49:49 +00:00
kirsle прокоментував(ла) 2023-02-17 05:47:58 +00:00
Власник

Convert the Chunker size to a uint8 so chunk sizes are limited to 255px. This
means that inside of a chunk, uint8's can track the relative pixel coordinates
and result in a great memory savings since all of these uint8's are currently
64-bits wide apiece.

WIP on rectangular shaped doodads:

  • You can create such a doodad in the editor and draw it normally.
  • It doesn't draw the right size when dragged into your level however:
    • In uix.Actor.Size() it gets a rect of the doodad's square Chunker size,
      instead of getting the proper doodad.Size rect.
    • If you give it the doodad.Size rect, it draws the Canvas size correctly
      instead of a square - the full drawing appears and in gameplay its hitbox
      (assuming the same large rectangle size) works correctly in-game.
    • But, the doodad has scrolling issues when it gets to the top or left edge
      of the screen! This old gnarly bug has come back. For some reason square
      canvas doodads draw correctly but rectangular ones have the drawing scroll
      just a bit - how far it scrolls is proportional to how big the doodad is,
      with the Start Flag only scrolling a few pixels before it stops.
Convert the Chunker size to a uint8 so chunk sizes are limited to 255px. This means that inside of a chunk, uint8's can track the relative pixel coordinates and result in a great memory savings since all of these uint8's are currently 64-bits wide apiece. WIP on rectangular shaped doodads: * You can create such a doodad in the editor and draw it normally. * It doesn't draw the right size when dragged into your level however: - In uix.Actor.Size() it gets a rect of the doodad's square Chunker size, instead of getting the proper doodad.Size rect. - If you give it the doodad.Size rect, it draws the Canvas size correctly instead of a square - the full drawing appears and in gameplay its hitbox (assuming the same large rectangle size) works correctly in-game. - But, the doodad has scrolling issues when it gets to the top or left edge of the screen! This old gnarly bug has come back. For some reason square canvas doodads draw correctly but rectangular ones have the drawing scroll just a bit - how far it scrolls is proportional to how big the doodad is, with the Start Flag only scrolling a few pixels before it stops.
kirsle додав 1 коміт 2023-02-17 05:47:58 +00:00
Convert the Chunker size to a uint8 so chunk sizes are limited to 255px. This
means that inside of a chunk, uint8's can track the relative pixel coordinates
and result in a great memory savings since all of these uint8's are currently
64-bits wide apiece.

WIP on rectangular shaped doodads:
* You can create such a doodad in the editor and draw it normally.
* It doesn't draw the right size when dragged into your level however:
  - In uix.Actor.Size() it gets a rect of the doodad's square Chunker size,
    instead of getting the proper doodad.Size rect.
  - If you give it the doodad.Size rect, it draws the Canvas size correctly
    instead of a square - the full drawing appears and in gameplay its hitbox
    (assuming the same large rectangle size) works correctly in-game.
  - But, the doodad has scrolling issues when it gets to the top or left edge
    of the screen! This old gnarly bug has come back. For some reason square
    canvas doodads draw correctly but rectangular ones have the drawing scroll
    just a bit - how far it scrolls is proportional to how big the doodad is,
    with the Start Flag only scrolling a few pixels before it stops.
kirsle додав 1 коміт 2023-02-18 05:09:29 +00:00
* Fix display bug with rectangular doodads scrolling off screen.
* The default Author of new files will be your registration name, if available
  before using your $USER name.
kirsle додав 1 коміт 2023-02-18 05:49:23 +00:00
kirsle змінився заголовок з WIP: Chunker size to uint8 and Rectangular Doodads на Chunker size to uint8 and Rectangular Doodads 2023-02-18 05:49:38 +00:00
kirsle merged commit 0d8933513e into master 2023-02-18 05:49:49 +00:00
kirsle видалена гілка file-format-optimization 2023-02-18 05:49:49 +00:00
Підпишіться щоб приєднатися до обговорення.
Немає рецензентів
Етап відсутній
Немає виконавця
1 учасників
Сповіщення
Дата завершення
Термін дії не дійсний або знаходиться за межами допустимого діапазону. Будь ласка використовуйте формат 'yyyy-mm-dd'.

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: SketchyMaze/doodle#84
No description provided.