summaryrefslogtreecommitdiff
path: root/scripts/Enemy.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Enemy.cs')
-rw-r--r--scripts/Enemy.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/Enemy.cs b/scripts/Enemy.cs
new file mode 100644
index 0000000..52eb27f
--- /dev/null
+++ b/scripts/Enemy.cs
@@ -0,0 +1,10 @@
+using Godot;
+using System;
+
+public partial class Enemy : Actor {
+ public override void performAction() {
+ Walk(Vector2I.Right);
+
+ GD.Print("Energy after walking: " + Energy);
+ }
+}