add taquin scene
This commit is contained in:
parent
f46aa08a21
commit
5503d1e735
|
@ -15,7 +15,7 @@ _global_script_class_icons={
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Takin"
|
config/name="Taqin"
|
||||||
run/main_scene="res://src/Main.tscn"
|
run/main_scene="res://src/Main.tscn"
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
[gd_scene format=2]
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
[node name="Main" type="Node2D"]
|
[ext_resource path="res://src/Taquin.tscn" type="PackedScene" id=1]
|
||||||
|
|
||||||
|
[node name="Main" type="Control"]
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
|
||||||
|
[node name="Taquin" parent="." instance=ExtResource( 1 )]
|
||||||
|
|
15
game/src/Taquin.gd
Normal file
15
game/src/Taquin.gd
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a = 2
|
||||||
|
# var b = "text"
|
||||||
|
export var rows: int = 4
|
||||||
|
export var columns: int = 4
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
12
game/src/Taquin.tscn
Normal file
12
game/src/Taquin.tscn
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://src/Taquin.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="NoiseTexture" id=1]
|
||||||
|
|
||||||
|
[node name="Node2D" type="Node2D"]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 511, 311 )
|
||||||
|
texture = SubResource( 1 )
|
Loading…
Reference in a new issue