mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-31 02:36:41 +00:00
- Upgraded to Godot 4 - Just remembered the basic principles are based on a tile editor, and dramatically simplified from there. Derp. - New state machine and license display add-ons. - Re-licensed under the GPL because Micropolis' assets aren't under a separate one.
14 lines
310 B
GDScript
14 lines
310 B
GDScript
extends State
|
|
|
|
|
|
const NEXT_STATE_ACTION = "demo_next_state"
|
|
|
|
|
|
func _enter() -> void:
|
|
if InputMap.has_action(NEXT_STATE_ACTION):
|
|
return
|
|
var input_event := InputEventKey.new()
|
|
input_event.keycode = KEY_TAB
|
|
|
|
InputMap.add_action(NEXT_STATE_ACTION)
|
|
InputMap.action_add_event(NEXT_STATE_ACTION, input_event)
|