Commit Graph

31 Commits

Author SHA1 Message Date
ohsqueezy 102d1749a5 added function to disable audio chunks, colors default to fully transparent, add public getters for Pad::box and Pad::visible 2024-05-01 20:25:35 -04:00
ohsqueezy 65eead0079 use experimental filesystem path for Ubuntu 18.04 2024-04-18 00:01:23 -04:00
ohsqueezy 464e69be56 fix initial config modification check, add wrap parameter to text object 2023-12-12 00:42:38 -05:00
ohsqueezy a91bc4b773 - JSON from file static function
- configuration option to start in fullscreen
- render text wrapped when exceeding 3000 pixels wide (arbitrary temporary value)
- set timer elapsed to any amount of seconds
2023-11-04 23:52:43 -04:00
ohsqueezy e168844fc5 - added Windows build using MinGW for box demo along with Windows instructions to main README
- replaced Model class in box demo with library's Model class
- switched GL context profile mask to compatibility in Windows builds
- only open audio device if audio is initialized
- increase default audio frequency and buffer size
- convert path objects to strings for compatibility with MinGW
- update MinGW builds to use regular filesystem library instead of experimental
2023-10-18 00:07:32 -04:00
ohsqueezy 293d74e396 removed hyphens from keyboard input related configuration key names 2023-09-22 14:56:35 -04:00
ohsqueezy d882e111b3 - fix sb::Pad to move the collision box when scaled or translated
- add warning about config JSON copy
- add setter for sb::Pad::_plane
- move point on circle functions from extension to math
2023-09-16 21:04:43 -04:00
ohsqueezy f9d171626f added more conversion rules for JSON array to GLM vertex, truncate attribute string representation, post reconfig event on configuration reload, added font load function, added exception handling to functions that bind textures 2023-07-23 17:11:41 -04:00
ohsqueezy 1d527898aa watch multiple config files for changes 2023-07-21 00:51:19 -04:00
ohsqueezy 55d6e08480 convert between glm::vec and sb::Color, print hierarchy on config access error, composite text onto a separate background surface, set frame time to zero when timer paused 2023-07-08 16:19:31 -04:00
ohsqueezy 3db0a3bd32 set invert Y to default for Box class, add support for any size GLM vector to JSON library 2023-06-27 14:33:14 -04:00
ohsqueezy 635562263b allow arbitrary functions to be attached to animation objects instead of only node object member functions 2023-06-23 01:45:28 -04:00
ohsqueezy 6371f9c279 remove Sprite class 2023-06-08 20:04:40 -04:00
ohsqueezy c16d71222d add example for using configuration's parenthesis operator 2023-06-08 18:02:04 -04:00
ohsqueezy f7368907da add parenthesis operator access to configuration 2023-06-08 17:58:20 -04:00
ohsqueezy 355ab4d8c4 - pass timestamp of frame start time to all update functions
- use timestamp instead of SDL_GetTicks to keep time in Timer class
- use seconds instead of milliseconds in Timer class
2023-06-07 20:22:20 -04:00
ohsqueezy 3ba3be4496 - add Switch and time_it classes
- finish adding #pragma once to headers
- move configuration initialization into Game class
- print debug to stdout by default
- explicitly pass file to refresh to config auto refresh
- add delegate to sb namespace and deprecate get_delegate() in favor of delegate()
- set custom log function before loading config
- raise exception when no model textures are available
2023-05-23 15:28:53 -04:00
ohsqueezy 8c086ba161 add instructions for curl; add array operator to configuration, give configuration object access to nodes; fix src paths in android skeleton script; add copy file function 2023-05-10 02:51:11 -04:00
frank f47c080d72 box demo android support, android file to string for reading files inside APK 2022-11-08 17:17:20 -05:00
frank ad9aab4a46 android helper scripts and icon assets and fill screen android demo 2022-10-17 21:57:56 -04:00
frank 03d179eed4 attributes can be accessed as a typed vector; box set gl mode function; mouse events are suppressed in addition to key events when input is suppressed 2021-11-09 23:30:27 -05:00
frank f70ea1c215 started log class 2021-10-02 19:21:07 -04:00
frank c8bc86cab7 squircle and 2d collision demo; config auto refresh 2021-08-31 23:55:38 -04:00
frank ba44b8e8d5 box documentation, remove get/set prefixes from Box and Segment 2021-08-14 19:53:39 -04:00
frank fff9e13562 custom log function; change Game and Node from struct to class 2021-06-24 17:40:30 -04:00
Frank DeMarco 013f8279d4 audio, sfx and bgm classes; filesystem path added as type to json lib 2020-09-11 18:01:27 -04:00
Frank DeMarco 0e6e506c68 added children to sprites; sprite can set canvas it will draw on; fixed memory leak in precise collision detection on scaled sprites 2020-09-04 23:10:39 -04:00
Frank DeMarco 41dbfb8498 key map 2019-05-04 03:25:35 -04:00
Frank DeMarco 845d3bb883 pass object bound functions to delegate 2019-05-03 22:16:56 -04:00
Frank DeMarco cf695b3d10 class name 2019-05-02 20:11:45 -04:00
Frank DeMarco e40201cd11 json config library 2019-05-02 06:45:41 -04:00