base structure
This commit is contained in:
@@ -5,7 +5,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace GodotHostTest.Game;
|
||||
|
||||
public partial class GameRootScope : RootScope
|
||||
public partial class GameRootServiceSource : RootServiceSource
|
||||
{
|
||||
[Export] private TargetSpawner _targetSpawner = null!;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
using OwofGames.GodotLume;
|
||||
|
||||
namespace GodotHostTest.Game;
|
||||
|
||||
public class LevelScope: RootScope;
|
||||
+3
-1
@@ -6,7 +6,7 @@ using GodotHostTest.Interfaces;
|
||||
|
||||
namespace GodotHostTest.Game;
|
||||
|
||||
public partial class Score : Control
|
||||
public partial class Score : Control, IScore
|
||||
{
|
||||
[Export] private AnimationPlayer _animationPlayer = null!;
|
||||
[Export] private Label _label = null!;
|
||||
@@ -34,4 +34,6 @@ public partial class Score : Control
|
||||
{
|
||||
_label.Text = $"Score: {_score}";
|
||||
}
|
||||
|
||||
int IScore.Score => _score;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene format=3 uid="uid://brbufibn7hi3o"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dc5mvle8lc40j" path="res://Game/Projectile.cs" id="1_80yud"]
|
||||
[ext_resource type="Script" uid="uid://qjonl8stia46" path="res://GodotDI/Scope.cs" id="2_3kmdq"]
|
||||
[ext_resource type="Script" uid="uid://qjonl8stia46" path="res://addons/GodotDI/ServiceSource.cs" id="2_3kmdq"]
|
||||
[ext_resource type="Texture2D" uid="uid://y1ros3y7hag2" path="res://icon.svg" id="3_1i54g"]
|
||||
|
||||
[node name="Projectile" type="Node2D" unique_id=1686616504]
|
||||
|
||||
Reference in New Issue
Block a user