Commit Graph

16 Commits (6051be2f61c077b584c21a307949cbf07e342231)

Author SHA1 Message Date
Jake 6051be2f61 robot sensor values now available in simulation, line sensors return distance, await is automatically inserted before sleep commands 2025-03-30 21:31:04 +08:00
Jake 39cac21741 reimplemented sensor data pushes, need to update to new sensor paradigm. Added 30fps frame lock 2025-03-30 00:02:46 +08:00
Jake 3934ec2ae1 reset button now resets robot and obstacles 2025-03-29 23:21:01 +08:00
Jake f59c20686b removed a bunch of functions that served the old, DIY physics system 2025-03-29 23:11:27 +08:00
Jake 938d5790ae line sensors now drawn correctly and work with matter.js physics system 2025-03-29 23:10:25 +08:00
Jake c7a0c9c834 implementing matter.js, added obstacles and tank, need to convert to rigidbody driven rather than just moving pixels for movement 2025-03-27 18:58:27 +08:00
Jake 0674e5ca2f added line sensor obstacle collisions 2025-03-27 16:05:41 +08:00
Jake 485aa4557d added sensor objects and drawing, multiple extended types, no logic yet 2025-03-27 14:38:23 +08:00
Jake 0676c077fd added pause and reset buttons 2025-03-27 11:00:57 +08:00
Jake 58e65b2967 added Robot class, robot module can send move and turn commands to player robot, no connection to AI robots yet 2025-03-24 12:25:55 +08:00
Jake 2bfdcf1957 implemented time.sleep monkey-patch. still need to use await before it so might just recommend use of asyncio.sleep 2025-03-24 11:16:51 +08:00
Jake b9bf772aef added robot module to python environment which provides access to sensor data fed from game state 2025-03-24 10:42:56 +08:00
Jake e16c94f273 shifted pyodide to a worker thread, added hooks for external functions from python to javascript 2025-03-23 23:13:12 +08:00
Jake 4904e2901c added innerhtml linebreaks after every print to console 2025-03-23 22:34:54 +08:00
Jake ffb5050b13 implemented output to page console, and updates DOM after every line of code to prevent long waits 2025-03-23 17:02:14 +08:00
Jake e8a50c2c6b implemented basic text box and some test function hooks 2025-03-23 14:15:59 +08:00