9f27899572
Print some messages when damage and death happen!
2022-05-15 13:58:37 -07:00
72cbd15fb0
Render the MessageLog and clean up the interface (lots of math errors here)
2022-05-15 13:58:26 -07:00
08ef1af4e4
Add a MessageLog that keeps a record of in-game events
2022-05-15 13:58:06 -07:00
ff6763d354
Add a unique identifier to all entities (a monotonically increasing integer)
2022-05-15 13:57:32 -07:00
090272854d
Add a turn count that increments after successfully handling actions for that turn
2022-05-15 13:13:12 -07:00
5a9df0a322
Add my first interface element: a Bar!
...
It renders a bar of a certain width and a percentage full. Use it to render HP.
Add a new Python package called interface. The Bar class lives there. Also add a
bunch of color defintions to a module called interface.color.
2022-05-15 00:12:05 -07:00
388754e5dd
When the Hero dies, swap MainGameEventHandler for GameOverEventHandler
2022-05-14 23:43:38 -07:00
e5b3cbd2cd
Prepare for a GameOver state
...
- Factor a bunch of event handling into a base EventHandler class
- Rename the previous event handler MainGameEventHandler
- Add a GameOverEventHandler that only responds to Exit actions
2022-05-14 23:43:04 -07:00
5b0b33782f
Move handling hero actions and entity actions to the Engine
2022-05-14 23:41:43 -07:00
c44c4e7bc6
Move the event loop to Engine.run_event_loop()
2022-05-14 23:39:03 -07:00
2b367c7bb6
Quit the game on Escape
2022-05-12 20:40:46 -07:00
ee915bd7c1
Add a doc string and a terminal newline
2022-05-12 20:40:40 -07:00
ce63c825b0
Move all the logging to log.py and prefix all the log names with "erynrl"
2022-05-12 20:40:15 -07:00
f6fe9d0f09
Move the roguebasin package to erynrl
2022-05-12 09:05:27 -07:00