-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
52 lines (37 loc) · 987 Bytes
/
main.c
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
// ==================== game.c ==================== //
// Follow this file template to implement your game //
// ================================================ //
#define SIM 1 // change value depending if running simulation or not
// ================================ //
#pragma code-name ("CODE")
#pragma bss-name ("BSS")
#include <int.h>
#include <vram.h>
#include <stop.h>
#include <Q9_6.h>
#include <mapache64_zero_page.h>
#include <controller.h>
#include <screen.h>
#include "main.h"
#include "game_state.h"
#include "controller_edge.h"
#include "obma_stack.h"
#include "patterns.h"
#include "player.h"
#include "menu.h"
void reset(void) {
controller_edge_reset();
initialized = false;
game_state = GAME_STATE_MENU;
// load patterns
obma_stack_initialize();
players_initialize();
load_patterns();
}
void do_logic(void) {
if (!initialized)
initialize();
controller_edge_update();
advance();
}
void fill_vram(void) { }