Commit graph

371 commits

Author SHA1 Message Date
Sara b2f6f9c176 feat: player sprites 2024-01-12 15:15:35 +01:00
Sara 95f5bcfee7 feat: PlayerAttackInput is now PlayerJabInput, added PlayerHeavyInput 2024-01-12 12:40:40 +01:00
Sara aca01507ed feat: added compositeaxis1d_from_keys and from_buttons
This required moving InputDelegateFn from input.h to input_axis.h
2024-01-12 12:26:23 +01:00
Sara 1dc6f8352a feat: unindented content of REFLECT_TYPECLASS 2024-01-12 12:23:13 +01:00
Sara e13f9fc63a feat: T##_as_Mirror is no longer defined static 2024-01-12 09:33:21 +01:00
Sara 0c6f1dd8cf feat: reworked typeclasses to forward-declare then define
forward declarations are simplified with decl_typeclass_impl
impl_Typeclass_for now instead only define
static inline impl_Typeclass_for can be used to achieve the old behaviour
2024-01-12 09:02:42 +01:00
Sara 760d9f2879 feat: replaced mirror_get_converter with a more direct mirror_get_typeclass 2024-01-11 23:51:53 +01:00
Sara 1a3c4c9676 fix: removed includes of deleted DamageEvent.h 2024-01-11 23:31:47 +01:00
Sara d14e030545 chore: removed unused Messages.h 2024-01-11 23:31:28 +01:00
Sara a17915dbfb fix: drop.h now correctly includes typeclass_helpers.h 2024-01-11 23:28:42 +01:00
Sara bf23ff877a feat: replaced messagereceiver with mirror 2024-01-11 23:28:42 +01:00
Sara be64a55588 chore: removed unneeded includes 2023-12-03 10:37:57 +01:00
Sara 39f89d5127 feat: Prop now detects damage with #define-d message constant
As opposed to a magic number 1
2023-12-02 15:46:36 +01:00
Sara 9af31f6695 feat: prop uses damage events 2023-12-01 21:45:52 +01:00
Sara 5fac1f1629 feat: player now uses damage events 2023-12-01 21:45:43 +01:00
Sara f201fe50f5 feat: changed timing for hurtboxes from player 2023-12-01 21:45:10 +01:00
Sara cca9b97378 chore: newline at the end of a file 2023-12-01 21:44:37 +01:00
Sara 9fbbd833a5 feat: enemy now looks at player when hit 2023-12-01 21:44:30 +01:00
Sara c2229a5bba feat: added DamageEventData struct 2023-12-01 21:43:28 +01:00
Sara 264141ceb5 feat: entry file renamed 2023-12-01 21:43:16 +01:00
Sara 97cea9c8c7 feat: worked to make walk animation more readable 2023-11-29 16:50:49 +01:00
Sara 0d7eb82ea7 chore: updated some formatting 2023-11-29 16:27:26 +01:00
Sara 086e8fc449 feat: player attacks now query combat physics layer 2023-11-29 14:21:08 +01:00
Sara 04ade25772 chore: removed debug draws 2023-11-29 14:20:40 +01:00
Sara 26bea065b9 feat: enemy animation and hurt reaction 2023-11-29 14:20:19 +01:00
Sara 29a40ce082 feat: changed handle message signature to (T*, MessageID, uintptr_t) 2023-11-29 14:18:51 +01:00
Sara af6c8d33ea feat: input error handling improved 2023-11-29 14:14:01 +01:00
Sara fbdfef79a2 feat: added Layers.h and defined PHYSICS_LAYER_COMBAT 2023-11-29 14:13:18 +01:00
Sara 2bf6bea14f fix(types): removed implicit type casts 2023-11-29 14:12:44 +01:00
Sara f76cb2d57b feat: added hurt animation 2023-11-29 13:47:46 +01:00
Sara 879d72e10f feat: enemy now initializes 2 animations, and declares 3 2023-11-29 11:49:00 +01:00
Sara 1fbb3b1530 fix: damage is now dealt correctly 2023-11-29 11:48:39 +01:00
Sara b3622ab279 feat: play() now spawns an enemy 2023-11-29 11:48:02 +01:00
Sara 58e93e3336 feat: PlayerStart now resets the animation 2023-11-29 11:47:50 +01:00
Sara c0203325b6 feat: created enemy states, declared idle and walk state 2023-11-29 11:47:35 +01:00
Sara 3e8c7d4bb7 feat: input to rectangle shape is now half extents 2023-11-29 11:47:17 +01:00
Sara f3f48780c0 fix: physics world will now include the median point in the right collision set 2023-11-29 11:46:47 +01:00
Sara 87c976824e chore: added whitespace around a function 2023-11-28 10:27:26 +01:00
Sara 087b74244e chore: improved formatting in PlayerGetDepth 2023-11-27 19:03:08 +01:00
Sara 1dae0d7f12 fix(windows): removed cast from static definition 2023-11-27 19:02:33 +01:00
Sara 804d8784a3 feat: implemented basic skeleton of the enemy type 2023-11-27 19:01:11 +01:00
Sara dd2f0799cb feat: messages header to define message ids globally 2023-11-27 19:00:27 +01:00
Sara 39999eaabd feat: created Enemy struct 2023-11-27 17:41:56 +01:00
Sara 71d8ebd45c feat: prop now destroys itself when receiving message id 1 2023-11-27 17:41:44 +01:00
Sara 02f48c5fb3 feat: player attacks now have better timing for the attack frame 2023-11-27 17:41:14 +01:00
Sara 53af5fb66d feat: player implements no message receiver 2023-11-27 17:40:51 +01:00
Sara b1cecfc0ae feat: physics world now manages active, added and removed entities better 2023-11-27 17:40:32 +01:00
Sara 5e371a3754 feat: game world now destroys objects for which game_world_destroy has been called 2023-11-27 17:40:11 +01:00
Sara 965ae37c7e feat: physicsentity now requires messagereceiver 2023-11-27 17:39:05 +01:00
Sara a4253abfa1 feat: added MessageReceiver trait 2023-11-27 17:38:54 +01:00