Fen Dweller
013e5d4593
Add scientific/full number modes, plus a button to cycle them
vor 5 Jahren
Fen Dweller
ac1b68b075
Popups and building tooltips use words, not raw numbers
vor 5 Jahren
Fen Dweller
fbf107ed35
Reuse the calculated contributions of each building when displaying stats
vor 5 Jahren
Fen Dweller
3c24e7d341
Go back to mutating objects instead of making fresh copies.
vor 5 Jahren
Fen Dweller
e1a35da3d5
Display resources without creating new html elements every tick
vor 5 Jahren
Fen Dweller
d531a6a898
Only update building names/costs if needed
vor 5 Jahren
Fen Dweller
2fd81ab666
Turn update rate back up to 60
vor 5 Jahren
Fen Dweller
a1a6b3d2b9
Clear upgrade states when toggling the showing of owned upgrades
This is needed to make sure that all of the buttons get updated - some will
have stale states, otherwise
vor 5 Jahren
Fen Dweller
001cc37bd2
Only enable/disable building buttons if needed
vor 5 Jahren
Fen Dweller
9d14b4a4e6
Only add/remove upgrade classes if needed.
The last state of the upgrade buttons are now cached. This ensures that
the classList is perturbed *only* if this would actually change the
appearance, and seems to be far faster than just adding something
to the classList over and over
vor 5 Jahren
Fen Dweller
0edfddd65e
Cache upgrade buttons
vor 5 Jahren
Fen Dweller
7f237b2ad3
Cache references to the building buttons
vor 5 Jahren
Fen Dweller
12b7a0093e
Fix more instances of accessing the wrong production values/mixing up numbers and objects
vor 5 Jahren
Fen Dweller
451e3fae72
Fix powerups always giving 1000 food
vor 5 Jahren
Fen Dweller
c1693e8804
Freeze results of operations on costs. Fix prod upgrades not getting the food cost of buildings
vor 5 Jahren
Fen Dweller
5738659d8e
Change everything to use a dictionary of costs, rather than just numbers
This has broken quite a bit, since many parts of the game expect a scalar instead of
a whole object. I have also been deep freezing constant configuration data and, generally,
trying to make as much immutable as possible
vor 5 Jahren
Fen Dweller
342c097524
Halve the update rate until I can improve performance
vor 5 Jahren
Fen Dweller
f4ce56bcdc
Change save version to be an integer.
vor 5 Jahren
Fen Dweller
579f9e5b9c
Reformat the js files
vor 5 Jahren
Fen Dweller
ab5eb148c6
Make some global objects const, at least
vor 5 Jahren
Fen Dweller
cd468417c6
Make powerups appear more slowly; add upgrades to speed them up
vor 5 Jahren
Fen Dweller
e3e882bb67
Allow for purchasing 5/10 buildings at once with shift/ctrl
vor 5 Jahren
Fen Dweller
10737ba3f2
Safely handle inability to load/save
vor 5 Jahren
Fen Dweller
87e2364e43
Add powerup display.
vor 5 Jahren
Fen Dweller
7940442243
Add a powerup that doubles food production for 10 seconds
vor 5 Jahren
Fen Dweller
89e0f6b167
Add mechanics for powerups with a duration
vor 5 Jahren
Fen Dweller
e5f8743a2b
Give each powerup an icon; add a second powerup
vor 5 Jahren
Fen Dweller
e77cf33cab
Create a set of powerups with effects/popup functions
vor 5 Jahren
Fen Dweller
cb69c8533c
Make powerups look nicer
vor 5 Jahren
Fen Dweller
f1809a322d
Add random popups that give food when clicked
vor 5 Jahren
Fen Dweller
e014a68c6e
Remove spurious variable
vor 5 Jahren
Fen Dweller
234c837a05
Allow news lines to use current belongings.
vor 5 Jahren
Fen Dweller
de272b1b98
Set up conditional news items
vor 5 Jahren
Fen Dweller
64efe12e12
Center the news text and make it appear more randomly
vor 5 Jahren
Fen Dweller
3d5258f449
Add a system for showing news popups at the bottom
vor 5 Jahren
Fen Dweller
3775e308cb
Update the button when the game is loaded
vor 5 Jahren
Fen Dweller
c3239d38a3
Fix upgrade tooltips not appearing after buying an upgrade
vor 5 Jahren
Fen Dweller
ffd0ecc44b
Eat button shows the correct name now
vor 5 Jahren
Fen Dweller
eb04231182
Try out letting the player eat different building tiers (just anthros atm)
vor 5 Jahren
Fen Dweller
808ed444e4
Move building buttons into a list
vor 5 Jahren
Fen Dweller
b932ebdd48
Prevent upgrade tooltips from going off the screen
vor 5 Jahren
Fen Dweller
22ac7cdd4c
Switch to fontawesome icons
vor 5 Jahren
Fen Dweller
540d84e8a4
Show icons on buildings and upgrades..or, at least, on micros
vor 5 Jahren
Fen Dweller
8f8927ef17
Allow viewing of owned upgrades
vor 5 Jahren
Fen Dweller
89b93b5bb7
Autosave every 60 seconds
vor 5 Jahren
Fen Dweller
4a9f2b177c
Show text when saving
vor 5 Jahren
Fen Dweller
edf8c813aa
Animate upgrade/building buttons a bit. Show text when buying upgrades
vor 5 Jahren
Fen Dweller
f98e9af1ac
Fix the building tooltip flying off the screen
vor 5 Jahren
Fen Dweller
17a0e288ad
Fix global prod bonuses messing up percentages
vor 5 Jahren
Fen Dweller
7079feb354
Randomize the gulp/+food movement a bit
vor 5 Jahren