Commit graph

  • a6d50decc7 player now has a constructor and implements drop Sara 2023-11-02 14:27:14 +0100
  • 674d1b55fb behaviour entity trait now requires drop trait and a draw function Sara 2023-11-02 14:26:21 +0100
  • cf001bd2d6 added Drop trait to allow more automated memory management Sara 2023-11-02 14:25:53 +0100
  • 70bbd51ef7 removed run.gdb as it is no longer used by make run Sara 2023-11-01 23:02:18 +0100
  • 9fe2fbe80a removed make run rule Sara 2023-11-01 23:01:45 +0100
  • 6e75cb6f49 removed debugging code from tilemap loading Sara 2023-11-01 23:01:38 +0100
  • 0e3a4b1772 debug drawing code for tilemaps can now be turned off Sara 2023-11-01 23:01:28 +0100
  • 1d46d9dc6f player spawns more to the right now Sara 2023-11-01 23:01:10 +0100
  • 5408ac3ad0 newline at the end of the file Sara 2023-11-01 23:00:58 +0100
  • 26bb95f6c5 now using new signature for externally exposed collision_invert Sara 2023-11-01 23:00:53 +0100
  • af0a2bfa33 removed old range comparison Sara 2023-11-01 23:00:32 +0100
  • b65cba928b collision_invert is now externally visible Sara 2023-11-01 23:00:09 +0100
  • 4438070170 reworked _internal_collision_overlap to be more verbose Sara 2023-11-01 22:59:48 +0100
  • 22709234cd reworked overlap range so that it now detects 'inverse' collisions Sara 2023-11-01 22:59:12 +0100
  • f5a9b3e8c6 modified collision points on a tile Sara 2023-10-25 23:25:45 +0200
  • f7dd618cbc removed expiry Sara 2023-10-25 23:25:27 +0200
  • d52ae5fe45 changed jump speed and reordered collision shape points for player Sara 2023-10-25 23:25:23 +0200
  • 77c266b43f simplified collecting contacts by removing expiry and just clearing the list Sara 2023-10-25 23:25:04 +0200
  • 1e039c310b negative key for a key action will now be bound to unknown scancode Sara 2023-10-25 23:24:44 +0200
  • 2fa75e6ced added F1 keybind to cycle through log verbosity Sara 2023-10-25 23:24:26 +0200
  • 0827f9467c added g_debug_log_lvl Sara 2023-10-25 23:23:57 +0200
  • ecbe0b317a modified order of points in a tile collision shape Sara 2023-10-25 23:23:51 +0200
  • 60743f556f updated levels Sara 2023-10-25 20:28:22 +0200
  • 38e277c3ae loading a tileset now also loads it's collision information Sara 2023-10-25 20:28:07 +0200
  • 34b08282fc tilemap collision debug info is now drawn after the tilemap Sara 2023-10-25 20:27:43 +0200
  • 640d12ab18 Shape can now be created without points Sara 2023-10-25 20:27:19 +0200
  • 043d93a6ae changed colour of collision edge debug display Sara 2023-10-25 20:26:57 +0200
  • 57ef426982 removed duplicate assignment from rigidbody_add_contact Sara 2023-10-25 20:26:46 +0200
  • def06c4018 changed shape of player collision shape Sara 2023-10-25 20:25:49 +0200
  • 023d9ba2ec added support for tiles without a collision shape Sara 2023-10-25 20:25:42 +0200
  • 8b6cc6d319 removed duplicate on_collision call from physics_world Sara 2023-10-25 20:25:31 +0200
  • 73f40863db now exiting physics_world_remove_entity when an entity is found and removed Sara 2023-10-25 20:25:12 +0200
  • f11ffc13ff simplified list_foreach loop with a single-line body Sara 2023-10-25 20:24:46 +0200
  • fccd08466a player now hardcoded to spawn in the level rather than on top of it Sara 2023-10-25 20:24:29 +0200
  • eeb1e1d438 added CHECK assertion macro Sara 2023-10-25 20:24:08 +0200
  • 3e6ee52d3e moved "no collision" in _internal_collision_get_overlap Sara 2023-10-25 20:24:00 +0200
  • 46602abbae inverted incorrectly oriented comparison in collision_check Sara 2023-10-25 20:23:28 +0200
  • 63ce106c78 updated levels Sara 2023-10-25 20:23:05 +0200
  • 3f8353a070 reimported player sprite Sara 2023-10-25 14:12:00 +0200
  • 75e5feecf2 player can only adjust movement when on the ground Sara 2023-10-25 14:11:43 +0200
  • 8efbcee7f3 removed debug draw call from fencer.c Sara 2023-10-25 14:11:31 +0200
  • 3033f36c90 changed player hair Sara 2023-10-25 14:11:12 +0200
  • fa7c03dafc made more space in level_0 Sara 2023-10-25 14:11:08 +0200
  • 23454d3065 PhysicsEntity::on_collision will now be called for contacts Sara 2023-10-25 12:18:17 +0200
  • 979b7cd83b added game_time() global getter Sara 2023-10-25 12:17:59 +0200
  • 678aae3abc added is_grounded Sara 2023-10-25 12:17:50 +0200
  • 32e6068f2a simplified player spawn function Sara 2023-10-25 12:17:45 +0200
  • b487b2582e moved call to apply forces to physics solver Sara 2023-10-25 11:25:35 +0200
  • 1e2d9a7067 cleanup in physics entity and physics world Sara 2023-10-25 11:23:52 +0200
  • 3263c87cca implemented jump Sara 2023-10-25 00:14:35 +0200
  • 07f534f796 fixed collision solving causing an inability to escape a surface Sara 2023-10-24 23:57:38 +0200
  • d3612873ff removed minimum move from rigidbody_integrate_forces Sara 2023-10-24 23:50:50 +0200
  • fc0260a100 events are now handled before the update loop Sara 2023-10-24 23:50:26 +0200
  • 081be0a0f1 constraints now affect velocity Sara 2023-10-24 23:50:10 +0200
  • f8462d8e2c reworked constraint solver to work relative to the overlap point Sara 2023-10-24 23:49:59 +0200
  • 635fb7b69f removed impl macro for default physics solver Sara 2023-10-24 23:18:55 +0200
  • 4047d04686 renamed physics_entity_solve_contacts (was default_contact_solver) Sara 2023-10-24 23:15:29 +0200
  • e86fa1bdef implemented collision constraint solver Sara 2023-10-24 23:14:30 +0200
  • 256fef97d9 Did not implement edge based collision (performance concerns) merged other modifications Sara 2023-10-23 21:59:30 +0200
  • 0a9c6745ad added shape_get_points Sara 2023-10-23 21:52:58 +0200
  • fa2ca7241c added anglebetween to vmathf Sara 2023-10-23 21:52:44 +0200
  • 1f56608950 shape now has shape_get_points for getting the List of points Sara 2023-10-23 21:52:38 +0200
  • d76f9a0af9 Merge branch 'main' into edge-based-collision Sara 2023-10-22 12:02:17 +0200
  • a84e8dbc5b added shape_get_points Sara 2023-10-23 21:52:58 +0200
  • 919aa8406b shape now uses list Sara 2023-10-22 12:02:05 +0200
  • f373fada26 added custom collision solvers Sara 2023-10-22 11:25:44 +0200
  • 788c1970e2 disabled some debug drawing Sara 2023-10-19 18:04:27 +0200
  • a52169892d separated rigidbody handle and solve contact functions Sara 2023-10-19 18:04:13 +0200
  • 90b93a8817 replaced spring function Sara 2023-10-19 18:03:34 +0200
  • 9541157e04 disabled sprite drawing for debugging Sara 2023-10-19 13:51:24 +0200
  • aa9a51dc76 improvements to collision solvers Sara 2023-10-19 13:51:17 +0200
  • 169fd63d9e now also displaying force in debug display Sara 2023-10-19 13:50:58 +0200
  • 092e8670cd player now spawns at 5,-5 Sara 2023-10-19 13:50:43 +0200
  • b8ae02109a collision relative velocity is now calculated in one line Sara 2023-10-19 13:50:35 +0200
  • 37b1fc3228 implemented velocity verlet integration Sara 2023-10-18 22:51:56 +0200
  • 2b1014e603 modified hardcoded values for collision forces Sara 2023-10-18 13:49:54 +0200
  • 19daff6ddd using better method to decide whether or not a collision is valid Sara 2023-10-18 13:49:41 +0200
  • ed274c415f IT FUCKING WORKS (collision resolution is now working) Sara 2023-10-18 13:21:02 +0200
  • 74369d88fe more debugging for collision sovler Sara 2023-10-17 17:17:16 +0200
  • c7e6b2aa29 progress on physics Sara 2023-10-16 21:31:48 +0200
  • 6cc16cf1f8 moved input code to player.c Sara 2023-10-14 20:55:21 +0200
  • 30c1e780a1 added contiguous dynamic length array List Sara 2023-10-14 20:54:59 +0200
  • a7846a48d9 player is now of type Player Sara 2023-10-08 23:10:48 +0200
  • 47264c3da3 added tilemap collision Sara 2023-10-08 23:10:37 +0200
  • 878b4c5595 added debugging logs for player collision Sara 2023-10-08 23:10:27 +0200
  • 4e966b42a8 player now implements SpriteEntity Sara 2023-10-08 23:09:56 +0200
  • c1e99e5038 now initializing, ticking and cleaning physics world from program_run Sara 2023-10-08 23:09:41 +0200
  • 25e4fa652c added shape_new_square to construct a square collision shape Sara 2023-10-08 23:09:17 +0200
  • d3d5382eb5 formatting changes Sara 2023-10-08 23:08:56 +0200
  • 49191e85ba transform_point now more explicitly rotates input position Sara 2023-10-08 23:08:38 +0200
  • 9783774a7b tilesets now have a 1x1 square as a collision box & implemented tiledef_get_shape Sara 2023-10-08 23:08:09 +0200
  • 6bb5fe7837 tilemaps now have a rigidbody, tile instances refer to their containing tilemap Sara 2023-10-08 23:07:30 +0200
  • 6df816e778 added sprite entity trait Sara 2023-10-08 23:07:04 +0200
  • ac24521b34 camera_world_to_pixel_point now also takes camera fov into account Sara 2023-10-08 23:06:47 +0200
  • 62410b7d72 prefixed internal helper functions with _internal Sara 2023-10-07 23:00:31 +0200
  • a108aa21f7 physics entity interface now requires a callback for collisions Sara 2023-10-07 23:00:03 +0200
  • 37008f455e the physics world will now work for physics entities Sara 2023-10-07 22:59:24 +0200
  • 7337592855 added behaviour entity type Sara 2023-10-07 22:58:51 +0200
  • b7721baeb7 collision_check will now return 1 if there is a collision, and write collision data to the new out variables Sara 2023-10-07 22:58:15 +0200
  • f237da1b93 renamed self to data for transformable interface Sara 2023-10-07 18:43:30 +0200