Fen Dweller
7b59b7919a
Switch colors from anonymous functions to getters
6 vuotta sitten
Fen Dweller
251c2fa7a2
Allow for stat bar colors to change
6 vuotta sitten
Fen Dweller
b30d437274
Remove another unused state argument
6 vuotta sitten
Fen Dweller
a36d966d3f
Stop passing the state around manually
It was a nice idea to explicitly pass state to everything,
but it didn't really provide any benefits (we only ever have one
game going at once), the rule was already violated (some places
used the global instance of state), and it added a lot of clutter.
Also removed the unused entity.js file.
6 vuotta sitten
Fen Dweller
1de392dc57
Allow for stats to be hidden
6 vuotta sitten
Fen Dweller
5b111c2490
Fix typo
6 vuotta sitten
Fen Dweller
5fd3c7392e
Add a getStat function
6 vuotta sitten
Fen Dweller
204ac4c68e
Remove the room property from the timer logic
6 vuotta sitten
Fen Dweller
1518d2c6eb
Only create stats once for a room and clear room stats first
7 vuotta sitten
Fen Dweller
6810672d2d
Consolidate info update into one function; add area info
7 vuotta sitten
Fen Dweller
ba175b1e75
Remove redundant info rendering code
7 vuotta sitten
Fen Dweller
c44ab73724
Make world info work like player stats
7 vuotta sitten
Fen Dweller
03d7d17d1b
Add number stat type
7 vuotta sitten
Fen Dweller
685507b373
Fix non-looping timers not working
7 vuotta sitten
Fen Dweller
00878e9c40
Added a function to change stats w/ automatic bounds checking
7 vuotta sitten
Fen Dweller
caaf2d7753
Timers can change their delay. They also get their own config.
7 vuotta sitten
Fen Dweller
46320b87be
Fixed some properties not resetting on quit
7 vuotta sitten
Fen Dweller
9fe021ea4e
Added some random events to each area. Fixed a bug where timers could not stop themselves
7 vuotta sitten
Fen Dweller
0167d40608
Made stats into nice looking meters
7 vuotta sitten
Fen Dweller
1b451e853b
Made stats more generic
7 vuotta sitten
Fen Dweller
4d1208af7d
Added background color control.
7 vuotta sitten
Fen Dweller
16a32e1e85
Can stop all timers without a class, too
7 vuotta sitten
Fen Dweller
ae143ca194
Added classes to events
7 vuotta sitten
Fen Dweller
454b4b7627
Cleaned up timers; stories have a setup function. Added digestion to the fen-snack story
7 vuotta sitten
Fen Dweller
bae70b9663
Timers can be associated with rooms or ids now
7 vuotta sitten
Fen Dweller
64cf846ea2
Added a basic timer system
7 vuotta sitten
Fen Dweller
dbd3a5afc4
Created a very basic story selector
7 vuotta sitten
Fen Dweller
b8b9f836ff
Some more info. Moving triggers a refresh
7 vuotta sitten
Fen Dweller
f886af0873
updateRoom just takes the state, which has a location. Working on game logic
7 vuotta sitten