From be57a7a3eda2fde986ae626461e2336015d52f19 Mon Sep 17 00:00:00 2001 From: duckduckdoof Date: Wed, 22 Jan 2025 11:35:16 -0500 Subject: [PATCH] Modified info text --- miniopolis.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/miniopolis.py b/miniopolis.py index 28264a9..e4b7213 100644 --- a/miniopolis.py +++ b/miniopolis.py @@ -9,6 +9,7 @@ First attempt to make a tile-based colony-sim game. # IMPORTS ----------------------------------------------------------- import arcade +import arcade.key from lib.game_config import * # CLASSES ----------------------------------------------------------- @@ -65,9 +66,10 @@ class GameBoard(arcade.Window): ) def on_mouse_release(self, x, y, button, modifiers): - """ - On mouse click, get the tiles over the mouse. - """ + + # Check if button was held -- this means we place structure tiles or delete them + if button == arcade.key.X: + print("Delete!") # Checking structure tile type s_tiles = arcade.get_sprites_at_point((x,y), self.scene[LAYER_STRUCTURES])