From 545e129c7411714e7b40c742a23409629c9f767f Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 5 Apr 2022 14:54:34 -0600 Subject: Add stop component; entites are stackable when they arrive at a stop component. Maybe this is wrong? --- src/entities/wordLava.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/entities/wordLava.js') diff --git a/src/entities/wordLava.js b/src/entities/wordLava.js index 8c7780b..573dd29 100644 --- a/src/entities/wordLava.js +++ b/src/entities/wordLava.js @@ -2,6 +2,8 @@ game.createWordLava = () => { const wordLava = game.Entity(); wordLava.addComponent(game.components.LoadPriority({priority: 3})); wordLava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100})); + wordLava.addComponent(game.components.Pushable({pushable: true})); + wordLava.sprite = game.sprites.wordLava; return wordLava; } -- cgit v1.2.3-70-g09d2