Added the World Added Mobs, and spawning those mobs at runtime Added simple camera movement Added simple UI/HUD
18 lines
436 B
C#
18 lines
436 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class Main : Node
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
var screenSize = GetViewport().GetVisibleRect().Size;
|
|
var camera = GetNode<Camera2D>("Camera2D");
|
|
camera.Position = new Vector2(screenSize.X / 2, screenSize.Y / 2);
|
|
|
|
var spawner = GetNode("World/Spawner");
|
|
|
|
var flyPosition = camera.Position;
|
|
// spawner.spawn_fly(flyPosition);
|
|
}
|
|
}
|