Fen Dweller
251c2fa7a2
Allow for stat bar colors to change
5 jaren geleden
Fen Dweller
b30d437274
Remove another unused state argument
5 jaren geleden
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.
5 jaren geleden
Fen Dweller
1de392dc57
Allow for stats to be hidden
5 jaren geleden
Fen Dweller
5b111c2490
Fix typo
5 jaren geleden
Fen Dweller
5fd3c7392e
Add a getStat function
5 jaren geleden
Fen Dweller
204ac4c68e
Remove the room property from the timer logic
6 jaren geleden
Fen Dweller
1518d2c6eb
Only create stats once for a room and clear room stats first
6 jaren geleden
Fen Dweller
6810672d2d
Consolidate info update into one function; add area info
6 jaren geleden
Fen Dweller
ba175b1e75
Remove redundant info rendering code
6 jaren geleden
Fen Dweller
c44ab73724
Make world info work like player stats
6 jaren geleden
Fen Dweller
03d7d17d1b
Add number stat type
6 jaren geleden
Fen Dweller
685507b373
Fix non-looping timers not working
6 jaren geleden
Fen Dweller
00878e9c40
Added a function to change stats w/ automatic bounds checking
6 jaren geleden
Fen Dweller
caaf2d7753
Timers can change their delay. They also get their own config.
6 jaren geleden
Fen Dweller
46320b87be
Fixed some properties not resetting on quit
6 jaren geleden
Fen Dweller
9fe021ea4e
Added some random events to each area. Fixed a bug where timers could not stop themselves
6 jaren geleden
Fen Dweller
0167d40608
Made stats into nice looking meters
6 jaren geleden
Fen Dweller
1b451e853b
Made stats more generic
6 jaren geleden
Fen Dweller
4d1208af7d
Added background color control.
6 jaren geleden
Fen Dweller
16a32e1e85
Can stop all timers without a class, too
6 jaren geleden
Fen Dweller
ae143ca194
Added classes to events
6 jaren geleden
Fen Dweller
454b4b7627
Cleaned up timers; stories have a setup function. Added digestion to the fen-snack story
6 jaren geleden
Fen Dweller
bae70b9663
Timers can be associated with rooms or ids now
6 jaren geleden
Fen Dweller
64cf846ea2
Added a basic timer system
6 jaren geleden
Fen Dweller
dbd3a5afc4
Created a very basic story selector
6 jaren geleden
Fen Dweller
b8b9f836ff
Some more info. Moving triggers a refresh
6 jaren geleden
Fen Dweller
f886af0873
updateRoom just takes the state, which has a location. Working on game logic
6 jaren geleden