14 lines
275 B
Markdown
14 lines
275 B
Markdown
```python
|
|
extends TileMapLayer
|
|
|
|
signal hex_clicked(cell_pos:Vector2, atlas_coords:Vector2)
|
|
|
|
func _ready():
|
|
print("TileMapLayer is alive")
|
|
|
|
func _input(event: InputEvent):
|
|
#print("Unhandled input")
|
|
if event is InputEventMouseButton:
|
|
if event.pressed==false: return
|
|
```
|
|
|