Chris Ammerman on Nostr: I stayed up too late last night working on the player motion and attack mechanics in ...
I stayed up too late last night working on the player motion and attack mechanics in my #IndieDev #gamedev project.
I made a mess of things a while back when I decided I was tired of my Player class being a "god object", and started to modularize things. It took a lot of work but gravity, motion, jumping, attacking, etc., are all modular now and reusable for NPCs.
Published at
2024-11-26 15:46:01 UTCEvent JSON
{
"id": "6a86f13a24c3812ac010945312c74df59c776a5634ef8ffa0ba83fa3056b9531",
"pubkey": "c301e59621f8ea2938ea46e22ce474cbee123ad4425f951312953739cbf8e294",
"created_at": 1732635961,
"kind": 1,
"tags": [
[
"t",
"gamedev"
],
[
"t",
"indiedev"
],
[
"proxy",
"https://mstdn.social/@cammerman/113550030361331340",
"web"
],
[
"proxy",
"https://mstdn.social/users/cammerman/statuses/113550030361331340",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mstdn.social/users/cammerman/statuses/113550030361331340",
"pink.momostr"
],
[
"-"
]
],
"content": "I stayed up too late last night working on the player motion and attack mechanics in my #IndieDev #gamedev project.\n\nI made a mess of things a while back when I decided I was tired of my Player class being a \"god object\", and started to modularize things. It took a lot of work but gravity, motion, jumping, attacking, etc., are all modular now and reusable for NPCs.",
"sig": "6b42c5d9e08dee733177909fd34dbc9c4d3c2163fc0a67b959ee68b6738b90c51bd89b0e39272695aaf1eecc5cb02f594fb6a0f1528f491d89d2bb17d207a2e4"
}