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:
17
scenes/Main.cs
Normal file
17
scenes/Main.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user