Fen Dweller
ccd0641ee2
Fix typo
před 5 roky
Fen Dweller
cadb3d470f
Check ctrl/shift state when focusing and unfocusing the window
před 5 roky
Fen Dweller
78ce6607f3
Remove portrait-specific upgrade button sizing
před 5 roky
Fen Dweller
174f61c7d8
Make clicking on news show a new piece of news
před 5 roky
Fen Dweller
b7ab7f9c4f
Tweak version number
před 5 roky
Fen Dweller
d8770c7314
Slow down news a bit
před 5 roky
Fen Dweller
2d52b873de
Really fix buildings going off the screen
před 5 roky
Fen Dweller
851d8093c2
Increment version number
před 5 roky
Fen Dweller
80cb5b01a3
Tweak narrow layout a bit
před 5 roky
Fen Dweller
c217903b1a
Add missing closing html tag
před 5 roky
Fen Dweller
0a26d298f0
Add stats and options menus.
Stats can track a variety of things about the game, and are stored in the save.
The options menu lets you reconfigure things like your name and species.
před 5 roky
Fen Dweller
619b36f480
Reduce height of the display areas in landscape mode
před 5 roky
Fen Dweller
9436878c19
Add discord logo link; move changelog link; make top bar buttons scale a bit
před 5 roky
Fen Dweller
8627baeeca
Remode wildly out-of-date design docs
před 5 roky
Fen Dweller
7e43e732b5
Use stats to decide whether to show powerup upgrades. Fix error if no save exists
před 5 roky
Fen Dweller
f40e0da5b5
Consolidate saved data to a single big record. Add mechanics for stats
před 5 roky
Fen Dweller
a3c70a279d
Add more food-rate based news, plus placeholders for the buildings
před 5 roky
Fen Dweller
9b66f42a60
Add a few more news items - cars to houses
před 5 roky
Fen Dweller
e565bbb980
Add some news items based on belongings
This also introduces fields for your name and species, but they cannot be
configured just yet
před 5 roky
Fen Dweller
0c802b3ae7
Add news based on food production.
This commit also adds a template for such news and makes
news item pop up more frequently
před 5 roky
Fen Dweller
4c1c20bbab
Increase default precision
před 5 roky
Fen Dweller
fc60ecbc72
Fix the missing icon on the click powerup
před 5 roky
Fen Dweller
ac61300837
Add tooltips to powerups
před 5 roky
Fen Dweller
bf854e7c23
Add 10x click powerup
před 5 roky
Fen Dweller
599e085c1c
Add small number word mode - only goes up to septillion
před 5 roky
Fen Dweller
754b49d3cd
Powerup upgrades now require power crystals
před 5 roky
Fen Dweller
9f6b2d9683
Add power crystal resources. Resource rates only appear if needed. Clicking powerups gives a power crystal
před 5 roky
Fen Dweller
453036a01b
Bump version number
před 5 roky
Fen Dweller
d814db8195
Fix timed powerups not being applied
před 5 roky
Fen Dweller
00eb9c6d79
Equivalent powerups now combine their durations instead of stacking
před 5 roky
Fen Dweller
83e78b60af
Add prerequisites to powerups. Create a template for "free X" powerups. Add free bus
The "free X" powerups now only appear if you have at least one of the item, and also stop appearing once you have 100
před 5 roky
Fen Dweller
013e5d4593
Add scientific/full number modes, plus a button to cycle them
před 5 roky
Fen Dweller
c2313a5dd0
Nerf powerup frequency upgrades
Before, each one multiplied the time between spawns by 0.5
Now, they multiply the time by 0.75, then 0.78, then 0.81,
and so forth
před 5 roky
Fen Dweller
ac1b68b075
Popups and building tooltips use words, not raw numbers
před 5 roky
Fen Dweller
fbf107ed35
Reuse the calculated contributions of each building when displaying stats
před 5 roky
Fen Dweller
3c24e7d341
Go back to mutating objects instead of making fresh copies.
před 5 roky
Fen Dweller
e1a35da3d5
Display resources without creating new html elements every tick
před 5 roky
Fen Dweller
d531a6a898
Only update building names/costs if needed
před 5 roky
Fen Dweller
2fd81ab666
Turn update rate back up to 60
před 5 roky
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
před 5 roky
Fen Dweller
001cc37bd2
Only enable/disable building buttons if needed
před 5 roky
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
před 5 roky
Fen Dweller
0edfddd65e
Cache upgrade buttons
před 5 roky
Fen Dweller
7f237b2ad3
Cache references to the building buttons
před 5 roky
Fen Dweller
9746e5648d
Fix another busted upgrade - helper was wrong
před 5 roky
Fen Dweller
12b7a0093e
Fix more instances of accessing the wrong production values/mixing up numbers and objects
před 5 roky
Fen Dweller
451e3fae72
Fix powerups always giving 1000 food
před 5 roky
Fen Dweller
c1693e8804
Freeze results of operations on costs. Fix prod upgrades not getting the food cost of buildings
před 5 roky
Fen Dweller
158a17b5fa
Deep-freeze the remaining configuration objects
Since I did not explain deep-freezing in the last commit..it essentially
makes an entire object read-only, meaning that instead of mangling important
data, badly written code will throw an error!
před 5 roky
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
před 5 roky