Template and Runtime Commit
Includes the godot runtime and the project files from the Match3 template.
This commit is contained in:
parent
1f18527c58
commit
978769d657
26 changed files with 638 additions and 0 deletions
11
project/Scenes/Dot.tscn
Normal file
11
project/Scenes/Dot.tscn
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Dot.gd" type="Script" id=1]
|
||||
|
||||
[node name="Dot" type="Node2D"]
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
|
||||
[node name="Tween" type="Tween" parent="."]
|
10
project/Scenes/Dots/blue_dot.tscn
Normal file
10
project/Scenes/Dots/blue_dot.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Dots/blue.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Dot.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="blue_dot" instance=ExtResource( 2 )]
|
||||
color = "blue"
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
10
project/Scenes/Dots/green_dot.tscn
Normal file
10
project/Scenes/Dots/green_dot.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Dots/green.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Dot.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="green_dot" instance=ExtResource( 2 )]
|
||||
color = "green"
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
10
project/Scenes/Dots/pink_dot.tscn
Normal file
10
project/Scenes/Dots/pink_dot.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Dots/pink.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Dot.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="pink_dot" instance=ExtResource( 2 )]
|
||||
color = "pink"
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
10
project/Scenes/Dots/red_dot.tscn
Normal file
10
project/Scenes/Dots/red_dot.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Dots/red.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Dot.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="red_dot" instance=ExtResource( 2 )]
|
||||
color = "red"
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
10
project/Scenes/Dots/yellow_dot.tscn
Normal file
10
project/Scenes/Dots/yellow_dot.tscn
Normal file
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Dots/yellow.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Dot.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="yellow_dot" instance=ExtResource( 2 )]
|
||||
color = "yellow"
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
21
project/Scenes/Game.tscn
Normal file
21
project/Scenes/Game.tscn
Normal file
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Grid.gd" type="Script" id=1]
|
||||
|
||||
[node name="Game" type="Node"]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Grid" type="Node2D" parent="."]
|
||||
script = ExtResource( 1 )
|
||||
width = 7
|
||||
height = 7
|
||||
offset = 70
|
||||
y_offset = -2
|
||||
empty_spaces = PoolVector2Array( 0, 0, 0, 6, 6, 6, 6, 0, 2, 3, 3, 3, 4, 3 )
|
Loading…
Add table
Add a link
Reference in a new issue