getting_started/first_2d_game/ #13
Replies: 2 comments
-
Godot Engine: Basic Arrow Shooting Game ScriptAttach this script to a Node2D or an appropriate scene root.extends Node2D Preload resourcesvar arrow_scene = preload("res://Arrow.tscn") Game variablesvar score = 0 Nodesonready var score_label = $ScoreLabel func _ready(): func _process(delta): func spawn_target(): func shoot_arrow(): func update_score(points): Input handlingfunc _input(event): |
Beta Was this translation helpful? Give feedback.
-
Godot Engine: Basic Arrow Shooting Game ScriptAttach this script to a Node2D or an appropriate scene root.extends Node2D Preload resourcesvar arrow_scene = preload("res://Arrow.tscn") Game variablesvar score = 0 Nodesonready var score_label = $ScoreLabel func _ready(): func _process(delta): func spawn_target(): func shoot_arrow(): func update_score(points): Input handlingfunc _input(event): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
getting_started/first_2d_game/
In this step-by-step tutorial series, you will create your first complete 2D game with Godot. By the end of the series, you will have a simple yet complete game of your own, like the image below. i...
https://docs.godot.community/getting_started/first_2d_game/
Beta Was this translation helpful? Give feedback.
All reactions