Added a pause menu
It was actually not that difficult surprisingly. Adding this was pretty fun.
This commit is contained in:
1 parent
330258f987
commit
66ca286ea9
9 files changed
+160
-14
No files matched your search
+5
-2
@@ -6,9 +6,12 @@ public partial class Berries : Node2D {
|
||||
|
||||
public override void _Process(double delta) {
|
||||
Vector2 Pos = Position;
|
||||
Pos.Y += 500f * (float)delta;
|
||||
|
||||
SpawnBerryTimer += (float)delta;
|
||||
if (!Globals.IsPaused) {
|
||||
Pos.Y += 500f * (float)delta;
|
||||
|
||||
SpawnBerryTimer += (float)delta;
|
||||
}
|
||||
|
||||
int ScreenWidth = DisplayServer.WindowGetSize().X;
|
||||
|
||||
|
||||
Reference in new issue
Block a user