Commit Graph

4 Commits

Author SHA1 Message Date
Sebastian Lohff ec7b46ebc9 Switch direction of MorseState state array
Originally it was easier for the MorseBanner to have the states with
newest in front, but this makes the code harder to read and complicates
things in other places.

At some point it also might make sense to not use a range() in
MorseBanner, but use a int var + counter instead, as we often might only
consume a small number of elements. But as this is game programming,
"winging it" and getting something done seems to be the modus operandi.
2025-02-03 01:49:46 +01:00
Sebastian Lohff ca3b8dba62 Move MorseState into autoload
Before this every instance of the MorseBanner had its own state, but as
we want to use the state also for other purposes, it doesn't make sense
to keep it in each instance. Therefore we now have an autoload that
keeps the state as a singleton. The MorseBanner now gets its state from
the autoload, so no more communication is needed between the main part
and the MorseBanner.
2025-02-02 18:36:32 +01:00
Sebastian Lohff 49d2656335 Add morse banner
The Banner shows all morse signals of the last x seconds.
2025-02-01 19:00:12 +01:00
Sebastian Lohff 4c07dbe67e Working CW tool
Makes noise and everything
2025-02-01 01:47:11 +01:00