mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-12 21:42:23 +02:00
Added banana animation
This commit is contained in:
8
src/Objects/Banana/Banana.gd
Normal file
8
src/Objects/Banana/Banana.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends AnimatedSprite
|
||||
|
||||
func _ready():
|
||||
play("place")
|
||||
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
queue_free()
|
||||
@@ -1,25 +1,83 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=20 format=2]
|
||||
|
||||
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://testSprites/bannane.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Objects/Banana/animation.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 40, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 80, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 120, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 160, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 200, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 240, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 280, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 320, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 360, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 400, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 440, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 480, 0, 40, 40 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=15]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
|
||||
"loop": false,
|
||||
"name": "place",
|
||||
"speed": 60.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 7.54726
|
||||
height = 12.1493
|
||||
|
||||
[node name="Banana" type="Node2D"]
|
||||
[node name="Banana" type="AnimatedSprite"]
|
||||
frames = SubResource( 15 )
|
||||
animation = "place"
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Kind" parent="." instance=ExtResource( 4 )]
|
||||
general = 2
|
||||
kind = 10
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 1.54256, -4.73786 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Hurtbox" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 1.54256, -4.73786 )
|
||||
collision_layer = 32
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
queue_free()
|
||||
BIN
src/Objects/Banana/animation.png
Normal file
BIN
src/Objects/Banana/animation.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
34
src/Objects/Banana/animation.png.import
Normal file
34
src/Objects/Banana/animation.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/animation.png-1da805c2da35e7e6c661d9596a57f750.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Banana/animation.png"
|
||||
dest_files=[ "res://.import/animation.png-1da805c2da35e7e6c661d9596a57f750.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
src/Objects/Banana/icon.png
Normal file
BIN
src/Objects/Banana/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 380 B |
34
src/Objects/Banana/icon.png.import
Normal file
34
src/Objects/Banana/icon.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-9dc4caad05920b6cd30b7c767b233c2a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Banana/icon.png"
|
||||
dest_files=[ "res://.import/icon.png-9dc4caad05920b6cd30b7c767b233c2a.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
src/Objects/Banana/mouse_follow.png
Normal file
BIN
src/Objects/Banana/mouse_follow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 386 B |
34
src/Objects/Banana/mouse_follow.png.import
Normal file
34
src/Objects/Banana/mouse_follow.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/mouse_follow.png-999aae3065fa4a723899678a470caab4.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Banana/mouse_follow.png"
|
||||
dest_files=[ "res://.import/mouse_follow.png-999aae3065fa4a723899678a470caab4.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://testSprites/Spike.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
|
||||
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
height = 6.36237
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2]
|
||||
[ext_resource path="res://testSprites/Sting.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
|
||||
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 6.77597
|
||||
height = 6.36237
|
||||
|
||||
Reference in New Issue
Block a user