7-7-25 6:40pm

This commit is contained in:
2025-07-07 18:40:20 -04:00
parent 435f375c93
commit cdf94c4bdf
37 changed files with 1930 additions and 0 deletions

18
Mob.cs Normal file
View File

@@ -0,0 +1,18 @@
using Godot;
using System;
public partial class Mob : RigidBody2D
{
public override void _Ready()
{
var animatedSprite2D = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
string[] mobTypes = animatedSprite2D.SpriteFrames.GetAnimationNames();
animatedSprite2D.Play(mobTypes[GD.Randi() % mobTypes.Length]);
}
// We also specified this function name in PascalCase in the editor's connection window.
private void OnVisibleOnScreenNotifier2DScreenExited()
{
QueueFree();
}
}