Commit Graph

14 Commits (master)

Author SHA1 Message Date
Noah 9d436db917 Add IsFingerDown boolean to the Event object
IsFingerDown will be true as long as at least one finger has registered
a TouchDown event but not yet a TouchUp. The calling program can check
this boolean to distinguish a mouse movement from a physical mouse to a
probable touch based swipe.
2024-04-19 22:00:23 -07:00
Noah 129a24300d SDL2: Reveal the ShowCursor function 2022-05-04 22:39:06 -07:00
Noah c0c2d05619 Add RWMutex safety around the SDL2 texture cache 2022-04-10 12:27:20 -07:00
Noah c1b8bc910b SDL2 engine: expose renderer for custom use cases 2022-03-05 15:22:12 -08:00
Noah 1f4af682e1 SDL2 GameController Support 2022-02-19 18:22:55 -08:00
Noah 9e640ab5c3 SetWindowIcon for SDL2 and Text.Update() 2021-12-30 16:39:48 -08:00
Noah e5f4c3a168 Maximize SDL2 window 2020-07-09 19:32:47 -07:00
Noah 6803170675 Clean up repository for stand-alone release 2019-12-22 15:53:52 -08:00
Noah 5c803f6a88 render: Refactor Events System to Make Module Standalone
* Refactor the events used in lib/render/sdl to be more general-purpose
  to make librender a stand-alone library separate from Doodle.
2019-12-22 14:11:01 -08:00
Noah 4ad32c6edf SDL2: Cache Bitmaps in Memory, Not on Disk
* Update the SDL2 engine's texture caching to use an sdl.RWops file
  buffer in memory instead of outputting bitmap images to the
  filesystem.
2019-06-27 12:46:35 -07:00
Noah 5e9443bcff Add MenuScene with New Level UI
* Debug mode: no longer enables the DebugOverlay (F3) by default, but
  does now insert the current FPS counter into the window title bar.
* ui.Frame: set a default "mostly transparent" BG color so the frame
  background doesn't render as white.
* Add the MenuScene which will house the game's main menus.
* The "New Level" menu is first to be added.
  * UI lets you pick Page Type and Wallpaper using radio buttons.
  * Page Type: Unbounded, Bounded (default), No Negative Space, Bordered
  * Fix bugs in uix.Canvas to fully support all these page types.
2019-06-25 15:01:37 -07:00
Noah 95ef079724 Remove pkg/log from lib/render package
This breaks the last ties from the lib/ folder of publicly open
sourceable code from the internals of Doodle in pkg/
2019-04-18 22:14:02 -07:00
Noah 31e01987e5 Clean up extra log modules 2019-04-09 17:47:03 -07:00
Noah cddc41465f Code Layout Refactor
* All private Doodle source code into the pkg/ folder.
* Potentially public code into the lib/ folder.
* Centralize the logger into a subpackage.
2019-04-09 17:35:44 -07:00