Refactor event bus to use non-retrievable events;

update collision handling and add new inventory initialization;
add torch lighting in fog shader;
This commit is contained in:
2026-03-28 11:38:20 +00:00
parent 15c457e7a6
commit bf93aecad1
14 changed files with 150 additions and 60 deletions
+31
View File
@@ -4,4 +4,35 @@ class State
# also their health, stealth, and memory bars
# it can handle mouse input for inventory management and item usage
# it can also handle keyboard input for quick item usage
def initialize
@inventory = {
# basic resources
:wood => 0,
:metal => 0,
:science => 0,
# nuetrals
:torch => 0,
:radar => 0,
# placeable weapons
:landmine => 0,
:shrodingers_mine => 0,
:event_horizon => 0,
# attack weapons
:occams_razor => 0,
:quantum_bow => 0,
:blade_of_recursion => 0,
# utility weapon
:lorentz_field => 0
}
@inventory_selected = :wood
@upgrades = []
@health = 100
@stealth = 100
@memory = 256
end
end