mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 14:02:23 +02:00
Added cards for objects + MISC
- Added flame animation - Added cards for objects - Added new background animation - Added placeable walls Co-Authored-By: deranonymos <deranonymos@users.noreply.github.com>
This commit is contained in:
52
src/Objects/Barriere/BarrierCard.tscn
Normal file
52
src/Objects/Barriere/BarrierCard.tscn
Normal file
@@ -0,0 +1,52 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Menus/DragNDrop/DragSource.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Objects/Card/level2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Objects/Card/level1.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Objects/Card/level0.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Objects/Card/card.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Objects/Barriere/Barriere.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Objects/Barriere/wall_icon.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Objects/Barriere/wall_set.png" type="Texture" id=8]
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 4 ) ],
|
||||
"loop": false,
|
||||
"name": "lvl0",
|
||||
"speed": 60.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 3 ) ],
|
||||
"loop": false,
|
||||
"name": "lvl1",
|
||||
"speed": 60.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"loop": false,
|
||||
"name": "lvl2",
|
||||
"speed": 60.0
|
||||
} ]
|
||||
|
||||
[node name="GenericCard3" type="TextureRect"]
|
||||
margin_left = 124.812
|
||||
margin_top = 220.859
|
||||
margin_right = 156.812
|
||||
margin_bottom = 252.859
|
||||
texture = ExtResource( 7 )
|
||||
expand = true
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
Item = ExtResource( 6 )
|
||||
PreviewIcon = ExtResource( 8 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 15.729, 15.7929 )
|
||||
z_index = -1
|
||||
texture = ExtResource( 5 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 33.1035, 40.3068 )
|
||||
frames = SubResource( 1 )
|
||||
animation = "lvl0"
|
||||
@@ -1,7 +1,17 @@
|
||||
extends StaticBody2D
|
||||
|
||||
var time = false
|
||||
# This is the decay script for the barrier
|
||||
|
||||
func _ready():
|
||||
if time:
|
||||
print("test")
|
||||
# TODO: please adjust it for actual gameplay
|
||||
export (float, 0.5, 10.0) var decay_time = 1.5
|
||||
|
||||
func on_timer_timeout():
|
||||
queue_free()
|
||||
|
||||
|
||||
func _ready():
|
||||
var time = Timer.new()
|
||||
add_child(time)
|
||||
time.connect("timeout", self, "on_timer_timeout")
|
||||
time.set_wait_time(decay_time)
|
||||
time.start()
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Objects/Barriere/walll_set.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Objects/Barriere/wall_set.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Objects/Barriere/Barriere.gd" type="Script" id=3]
|
||||
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 16, 16 )
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 265 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/walll_set.png-14a571aaae5c633c6c5acb4e4da0907e.stex"
|
||||
path="res://.import/wall_icon.png-4660e7832ecb2bec94fe72c64de8031f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Barriere/walll_set.png"
|
||||
dest_files=[ "res://.import/walll_set.png-14a571aaae5c633c6c5acb4e4da0907e.stex" ]
|
||||
source_file="res://Objects/Barriere/wall_icon.png"
|
||||
dest_files=[ "res://.import/wall_icon.png-4660e7832ecb2bec94fe72c64de8031f.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/walll_icon.png-9f38c5d9cd8974dba0adbde6130d8aee.stex"
|
||||
path="res://.import/wall_set.png-0e44387b5e0645313085185c20fa3be1.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Barriere/walll_icon.png"
|
||||
dest_files=[ "res://.import/walll_icon.png-9f38c5d9cd8974dba0adbde6130d8aee.stex" ]
|
||||
source_file="res://Objects/Barriere/wall_set.png"
|
||||
dest_files=[ "res://.import/wall_set.png-0e44387b5e0645313085185c20fa3be1.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
Reference in New Issue
Block a user