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.

141 lines
3.8 KiB

[gd_scene load_steps=17 format=2]
[ext_resource path="res://Scripts/Text Container.gd" type="Script" id=1]
[ext_resource path="res://Objects/Rocket.tscn" type="PackedScene" id=2]
[ext_resource path="res://Images and Anims/In Game/background.png" type="Texture" id=3]
[ext_resource path="res://Fonts/FasterOne-Regular.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://Scripts/MenuCoinLabel.gd" type="Script" id=5]
[ext_resource path="res://Music and Sounds/menu.ogg" type="AudioStream" id=6]
[ext_resource path="res://Images and Anims/In Game/coin.png" type="Texture" id=7]
[ext_resource path="res://Fonts/TurretRoad-Medium.ttf" type="DynamicFontData" id=8]
[sub_resource type="DynamicFont" id=1]
size = 96
use_filter = true
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=2]
size = 50
use_filter = true
font_data = ExtResource( 8 )
[sub_resource type="AtlasTexture" id=3]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 0, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=4]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 16, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=5]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 32, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=6]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 48, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=7]
flags = 4
atlas = ExtResource( 7 )
region = Rect2( 64, 0, 16, 16 )
[sub_resource type="SpriteFrames" id=8]
animations = [ {
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
"loop": true,
"name": "spin",
"speed": 8.0
} ]
[node name="MarginContainer" type="MarginContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 40.0
margin_top = 60.0
margin_right = -40.0
margin_bottom = -60.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="."]
margin_right = 748.0
margin_bottom = 1672.0
alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
margin_left = 374.0
margin_right = 374.0
margin_bottom = 1672.0
alignment = 1
[node name="CenterContainer" type="CenterContainer" parent="HBoxContainer/VBoxContainer"]
margin_top = 836.0
margin_bottom = 836.0
[node name="Rocket" parent="HBoxContainer/VBoxContainer/CenterContainer" instance=ExtResource( 2 )]
position = Vector2( 0, -34 )
scale = Vector2( 10, 10 )
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="HBoxContainer/VBoxContainer/CenterContainer/Rocket"]
stream = ExtResource( 6 )
autoplay = true
[node name="TextContainer" type="Node2D" parent="HBoxContainer/VBoxContainer/CenterContainer"]
script = ExtResource( 1 )
[node name="Title" type="Label" parent="HBoxContainer/VBoxContainer/CenterContainer/TextContainer"]
margin_left = -314.373
margin_top = -463.476
margin_right = 298.627
margin_bottom = -360.476
custom_fonts/font = SubResource( 1 )
text = "AsterVoid"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Tap" type="Label" parent="HBoxContainer/VBoxContainer/CenterContainer/TextContainer"]
margin_left = -145.271
margin_top = 575.036
margin_right = 133.729
margin_bottom = 631.036
custom_fonts/font = SubResource( 2 )
text = "Tap to play!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Coin" type="AnimatedSprite" parent="HBoxContainer/VBoxContainer/CenterContainer"]
position = Vector2( 0, -576 )
scale = Vector2( 3, 3 )
frames = SubResource( 8 )
animation = "spin"
frame = 3
playing = true
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/CenterContainer/Coin"]
margin_left = -20.0941
margin_top = 10.2118
margin_right = 19.9059
margin_bottom = 24.2118
align = 1
valign = 1
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="Sprite" parent="."]
position = Vector2( -205.108, 755.715 )
scale = Vector2( 4.46278, 4.46278 )
z_index = -1
texture = ExtResource( 3 )