From 3f4c07d2cf57bd364af6b09a3d5381d148aa713e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 22 Jan 2021 16:40:46 +0100 Subject: New Characters! New Levels! --- Characters/Elephant.tscn | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Characters/Elephant.tscn (limited to 'Characters/Elephant.tscn') diff --git a/Characters/Elephant.tscn b/Characters/Elephant.tscn new file mode 100644 index 0000000..5c41e9d --- /dev/null +++ b/Characters/Elephant.tscn @@ -0,0 +1,58 @@ +[gd_scene load_steps=10 format=2] + +[ext_resource path="res://Characters/Tux.gd" type="Script" id=1] +[ext_resource path="res://Assets/Characters/Elephant/Walk2.png" type="Texture" id=2] +[ext_resource path="res://Assets/Characters/Elephant/Walk1.png" type="Texture" id=3] +[ext_resource path="res://Assets/Characters/Elephant/Back.png" type="Texture" id=4] +[ext_resource path="res://Assets/Characters/Elephant/Front.png" type="Texture" id=5] +[ext_resource path="res://Assets/Characters/Elephant/Wall.png" type="Texture" id=6] +[ext_resource path="res://Assets/Characters/Elephant/Jump.png" type="Texture" id=7] + +[sub_resource type="SpriteFrames" id=1] +animations = [ { +"frames": [ ExtResource( 4 ) ], +"loop": true, +"name": "back", +"speed": 5.0 +}, { +"frames": [ ExtResource( 5 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 7 ) ], +"loop": true, +"name": "jump", +"speed": 5.0 +}, { +"frames": [ ExtResource( 6 ) ], +"loop": true, +"name": "wall", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ), ExtResource( 2 ) ], +"loop": true, +"name": "walk", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ), ExtResource( 2 ) ], +"loop": true, +"name": "run", +"speed": 10.0 +} ] + +[sub_resource type="RectangleShape2D" id=2] +extents = Vector2( 9.21901, 11.2317 ) + +[node name="Elephant" type="KinematicBody2D"] +collision_mask = 15 +script = ExtResource( 1 ) + +[node name="Sprite" type="AnimatedSprite" parent="."] +scale = Vector2( 0.7, 0.7 ) +frames = SubResource( 1 ) +animation = "idle" +playing = true + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource( 2 ) -- cgit v1.2.3