This repository was archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
56 lines (49 loc) · 1.72 KB
/
Program.cs
File metadata and controls
56 lines (49 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using Raylib_cs;
using BooBoo.GameState;
using BooBoo.Engine;
using BooBoo.Util;
namespace BooBoo
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
Window.InitWindow();
Raylib.InitAudioDevice();
SystemManager.InitSystem();
//if (args.Length > 0 && args[0] == "-Battle")
if (false)
new ModelTestGameState().Init();
else if(true)
{
string[] chars = new string[2];
for (int i = 0; i < 2; i++)
{
Console.WriteLine($"Player {i} id");
chars[i] = Console.ReadLine();
if (!SystemManager.CharExists(chars[i]))
{
Console.WriteLine("Char doesnt exist. Put valid char id");
i--;
}
}
new BattleGameState() { charIds = chars, inputs = new InputHandler[] { new InputHandler(true, -1), new InputHandler(false, 0) } }.Init();
}
else if(true)
new CSelGameState { p1Input = new InputHandler(true, -1), p2Input = new InputHandler(false, 0) }.Init();
while(!Raylib.WindowShouldClose())
{
GameStateBase.gameState.Update();
//it wouldnt be ready to draw yet
if (!GameStateBase.switchingGameState)
GameStateBase.gameState.Draw();
else
GameStateBase.switchingGameState = false;
}
Raylib.CloseAudioDevice();
Raylib.CloseWindow();
}
}
}