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:
@@ -10,6 +10,10 @@ class Enemy
|
||||
@h = 30
|
||||
|
||||
@ai = EnemyAI.new(self, :chase)
|
||||
|
||||
$bus.on(:collides?) do |rect|
|
||||
next collides?(rect) ? :enemy : nil
|
||||
end
|
||||
end
|
||||
|
||||
def rect
|
||||
|
||||
Reference in New Issue
Block a user