mirror of
https://github.com/duckduckdoof/miniopolis.git
synced 2025-03-15 00:51:20 +00:00
Modified info text
This commit is contained in:
parent
08d788e24b
commit
be57a7a3ed
1 changed files with 5 additions and 3 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue