Commit graph

338 commits

Author SHA1 Message Date
John Alanbrook 127569ee03 Fix json animation for single animation 2024-04-16 12:36:26 -05:00
John Alanbrook c368b81216 Fix crash on exit 2024-04-16 07:48:34 -05:00
John Alanbrook 2d7ed70087 Merge branch 'master' of https://forge.pockle.world/john/prosperon 2024-04-15 15:05:34 -05:00
John Alanbrook 9d75b38098 Modifications for web build 2024-04-15 07:58:23 -05:00
John Alanbrook 7e04937c8b ld55 fixes 2024-04-14 14:53:41 -05:00
John Alanbrook c05cb3c6d2 Change physics collisions and masks 2024-04-12 13:53:00 -05:00
John Alanbrook 17ad44e5a5 Physics fixes; editor fixes 2024-04-11 17:17:49 -05:00
John Alanbrook 0b4231c0b6 Add ur chaining 2024-04-11 07:38:28 -05:00
John Alanbrook 33ac36ae5c Fix render bug 2024-04-10 16:21:46 -05:00
John Alanbrook 941106ced5 fonts managed by javascript 2024-04-09 16:48:15 -05:00
John Alanbrook 5051d11005 Fix scaling and rotating controls 2024-04-09 08:01:54 -05:00
John Alanbrook 53f2addeec Init undefined variables in function definitions 2024-04-07 13:16:54 -05:00
John Alanbrook 33d450189c Physics callbacks called without registering 2024-04-06 19:41:14 -05:00
John Alanbrook 9106ebcc48 Fixed sound effects; fix invisible chars 2024-04-05 23:03:10 -05:00
John Alanbrook 403771d7f8 many fixes to editor 2024-04-04 17:28:11 -05:00
John Alanbrook 32268fc25d editor fix 2024-04-03 17:17:32 -05:00
John Alanbrook ccdcfafdf2 Reduce exports from input.js 2024-04-03 08:37:29 -05:00
John Alanbrook 033b7c5109 Add guid; tags; physics point checking 2024-04-03 00:44:08 -05:00
John Alanbrook 3f73a808d8 Fix animations from not deleting gameobjects 2024-04-02 07:41:46 -05:00
John Alanbrook 32333c32ad make more like misty 2024-04-01 17:58:29 -05:00
John Alanbrook 3b9a932c85 Add back in ai and tween, and fix 2024-04-01 08:13:57 -05:00
John Alanbrook 1195e6c73d makefile doesn't rebuild everything on one script change 2024-03-29 12:38:14 -05:00
John Alanbrook 59ad64bbba Replace tinycdb with miniz; remove unnecessary files; use sokol_main 2024-03-28 17:40:14 -05:00
John Alanbrook c27e1a3071 Update tinycdb to 0.81 2024-03-27 17:54:58 -05:00
John Alanbrook fe3250752d Make render path simpler 2024-03-27 15:00:59 -05:00
John Alanbrook 204aa19c50 Add phys2d raycasting 2024-03-26 18:31:20 -05:00
John Alanbrook c3aa598300 Move jsffi defines to header 2024-03-26 14:57:35 -05:00
John Alanbrook fa5398474b Add steam quickjs 2024-03-26 13:05:25 -05:00
John Alanbrook 459ef00330 Fix sprite animation crash; move text/image to render 2024-03-26 07:53:36 -05:00
John Alanbrook 3023a12184 Add system command; correct makefile 2024-03-24 12:44:35 -05:00
John Alanbrook ecb2882e7e fix makefile; add ios 2024-03-23 09:56:38 -05:00
John Alanbrook 5e3fb73398 move infos to spam 2024-03-22 13:40:56 -05:00
John Alanbrook 845fc5d4b8 Clean up render; fix delay kills 2024-03-22 09:02:10 -05:00
John Alanbrook 1540da8392 Move texture caching/handling to javascript 2024-03-21 21:07:24 -05:00
John Alanbrook f5d610cbed 'use' now how to load extra programs; cached 2024-03-21 11:33:36 -05:00
John Alanbrook 51f3b5abeb removed ffi stop [memleak] 2024-03-20 17:12:36 -05:00
John Alanbrook 5a52afc2fd simplify camera 2024-03-20 16:48:03 -05:00
John Alanbrook d3db5ca61e unseparated body from gameobject; now 'entity' 2024-03-20 16:07:23 -05:00
John Alanbrook 23afa7b266 macro compression 2024-03-20 14:32:35 -05:00
John Alanbrook 7e6fc1ffbe Moved all component ffi into global objects 2024-03-20 09:04:28 -05:00
John Alanbrook 046b7c6f44 Made debug object consistent 2024-03-19 23:01:31 -05:00
John Alanbrook 18c07e9f82 actor delays; fix sound playing 2024-03-19 17:00:49 -05:00
John Alanbrook 62a34c1e7c Remove generic cmd from jsffi 2024-03-19 14:39:19 -05:00
John Alanbrook 9730f8defb --amend 2024-03-19 09:06:28 -05:00
John Alanbrook 261b373a75 refactor jsffi 2024-03-18 12:38:32 -05:00
John Alanbrook 088dd4d4fd Move main process into javascript 2024-03-15 13:04:56 -05:00
John Alanbrook 32b0cc7377 quickjs log to its own file; cleanup script.c 2024-03-15 10:51:04 -05:00
John Alanbrook 188fe7526c Move console and time to c; consoleout and colors 2024-03-14 14:10:06 -05:00
John Alanbrook 55ab159a85 Add testing harness 2024-03-14 10:21:44 -05:00
John Alanbrook f0876825f1 Significantly improved logging 2024-03-14 09:34:42 -05:00
John Alanbrook 962fed0022 Push window functions into C 2024-03-13 16:30:55 -05:00
John Alanbrook bb24fd2bc0 Sprites are now defined in C; gameobject getsets 2024-03-13 03:51:44 -05:00
John Alanbrook 3e8bbdbeb2 Add touch events, clipboard, virtual keyboard 2024-03-12 10:02:02 -05:00
John Alanbrook 4843981527 Move input handling to script only 2024-03-11 22:23:02 -05:00
John Alanbrook 74a59a1e35 Clean up quitting before sokol app is initiated 2024-03-11 15:11:39 -05:00
John Alanbrook 7d1f19bbf5 Fixup makefile for docker builds 2024-03-09 18:22:06 -06:00
John Alanbrook 1471966cd2 Preparing for github 2024-03-05 23:14:26 -06:00
John Alanbrook aa4b3e6954 add 'grow' function to components and entities 2024-03-05 22:23:38 -06:00
John Alanbrook 4ba14ddd91 Separate the ideas of game dimensions and window dimensions 2024-03-05 00:11:34 -06:00
John Alanbrook 7b8be5b4f8 actors have delay now; fix sprite rendering for painters algo 2024-03-04 15:18:11 -06:00
John Alanbrook 6b3cea4ca5 utilize sokol_fetch for game.cdb fetching on load 2024-03-04 11:15:55 -06:00
John Alanbrook 83f5019f3e Recusrive mkdir; delete files; path replacers 2024-03-03 05:34:41 +00:00
John Alanbrook f948dac73f font setting 2024-03-02 08:59:50 +00:00
John Alanbrook 0054c7ab2e cdb command line options; packing and playing game; add stb_vorbis 2024-03-02 06:00:35 +00:00
John Alanbrook 1e9b5f6341 create new entities in editor 2024-03-01 17:45:06 +00:00
John Alanbrook 1e432346ff changed make to spawn; unified actor system for entities 2024-02-29 19:54:33 +00:00
John Alanbrook de74b42be2 Add 'use' functionality; remove most global vars 2024-02-27 16:09:15 +00:00
John Alanbrook 4351b4bf20 Update what's in global scope 2024-02-25 23:31:48 +00:00
John Alanbrook 9c8fe27ce4 Command line overhaul 2024-02-23 22:05:30 +00:00
John Alanbrook 11b369b368 Documentation overhaul 2024-02-21 09:45:26 +00:00
John Alanbrook 5f33ac53b7 clean up docs 2024-02-20 02:31:26 +00:00
John Alanbrook e5d67431b6 add website base 2024-02-09 07:49:52 +00:00
John Alanbrook 7706aa8462 enumerable C abased js 2024-02-01 16:11:09 +00:00
John Alanbrook 262cd50e1a nota leaks fixed 2024-01-31 08:42:15 +00:00
John Alanbrook ffb7631a6b js 2024-01-14 16:24:31 +00:00
John Alanbrook eb4abb9f8d particle params 2024-01-04 15:46:28 +00:00
John Alanbrook 913c74db96 fix collisions 2024-01-03 23:19:13 +00:00
John Alanbrook da5b7154d7 tests; new callbacks 2024-01-03 20:26:42 +00:00
John Alanbrook 1d776855be particle component 2024-01-01 23:30:42 +00:00
John Alanbrook 4dfaaf2b52 img anim 2024-01-01 20:48:58 +00:00
John Alanbrook 2983e9f3c6 tween functions 2024-01-01 13:44:43 +00:00
John Alanbrook 6aa44042d7 particles, sprite animation 2023-12-30 01:08:53 +00:00
John Alanbrook 5bdf311da9 initial physics constraints 2023-12-28 23:38:17 +00:00
John Alanbrook 192c253f12 spriteanim make function 2023-12-28 20:34:00 +00:00
John Alanbrook 705c793bb1 add component 2023-12-28 18:49:48 +00:00
John Alanbrook c4b2b23941 add tween; fix collision js ref bug 2023-12-28 13:57:22 +00:00
John Alanbrook 2195f9f5db Resources for animations 2023-12-27 23:28:10 +00:00
John Alanbrook 5df1670538 tiling sprites; line drawing 2023-12-27 20:16:43 +00:00
John Alanbrook beee0c50f3 fixes 2023-12-27 16:34:14 +00:00
John Alanbrook 1b4a36f398 fix play crash 2023-12-27 13:04:18 +00:00
John Alanbrook 2880badc98 scale 2023-12-26 21:39:46 +00:00
John Alanbrook 885a2fd190 scale 2023-12-24 17:50:01 +00:00
John Alanbrook 2f086947b9 scaling 2023-12-24 15:14:46 +00:00
John Alanbrook 606dfbea93 bug fixing 2023-12-22 13:14:44 +00:00
John Alanbrook 2ae45a5bb8 many bug fixes; const correctness; restrict; memory leaks fixed 2023-12-21 23:21:01 +00:00
John Alanbrook e84d3b60af spline fixes 2023-12-21 16:49:44 +00:00
John Alanbrook a03143463e spline fixes 2023-12-20 23:20:29 +00:00
John Alanbrook a8ee53ec33 drag n drop editor images 2023-12-20 15:19:04 +00:00
John Alanbrook 55d5133414 line rendering 2023-12-19 23:28:45 +00:00
John Alanbrook dacad57577 fix camera, spline 2023-12-19 21:34:36 +00:00
John Alanbrook a1aff79d5c bug fixes; remove texture anims 2023-12-18 23:12:05 +00:00
John Alanbrook 444fb98125 bezier spline controls 2023-12-18 12:45:27 +00:00
John Alanbrook b732d12bed rendering simplified 2023-12-15 18:45:09 +00:00
John Alanbrook 56c8542797 spline editing 2023-12-14 01:53:09 +00:00
John Alanbrook e06d12213f add spline component controls 2023-12-13 14:06:24 +00:00
John Alanbrook 903ffbc607 fix spline segfault 2023-12-13 01:35:34 +00:00
John Alanbrook 2083fb6e9e Fix rotate, scale, move 2023-12-12 14:46:27 +00:00
John Alanbrook d9f6dd5e56 fix compilation bugs; add bignum 2023-12-11 22:59:59 +00:00
John Alanbrook 9fb36f5df3 spline 2023-12-11 14:36:45 +00:00
John Alanbrook 5ad3219379 time 2023-12-10 04:09:15 +00:00
John Alanbrook cb0fa34743 catmull-rom spline custom 2023-12-04 19:38:37 +00:00
John Alanbrook de8c8c9168 transforms 2023-11-30 22:24:26 +00:00
John Alanbrook 6b28e60e3a scene graph 2023-11-30 16:47:59 +00:00
John Alanbrook 03fb016fbc actor delay 2023-11-29 23:31:41 +00:00
John Alanbrook b9db31c84e nodes,gameobjects cleanup 2023-11-29 18:40:13 +00:00
John Alanbrook 7e7514f5d7 dsp node js objects 2023-11-29 13:32:32 +00:00
John Alanbrook f47b6ece21 node free; pitch shift; time scale 2023-11-29 04:48:32 +00:00
John Alanbrook 1d491e694a Fix race condition for sound ending 2023-11-27 23:04:04 +00:00
John Alanbrook 44febe1c6d audio reworked 2023-11-27 20:29:55 +00:00
John Alanbrook d047ceb07b events 2023-11-22 09:51:43 +00:00
John Alanbrook 6193bceb74 music stop; sprite alpha blending; sprite sorting; change to anim 2023-11-21 07:07:50 +00:00
John Alanbrook 051d8653fb svg support; reworking of sounds; steam integration and building 2023-11-20 21:57:23 +00:00
John Alanbrook ec8b3c97c4 start steam integration; bug fixes 2023-11-20 13:49:14 +00:00
John Alanbrook cccd472f12 Tween and delay fixes now entity lifetime; spline symmetry 2023-11-17 21:16:13 +00:00
John Alanbrook e712d06244 Fix separation trigger; fix timers; add geometry creation; fix transform errors 2023-11-16 15:27:04 +00:00
John Alanbrook 563bacdb9c flip replaced with mirroring' 2023-11-15 22:42:39 +00:00
John Alanbrook f6161d04b0 transform work 2023-11-14 15:20:09 +00:00
John Alanbrook 51438a5328 update docs 2023-11-12 02:01:42 +00:00
John Alanbrook 8bef401be4 fix timer freeing; add window resolution compensation on play; device testing 2023-11-08 07:39:10 +00:00
John Alanbrook 83851ef272 collision layers 2023-11-07 23:24:26 +00:00
John Alanbrook 8c3e8aa539 timers fixed 2023-11-07 18:45:52 +00:00
John Alanbrook 1a6dbfaa88 Add vector swizzling; custom velocity function; per object gravity disabling; max velocities 2023-11-06 13:05:27 +00:00
John Alanbrook 5ee444465e cgltf glb texture pulling 2023-11-04 03:01:30 +00:00
John Alanbrook 366a20e7ed 3d rendering 2023-11-03 13:31:06 +00:00
John Alanbrook a854764636 Fix char2d; add camera reset in editor; default entity physics is static 2023-11-02 22:25:00 +00:00
John Alanbrook 71d5ae7619 Update sokol 2023-11-01 20:33:22 +00:00
John Alanbrook 05a596746e sprite color mixing; make timers and tweens workable 2023-10-31 17:38:23 +00:00
John Alanbrook ecd31eeafa Add enabling and disabling colliders; fix bug related to it 2023-10-31 13:31:56 +00:00
John Alanbrook 92ccb72c04 Add update and physics timings; add instance reversion on save urtype 2023-10-30 22:41:32 +00:00
John Alanbrook 6eefa95546 spline editing works; hollow, etc; add M-g for move all points 2023-10-29 21:39:45 +00:00
John Alanbrook 0fcc2286fa instance saving 2023-10-26 16:48:02 +00:00
John Alanbrook 264a365a1a Reconfigure logging; add markdown output for input controls and important api 2023-10-23 13:08:11 +00:00
John Alanbrook 29698dbca5 add config startup files; add object.dig; editor gui additions; improved translating 2023-10-18 22:20:23 +00:00
John Alanbrook b87cd41e70 Add console object; add intuitive object view; console clear; add play hooks 2023-10-17 17:22:06 +00:00
John Alanbrook f29981ca77 fix check dirty; fix input stack for editor 2023-10-17 00:59:58 +00:00
John Alanbrook 567691edce Bug fixes for input, cleanup on engine exit 2023-10-16 14:40:43 +00:00
John Alanbrook 8229c94a5b fix debug draw shapes 2023-10-12 22:05:49 +00:00
John Alanbrook 8f455476f1 Start and restart play mode 2023-10-11 22:22:41 +00:00
John Alanbrook cff5483325 proper saving 2023-10-10 22:37:58 +00:00
John Alanbrook 661d29a01c level saving 2023-10-09 23:10:10 +00:00
John Alanbrook 23782f9fac removed dbg warnings from tab completion 2023-10-09 18:05:48 +00:00
John Alanbrook 5db00e9019 repl tab completion; rgb text coloring 2023-10-09 18:03:12 +00:00
John Alanbrook 9701cd2b4a Mum padding and text wrap; save as works 2023-10-06 17:38:49 +00:00
John Alanbrook 272719736c easier saving 2023-10-05 22:30:17 +00:00
John Alanbrook 03f209ddef proper proto chaining in ur construction 2023-10-05 18:33:43 +00:00
John Alanbrook 8c69dfd71f font caret underlining; repl line editing 2023-10-05 13:02:12 +00:00
John Alanbrook 5578b0f7e4 ur reworking; mum improvements 2023-10-04 22:57:37 +00:00
John Alanbrook e02054bd10 Mum gui init 2023-10-04 13:18:09 +00:00
John Alanbrook 2b402d7a2d removed nuke; restored quickjs due to mem leaks 2023-10-03 22:16:38 +00:00
John Alanbrook f5c7b0433d proper saving of object list 2023-10-02 22:03:01 +00:00
John Alanbrook ac91e0742a level object saving; transform and physics objects 2023-10-02 12:58:17 +00:00
John Alanbrook 39ab236d66 repl improvements to object selection 2023-09-29 18:16:59 +00:00
John Alanbrook 0168e81ffe unify grabbing controls 2023-09-29 13:27:34 +00:00
John Alanbrook 70e4105e1b bucket renamed to edge2d and saves now; proper input blocking with reversed() 2023-09-27 22:40:04 +00:00
John Alanbrook 98ba229c9c correct polygon2d saving and editing 2023-09-27 17:36:32 +00:00
John Alanbrook 7984c90140 remove ur from components 2023-09-27 14:37:20 +00:00
John Alanbrook 1143b9b3dc circle and sprites work with saves 2023-09-26 22:07:51 +00:00
John Alanbrook fe21b84785 Ur saving, ur subtyping 2023-09-26 18:34:02 +00:00
John Alanbrook db8e59a8eb improved UR loading 2023-09-26 13:37:19 +00:00
John Alanbrook 9a1f1408a6 Simplify reparenting; fix deleting objects and copying objects 2023-09-25 21:34:48 +00:00
John Alanbrook 3c43a1fad8 D3D11 build for windows; gif making works everywhere & gif names are now dates 2023-09-25 17:29:04 +00:00
John Alanbrook d52b15e1be aseprite importer 2023-09-25 13:21:02 +00:00
John Alanbrook 0256f4cd15 add gif for animations; unique anim types 2023-09-24 16:26:44 +00:00
John Alanbrook 174a9ed586 Fix Object.merge; add many color palettes, normalize color fns 2023-09-23 17:35:02 +00:00
John Alanbrook 721abd6a8f Add color maps 2023-09-22 14:44:58 +00:00
John Alanbrook a8eb444991 add object merging 2023-09-22 00:51:38 +00:00
John Alanbrook 14d743e704 added colors; repl works 2023-09-21 17:50:39 +00:00
John Alanbrook 47dc6aa1fe flip, scale, angle works for subobject movement 2023-09-21 13:38:23 +00:00
John Alanbrook 81875c3436 objects now correctly register components and subobjects 2023-09-20 22:58:18 +00:00
John Alanbrook f6d491b142 tojson for ur and entity separation 2023-09-20 18:33:11 +00:00
John Alanbrook 31331af57d merge made functions into original prototype 2023-09-20 13:11:14 +00:00
John Alanbrook 266ad65ba7 Removed more Javascript "features"; simplified ur with closures 2023-09-19 22:37:54 +00:00
John Alanbrook a57aaeb5d5 Windows now compiles with directx; separated out ur and entity methods 2023-09-19 17:35:12 +00:00
John Alanbrook 24a3ee20c6 Add simple macos window cmds; add moon.gif app icon; add editor mode for low power editing 2023-09-19 06:10:00 +00:00
John Alanbrook 27aaa8e05d Metal rendering works; high dpi rendering works; fix sokol_gfx_ext to work with metal without SDL 2023-09-19 02:55:37 +00:00
John Alanbrook 03c9f0c93d Fix web build; make all file searching fns look through slurp/the CDBs first 2023-09-18 17:35:40 +00:00
John Alanbrook 60d078321c Fix Linux and Windows build issues; texture looks in CDBs first 2023-09-18 15:45:51 +00:00
John Alanbrook c9c05d931d JSO compiler; packer; update CDB to 0.80; assets now packed into binary 2023-09-18 12:36:07 +00:00