Simple 2D game based on avoiding asteroids while controlling a rocket
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

[gd_scene load_steps=7 format=2]
[ext_resource path="res://Objects/Rocket.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scripts/Rocket.gd" type="Script" id=2]
[ext_resource path="res://Images and Anims/In Game/background.png" type="Texture" id=3]
[ext_resource path="res://Scripts/Game.gd" type="Script" id=4]
[ext_resource path="res://Scripts/Score.gd" type="Script" id=5]
[ext_resource path="res://Scripts/CoinLabel.gd" type="Script" id=6]
[node name="Game" type="Node2D"]
script = ExtResource( 4 )
[node name="Rocket" parent="." instance=ExtResource( 1 )]
position = Vector2( 512, 300 )
scale = Vector2( 2, 2 )
script = ExtResource( 2 )
[node name="Coins" type="Label" parent="Rocket"]
margin_left = -41.9442
margin_top = -56.8347
margin_right = 42.0558
margin_bottom = -41.8347
align = 1
valign = 1
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Camera2D" type="Camera2D" parent="Rocket"]
offset = Vector2( 0, -220 )
current = true
smoothing_enabled = true
[node name="Score" type="Label" parent="Rocket"]
margin_left = 13.0
margin_top = 9.0
margin_right = 44.0
margin_bottom = 27.0
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
motion_scale = Vector2( 0.01, 0.01 )
[node name="Background" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
position = Vector2( 89.4544, -100.794 )
scale = Vector2( 5, 5 )
texture = ExtResource( 3 )