-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.zig
40 lines (32 loc) · 1.63 KB
/
main.zig
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
const std = @import("std");
// Relative to root folder
// Use with std.fs.cwd().openFile(assets.some_file_path)
const root_path = "assets/";
const sprites_path = root_path ++ "sprites/";
pub const sphere_m3d = @embedFile("assets/sphere.m3d");
pub const teapot_m3d = @embedFile("assets/teapot.m3d");
pub const torusknot_m3d = @embedFile("assets/torusknot.m3d");
pub const venus_m3d = @embedFile("assets/venus.m3d");
pub const stanford_dragon_m3d = @embedFile("assets/stanford_dragon.m3d");
pub const gotta_go_fast_png = @embedFile("assets/gotta-go-fast.png");
pub const sprites_sheet_png = @embedFile("assets/sprites/sheet.png");
pub const sprites_sheet_red_png = @embedFile("assets/sprites/sheet-red.png");
pub const roboto_medium_ttf = @embedFile("assets/fonts/Roboto-Medium.ttf");
pub const skybox_negx_png = @embedFile("assets/skybox/negx.png");
pub const skybox_negy_png = @embedFile("assets/skybox/negy.png");
pub const skybox_negz_png = @embedFile("assets/skybox/negz.png");
pub const skybox_posx_png = @embedFile("assets/skybox/posx.png");
pub const skybox_posy_png = @embedFile("assets/skybox/posy.png");
pub const skybox_posz_png = @embedFile("assets/skybox/posz.png");
pub const bgm = struct {
pub const behind_the_sword = @embedFile("assets/bgm/behind_the_sword_alexander_nakarada.opus");
pub const bit_bit_loop = @embedFile("assets/bgm/bit_bit_loop_kevin_macleod.opus");
};
pub const sfx = struct {
pub const death = @embedFile("assets/sfx/death.opus");
pub const sword1 = @embedFile("assets/sfx/sword1.opus");
pub const scifi_gun = @embedFile("assets/sfx/scifi_gun.opus");
};
test {
std.testing.refAllDeclsRecursive(@This());
}