Commit Graph

  • dd0e0d866d added do {..}while(0) to a macro development Sara 2023-09-16 20:01:32 +0200
  • c7d5706eaa Merge pull request 'fixed indenting style to fit new requirements' (#20) from fixed-indenting into development Sara 2023-07-17 14:48:54 +0000
  • 092adc18aa Merge branch 'development' into fixed-indenting #20 Sara 2023-07-17 14:48:49 +0000
  • a741f3c473 Merge pull request 'Don't require a ':' character after every key in scene files' (#19) from dont-require-colon-in-scene into development Sara 2023-07-17 14:48:07 +0000
  • bbfedc727a Merge branch 'development' into dont-require-colon-in-scene #19 Sara 2023-07-17 14:48:00 +0000
  • 8915e57f9d fixed indenting style to fit new requirements Sara 2023-07-17 16:44:10 +0200
  • 56956f9330 _parse_key will now return 1 if the key DOES have arguments Sara 2023-07-17 00:43:50 +0200
  • 3dd5b82cb0 parse_key now detects if the key has arguments or not, parse config will not parse nonexistent values Sara 2023-07-17 00:41:15 +0200
  • 1ae19b5d04 adjusted _parse_key to also allow for configs without arguments Sara 2023-07-17 00:38:49 +0200
  • baf75c9c78 no longer requiring at least one colon in a scene config element Sara 2023-07-17 00:36:37 +0200
  • b025e81c54 Merge pull request 'key listeners are now only triggered if their value changed' (#18) from key-repeat-events into development Sara 2023-07-16 21:41:21 +0000
  • 3f5346b0e8 Merge branch 'development' into key-repeat-events #18 Sara 2023-07-16 21:41:15 +0000
  • 03a6b65603 Merge pull request 'fixed aabb aabb collision detection and solving' (#17) from broken-physics into development Sara 2023-07-16 21:40:44 +0000
  • 5ee5292e88 key listeners are now only triggered if their value changed Sara 2023-07-16 23:38:36 +0200
  • 41f84bb52c reversed direction of aabb-aabb collision solver terms #17 Sara 2023-07-16 21:32:33 +0200
  • 5185f5062b solve_aabb_aabb now incorporates sprite position in all calculations Sara 2023-07-16 21:23:59 +0200
  • 7950e45632 reordered terms in _rect_overlap Sara 2023-07-16 21:14:44 +0200
  • 0dc35bd9d9 fixed typos and mismatched statements in aabb-aabb collision Sara 2023-07-16 20:53:41 +0200
  • 763c43aed6 removed leftover debug log in scene Sara 2023-07-16 18:58:30 +0200
  • 6649d769c2 Merge pull request 'add a function to disconnect all input listeners, call this function every time a scene is loaded exclusively' (#15) from input-reset into main main Sara 2023-07-16 15:42:25 +0000
  • 415a0d5c97 removed input_disconnect_all from load_scene_additive #15 Sara 2023-07-16 17:42:17 +0200
  • bd2e5cbcd0 loading a scene now disconnects all input Sara 2023-07-16 17:40:55 +0200
  • 25feb8f95f added input_disconnect_all Sara 2023-07-16 17:40:15 +0200
  • deeaad06e1 Merge pull request 'world-format' (#14) from world-format into main Sara 2023-07-16 11:56:37 +0000
  • 5b91584b00 Merge branch 'main' into world-format #14 Sara 2023-07-16 11:55:24 +0000
  • b387dee9c6 first whitespace of a line is now skipped when processing arguments Sara 2023-07-16 13:46:53 +0200
  • 19401f1f47 added scene file validation Sara 2023-07-16 13:33:47 +0200
  • 25c5f83fe4 added scene parsing Sara 2023-07-16 02:23:15 +0200
  • 351c9ba713 removed undefined declaration of physics_update Sara 2023-07-16 00:38:44 +0200
  • f9236e4182 moved definitions of INPUT_LISTENER_TYPE_T and input_listener_t to input.c Sara 2023-07-16 00:38:36 +0200
  • f0d76713c2 renamed function delegates ending with _t to end with _fn Sara 2023-07-16 00:38:06 +0200
  • 6085dbaed0 added scene.h Sara 2023-07-16 00:31:20 +0200
  • 33c1a5e9d2 changed the way objects are notified of destruction, simplified game.c preset Sara 2023-07-16 00:31:13 +0200
  • 14a81b0f2a removed preset initialization functions Sara 2023-07-15 20:15:25 +0200
  • 30defc0db8 Merge pull request 'Allow the world to grow as required by the number of objects being spawned' (#12) from dynamic-size-world into main Sara 2023-07-12 00:53:04 +0000
  • ec50000130 un-negated uses of object_is_valid that shouldn't be, and negated ones that should be #12 Sara 2023-07-12 02:52:04 +0200
  • 0698121853 object_is_valid now confirms that an object is not null and is active Sara 2023-07-12 02:49:36 +0200
  • 8a6a0e7493 physics.c: can_collide now checks for object_is_valid before comfirming other variables Sara 2023-07-12 02:47:31 +0200
  • 78c0e3a9c0 object_is_valid now takes a constant pointer Sara 2023-07-12 02:46:26 +0200
  • 59de57fe3a simplified error checking, out of memory now results in an immediate crash when trying to expand world Sara 2023-07-12 02:44:21 +0200
  • 5e001bc345 object_is_valid now confirms if an object is valid, as opposed to if an object is invalid Sara 2023-07-12 02:43:53 +0200
  • 3e3f322529 _find_free_object now returns the index of the found object / make_object now allocates the object if the found slot is NULL Sara 2023-07-12 02:38:26 +0200
  • 30d4e4c39a replaced initialization code of _world_objects.objects with new_list Sara 2023-07-12 02:29:33 +0200
  • a139e4f3bb now initializing newly expanded world space with nullptrs Sara 2023-07-12 02:28:13 +0200
  • 6a52f2795d object_is_valid now does not attempt to validate internals if object is NULL Sara 2023-07-12 02:25:32 +0200
  • d915047bd1 removed uses of world_num_objects from world.c and replaced them with _world_objects.num Sara 2023-07-12 02:25:11 +0200
  • c1fa6e2956 now creating world array with 16 elements if world array length is 0 Sara 2023-07-12 02:19:32 +0200
  • 544f18e9c6 added error when failing to expand world Sara 2023-07-12 02:16:05 +0200
  • e6b66884ec added expandable world objects array Sara 2023-07-12 02:07:29 +0200
  • 3ed5755e52 physics.h no longer depends on g_objects being public, or WORLD_NUM_OBJECTS being constant Sara 2023-07-12 02:07:08 +0200
  • a5c6a7eceb added objecadded object_is_valid Sara 2023-07-12 02:06:40 +0200
  • 1eb8ab2fd9 WIP: world array is now an array of pointers to objects Sara 2023-06-28 08:54:22 +0200
  • a18d5599b4 Merge remote-tracking branch 'origin' into dynamic-size-world Sara 2023-06-28 08:52:35 +0200
  • ca3b2af703 added math library to CMakeLists Sara 2023-06-27 09:30:00 +0200
  • de7d14ae92 added corelib.h include for minimal setup Sara 2023-06-27 08:16:45 +0200
  • f395f27532 moved entry to corelib Sara 2023-06-27 08:16:31 +0200
  • 528e35537f renamed engine module to entry module Sara 2023-06-26 17:43:15 +0200
  • f115334644 moved engine module to corelib Sara 2023-06-26 17:42:02 +0200
  • ac722f6e5f Merge pull request 'rework collision_t component into a more wholistic physics_t component' (#11) from object-physics into main Sara 2023-06-26 15:28:33 +0000
  • 484db1961a reformatting some lines in CMakeLists #11 Sara 2023-06-26 17:24:57 +0200
  • 20ca626acf solve_collision_slide no longer modifies rhs argument Sara 2023-06-25 18:16:17 +0200
  • 9a732ad82f simplified solve_collision_slide Sara 2023-06-25 18:13:48 +0200
  • 812e7eab20 renamed move_and_slide to physics_move Sara 2023-06-25 18:13:28 +0200
  • ead22d114c added explicit extern specifiers to physics functions lacking them Sara 2023-06-25 18:13:12 +0200
  • 7a2cb3cd5c added solver field to physics_t, exposed solve_collision_slide to make it work Sara 2023-06-25 18:12:38 +0200
  • 76bf6e81e5 reworked collision_t component into physics_t component Sara 2023-06-25 12:41:53 +0200
  • 8a028dca08 Merge pull request 'improved handling of interpolate_move calls with a distance shorter than minimum delta' (#10) from improve-short-moves into main Sara 2023-06-24 20:44:49 +0000
  • 4acc18a101 Merge branch 'main' into improve-short-moves #10 Sara 2023-06-24 20:44:43 +0000
  • a9ba15f93b improved handling of interpolate_move calls with a distance shorter than minimum delta Sara 2023-06-24 22:42:38 +0200
  • 78d1e78dd7 Merge pull request 'split-world-module' (#9) from split-world-module into main Sara 2023-06-24 20:09:34 +0000
  • aa9dfa3fcd Merge branch 'main' into split-world-module #9 Sara 2023-06-24 20:09:04 +0000
  • bf21a388ab Merge pull request 'Add a move_and_slide style interpolation option' (#7) from move-and-slide into main Sara 2023-06-24 20:08:56 +0000
  • b8c856bf56 split the world module into world, physics, and object Sara 2023-06-24 22:03:28 +0200
  • 43fa322409 removed debug prints from _slide_collision solver #7 Sara 2023-06-24 20:34:35 +0200
  • 4271ee8f8d fully implemented slide collision for any combination of aabb and circle colliders Sara 2023-06-24 20:32:54 +0200
  • daa53c6ef0 movetowards now also works in cases where x == 0 && y != 0 || x != 0 && y == 0 Sara 2023-06-24 20:32:31 +0200
  • 3df374b3b9 interpolate move will now immediately stop if destination is reached Sara 2023-06-18 22:45:06 +0200
  • fd99159b27 Merge pull request 'fix event based axis input giving results that are not in range -1 to 1' (#8) from event-input into move-and-slide Sara 2023-06-18 20:24:31 +0000
  • fab7338891 axis now keeps a history for both keys #8 Sara 2023-06-18 22:22:16 +0200
  • cfcd31cee8 more explicit typing and casting in timespec_to_sec Sara 2023-06-18 22:17:38 +0200
  • fc1f3499e3 input events are now still pumped during frame downtime Sara 2023-06-18 22:17:25 +0200
  • 14b8b2f380 delta time is now updated before evaluating minimum delta time/ Sara 2023-06-18 22:17:06 +0200
  • a93d09c96c reworked most input listener types to use OS events instead of checking state on update Sara 2023-06-18 22:14:16 +0200
  • b30df338ac no longer zeroing _delta_time if nanosecond element of difference between last and next time is negative Sara 2023-06-18 19:04:22 +0200
  • a49ac0db93 timespec_to_sec now first multiplies tv_nsec by 1E-09 to convert to seconds Sara 2023-06-18 18:04:49 +0200
  • 56679110e3 added frame limiting Sara 2023-06-18 18:02:22 +0200
  • d69b92a464 delta_time is now calculating by converting timespec to seconds Sara 2023-06-18 17:59:50 +0200
  • fcb9645dbe added NORMALIZE #define macro Sara 2023-06-18 16:34:28 +0200
  • 6f78731d8f normalize will now normalize if either x or y is non-zero Sara 2023-06-18 16:33:39 +0200
  • 494dbfedb3 clamp_magnitude no longer outputs input x,y regardless of checks Sara 2023-06-18 16:14:30 +0200
  • 1df623e669 move_towards now compares absolutes of diff and dir to check if the destination will be reached Sara 2023-06-18 16:09:43 +0200
  • fa2a911732 added corelib/math/vec.h single header vector math library Sara 2023-06-18 14:39:04 +0200
  • ea3beddfec inverted correction collision_check Sara 2023-06-18 14:27:24 +0200
  • dff8e8304d iteration count for interpolate_move now based on number of steps required to fullfill move in theory Sara 2023-06-18 14:24:38 +0200
  • 0a8aac2325 implemented slide Sara 2023-06-18 14:18:37 +0200
  • 81e242532b added argument to interpolate_move, removed return value from interpolate_move Sara 2023-06-18 14:08:55 +0200
  • 96eeb3233f Merge pull request 'implement basic collision and interpolation' (#6) from collision into main Sara 2023-06-18 11:51:15 +0000
  • bd87bcf8af bbminy in _collision_circle_aabb is now calculated correctly using y #6 Sara 2023-06-18 13:45:53 +0200
  • d134df5847 position now resets to last when interpolate_move collides Sara 2023-06-18 13:42:20 +0200
  • 4bf759d224 added broadcast collision Sara 2023-06-18 13:22:35 +0200