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
9a6b80f443
added function for extracting a grid of tile surfaces from a larger SDL surface
2023-09-18 22:10:04 -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
c0852ba04f
add extend vector function, 2D endpoint function, input check on wrap point
2023-06-22 14:38:56 -04:00
ohsqueezy
1ca956b5ac
- add function for wrapping an arbitrary point or curve into an arbitrary clip space
...
- remove custom mod functions in favor of glm::mod
- deactivate recorder object during game construction after full config is loaded
2023-06-05 18:22:43 -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
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
dd736f341f
started utilities file
2021-11-01 17:33:27 -04:00
frank
8972b0c868
move stream operator overloads into std namespace
2021-10-22 15:06:05 -04:00
frank
186d14cb48
print glm matrix types
2021-10-19 16:22:56 -04:00
frank
1690bb5f19
attributes object for holding generic gl vertices
2021-10-13 00:34:11 -04:00
frank
a6bcc2a4d9
stream operator for all variants of glm vec
2021-10-08 23:43:21 -04:00
frank
f70ea1c215
started log class
2021-10-02 19:21:07 -04:00
frank
ada139c26f
change sfw namespace to sb
2021-09-02 18:23:48 -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
fe3e0bf27f
optionally pass a vector to fill with circle points
2021-08-07 01:05:16 -04:00
frank
2831f2fc60
restored gl screen capture; get points on circle utility function
2021-08-02 20:18:56 -04:00
frank
569e203409
move gl attributes to right before opening gl context; file to string func
2021-07-02 22:42:48 -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
c6341d2bfc
added get point on circle function
2020-09-06 16:05:19 -04:00
Frank DeMarco
35a5acbd53
optionally exclude delay time from checking if animation is playing
2020-09-05 19:40:59 -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
877d63cf4e
fix sprite wipe and precision collision for scaled sprites; box move and return copy function
2020-09-02 23:32:01 -04:00
Frank DeMarco
3a571adaa3
segment comparison operators; get sdl surface from pixels
2020-09-01 17:00:17 -04:00
Frank DeMarco
9058f93ad9
reverse wipe; more precision converting floats in box to sdl_rect
2020-08-31 16:36:56 -04:00
Frank DeMarco
54a8c219ed
add wipe animation to sprite
2020-08-29 23:49:45 -04:00
Frank DeMarco
edc836908d
box inherits sdl_rect; color comparison operators; pixels operator() returns pointer of void, 8bit, 16bit, or 32bit; remap texture uses pixel class
2020-08-26 16:43:43 -04:00
Frank DeMarco
8346f43f21
- Pixel class generalizes pixel access, reads, writes, and applies
...
pixel value modifications to textures of any SDL_TEXTUREACCESS_* and
any pixel format
- Color inherits SDL_Color directly instead of emulating it
- added cast operator for converting Box to SDL_Rect
2020-08-22 20:06:06 -04:00
Frank DeMarco
14afcef0ce
fix root lookup; add vec2 to json types; render test image when window is created
2020-08-21 02:21:34 -04:00
Frank DeMarco
bab8c778ca
color class, sprite hue shift, generate halo and portal effect
...
animation frames, ignore repeat keys, hue shifted texture
2020-08-19 03:29:46 -04:00
Frank DeMarco
ae644b7138
collide box/box, box/line, box/point; sprite/sprite and sprite/box precise alpha collision
2020-08-09 16:32:32 -04:00
Frank DeMarco
2b9dd44ff7
- fix bug in box right drag
...
- print int vector
- duplicate texture resized
2020-08-07 01:38:19 -04:00
Frank DeMarco
f5d03b9be6
- extended version of sdl gfx primitives
...
- drag left and right edge box
- complete segment member functions
- extension functions: get segments, get relative step, populate
pixel array
2020-08-06 18:54:50 -04:00
Frank DeMarco
1861b80aa4
line intersection formula from GraphicsGems; started Segment class
2020-08-02 00:52:50 -04:00
Frank DeMarco
555c1e51a3
- optionally preserve center when modifying box size
...
- sprite scale modifier and scale quality setting
- get filled texture method
- get map keys utility method
2020-07-31 12:10:21 -04:00
Frank DeMarco
16e1cc19d0
method to cancel event propagation
2020-07-27 14:19:11 -04:00
Frank DeMarco
bc2a4a39ad
- sprite additions: multiple locations, auto wrapping, scale mod
...
- remap colors on a texture
- two pixel scaling algorithms: custom scale2x based on http://www.scale2x.it/algorithm.html and superxbr
2020-07-25 17:55:27 -04:00
Frank DeMarco
8eeeb82f4c
any key command
2020-07-21 01:09:34 -04:00
Frank DeMarco
0ccc00f201
- framerate indicator sprite added to Game class
...
- functions to build vectors from an integer range (from https://stackoverflow.com/a/30312659/1256386 )
- fullscreen toggle added to Display class
2020-07-19 15:43:47 -04:00
Frank DeMarco
1df303fe17
added frameset class for use with sprite class
2020-07-17 22:58:23 -04:00
Frank DeMarco
d471bdd651
- added const qualifier to some box and sprite functions
...
- store frame length history for debugging
- function for setting Node parent after initialization
- set magnitude helper function
2020-07-13 00:53:12 -04:00
Frank DeMarco
605360bae5
Sprite accepts alpha mod parameter; duplicate texture method
2020-07-11 02:06:58 -04:00
Frank DeMarco
74ca4da69a
- replaced location with box, added get/set functions for size and
...
sides
- preprocessor statements for handling emscripten main loop
- pass floats to render functions
- added box and get/set box functions to sprite class
- functions for filling a texture with solid color or tile texture
2020-06-27 17:47:14 -04:00
Frank DeMarco
321d9df1be
recorder writes video frames to folder
2019-05-16 03:51:36 -04:00
Frank DeMarco
1dbb2a2e1d
save indexed screenshot to directory
2019-05-07 03:33:54 -04:00