this post was submitted on 10 Sep 2024
3 points (100.0% liked)

Project Harmonia

34 readers
6 users here now

A work-in-progress life simulation game.

GitHub

founded 8 months ago
MODERATORS
3
Continue to improve building tools (files.mastodon.social)
submitted 4 weeks ago* (last edited 4 weeks ago) by [email protected] to c/[email protected]
 

I’ve finally added the ability to edit and remove previously spawned walls, along with an undo/redo system.

Implementing the undo/redo was a bit challenging. If a command spawns or despawns an entity, it needs to be tracked to update the history with the correct ID. Additionally, since the game is networked, I had to introduce the concept of pending history commands. These commands are only added to the history after server confirmation.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here