add HanafudaCard

This commit is contained in:
Fabien Freling 2021-11-16 23:22:54 +01:00
parent 6a8d342f07
commit 2896f7d8bb
3 changed files with 52 additions and 5 deletions

40
HanafudaCard.gd Normal file
View file

@ -0,0 +1,40 @@
extends Sprite
enum Month {
JANUARY,
FEBRUARY,
MARCH,
APRIL,
MAY,
JUNE,
JULY,
AUGUST,
SEPTEMBER,
OCTOBER,
NOVEMBER,
DECEMBER,
}
enum Flower {
PINE,
PLUM_BLOSSOM,
CHERRY_BLOSSOM,
WISTERIA,
IRIS,
PEONY,
BUSH_CLOVER,
GRASS,
CHRYSANTHEMUM,
MAPLE,
WILLOW,
PAULOWNIA,
}
# 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

10
HanafudaCard.tscn Normal file
View file

@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://HanafudaCard.gd" type="Script" id=1]
[ext_resource path="res://assets/png/Hanafuda_April_Kasu_1.png" type="Texture" id=2]
[node name="HanafudaCard" type="Sprite"]
position = Vector2( 292.75, 250.01 )
scale = Vector2( 0.2, 0.2 )
texture = ExtResource( 2 )
script = ExtResource( 1 )

View file

@ -1,10 +1,7 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/png/Hanafuda_April_Kasu_1.png" type="Texture" id=1]
[ext_resource path="res://HanafudaCard.tscn" type="PackedScene" id=1]
[node name="Node2D" type="Node2D"]
[node name="HanafudaAprilKasu1" type="Sprite" parent="."]
position = Vector2( 292.75, 250.01 )
scale = Vector2( 0.2, 0.2 )
texture = ExtResource( 1 )
[node name="HanafudaCard" parent="." instance=ExtResource( 1 )]