Commit graph

12 commits

Author SHA1 Message Date
a650e1db49 Clean up the context.new call in __main__ 2023-03-11 01:11:17 -08:00
02ed3d1e4a Add a title to the window :) 2023-03-11 01:00:09 -08:00
003aedf30e Restructure event handling
Events start in the Interface. The interface gets first crack at any incoming
events. If the interface doesn't handle the event, it is given to the
engine. The engine has an EngineEventHandler that yields actions just
like the event handler prior to this change.

The interface's event handler passes events to each window in the
interface. Windows can choose to handle events however they like, and
they return a bool indicating whether the event was fully handled.
2023-03-07 21:29:28 -08:00
84e51a17ff Specify map size of 80x24 2023-03-05 13:35:47 -08:00
c488ef9c2b Add doc string for Configuration attributes 2023-03-05 10:49:02 -08:00
06ae79ccd0 Redo the configuration metchanism
- Allow passing a font on the command line via --font
- Move the engine configuration to its own module
- Redo entirely the font configuration: move it to the configuration module
- Pass the configuration object to the Map in place of the size argument
2023-02-12 14:24:36 -08:00
f05dfdef55 PEP8 formatter changes 2023-02-10 21:25:00 -08:00
843aa2823f Some messing around with fonts and BDF files from long ago 2023-02-08 08:36:44 -08:00
c44c4e7bc6 Move the event loop to Engine.run_event_loop() 2022-05-14 23:39:03 -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
Renamed from roguebasin/__main__.py (Browse further)