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
|
#include <stddef.h>
#include <raylib.h>
#ifndef RESOURCES_H
#define RESOURCES_H
static const size_t DEFAULT_MAX_OPS = 2 * 1000 * 1000;
static const char *DEFAULT_CONFIG_LOCATION = "config.conf";
typedef struct {
// The maximum amount of operations performed by a VM on each check.
//
// Keep in mind that setting this parameter higher will make the infinite
// loops in your submission longer to detect. Lowering this parameter will make
// the limitation on the code runtime stricter.
size_t MaxOperations;
} Config;
void DrawBackground();
/// #670916 as RGBA
static const Color COLORSCHEME_BROWN = { 103, 9, 22, 255 };
/// #CF042C as RGBA
static const Color COLORSCHEME_RED = { 207, 4, 44, 255 };
/// #F0781C as RGBA
static const Color COLORSCHEME_ORANGE = { 240, 120, 28, 255 };
/// #f7bc53 as RGBA
static const Color COLORSCHEME_YELLOW = { 247, 188, 83, 255 };
/// #E9E1B9 as RGBA
static const Color COLORSCHEME_WHITE = { 233, 225, 185, 255 };
/// #48A56A as RGBA
static const Color COLORSCHEME_GREEN = { 72, 165, 106, 255 };
bool ReadConfig(const char *location);
Config *GetConfig();
void LoadResources();
Font *GetMainFont();
Font *GetMonoFont();
#endif // RESOURCES_H
|