Version 0.1 - 0.3.1
Added the World Added Mobs, and spawning those mobs at runtime Added simple camera movement Added simple UI/HUD
This commit is contained in:
16
scenes/entities/bumblebee/Bumblebee.cs
Normal file
16
scenes/entities/bumblebee/Bumblebee.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Bumblebee : BaseEntity
|
||||
{
|
||||
private FastNoiseLite fastNoise = new FastNoiseLite();
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
|
||||
fastNoise.SetSeed(GD.RandRange(int.MinValue, int.MaxValue));
|
||||
|
||||
animationPlayer.Play("move");
|
||||
}
|
||||
}
|
||||
1
scenes/entities/bumblebee/Bumblebee.cs.uid
Normal file
1
scenes/entities/bumblebee/Bumblebee.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://svy5ypjbf0gl
|
||||
61
scenes/entities/bumblebee/bumblebee.tscn
Normal file
61
scenes/entities/bumblebee/bumblebee.tscn
Normal file
@@ -0,0 +1,61 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b43wgesnaq4eg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b0q03xfp1iy6t" path="res://scenes/entities/BaseEntity.tscn" id="1_jg071"]
|
||||
[ext_resource type="Texture2D" uid="uid://cj5do47pclcnj" path="res://art/mobs/fly/bumblebee.png" id="2_opprm"]
|
||||
[ext_resource type="Script" uid="uid://svy5ypjbf0gl" path="res://scenes/entities/bumblebee/Bumblebee.cs" id="2_wfrvd"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_y1hpr"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_wfrvd"]
|
||||
resource_name = "move"
|
||||
length = 0.15
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.0692609),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1wlul"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_y1hpr"),
|
||||
&"move": SubResource("Animation_wfrvd")
|
||||
}
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wfrvd"]
|
||||
radius = 4.0
|
||||
|
||||
[node name="Bumblebee" instance=ExtResource("1_jg071")]
|
||||
script = ExtResource("2_wfrvd")
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
texture = ExtResource("2_opprm")
|
||||
hframes = 2
|
||||
|
||||
[node name="AnimationPlayer" parent="Sprite2D" index="0"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_1wlul")
|
||||
}
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
shape = SubResource("CircleShape2D_wfrvd")
|
||||
Reference in New Issue
Block a user