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