-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.agc
75 lines (68 loc) · 2.11 KB
/
main.agc
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
////////////////////////////////////////////////////////////////
// Program..: Land of Warriors (LOW) //
// Author...: Luigi Caprio (Phobos70) //
// Mail.....: [email protected] //
// SH.......: Akamilab //
// Date.....: 13/11/2023 //
// //
// Nota(1)..: //
// Nota(2)..: //
// //
// MAIN //
////////////////////////////////////////////////////////////////
//
#include "framework.agc"
#include "load.agc"
#include "gioco.agc"
#renderer "Basic"
global_definition()
device_info()
language_load()
screen_definition()
estrai_pacchetti()
image_load()
reset_parameters()
repeat
// ***** DEBUG INFO
if GetRawKeyPressed(27)
statusGame = 9
endif
if GetRawKeyPressed(73) and displayInfo = 1
displayInfo = 0
elseif GetRawKeyPressed(73) and displayInfo = 0
displayInfo = 1
endif
if displayInfo = 1
Print("TITLE: " + textGame[00] + " " + textGame[01])
Print("DEVICE: " + deviceType + " - " + deviceSystem)
print("MaxW: " + str(deviceMaxWidth,0) + " - MaxH: " + str(deviceMaxHeight,0) + " - R: " + str(deviceAspectRatio,2))
Print("W: " + str(deviceWidth) + " H: " + str(deviceHeight))
Print("X: " + str(GetPointerX(),0) +"%" + " Y: " + str(GetPointerY(),0) + "%")
Print("LANG: " + deviceLanguage)
Print("FPS: " + str(ScreenFPS(),0))
endif
// ***** END DEBUG
// ***** STATUS
select statusGame
case 1 // SplashScreen
splash_screen()
endcase
case 2 // TitleScreen
statusGame = 3 // Jump to the game
endcase
case 3 // Game
gioco()
endcase
case 5 // Options
endcase
case 8 // Pause
endcase
case 9 // Exit
exitGame = 0
endcase
endselect
// ***** END STATUS
Sync()
until exitGame = 0
end
//