Maze ready for next step
This commit is contained in:
parent
3593722378
commit
0b239dc793
2
haloo3d
2
haloo3d
@ -1 +1 @@
|
|||||||
Subproject commit fbcc3e9103e7f84390827dc1a63151f2ad72d158
|
Subproject commit e374afaa60a7f5daeaa87104bed3fb2b97a29f7e
|
15
maze.c
15
maze.c
@ -28,7 +28,6 @@
|
|||||||
#define MAZESIZE 31
|
#define MAZESIZE 31
|
||||||
#define HSCALE 2.0
|
#define HSCALE 2.0
|
||||||
|
|
||||||
// #define MAZESQUARE ((MAZESIZE + 1) * (MAZESIZE + 1))
|
|
||||||
// Maze grows down and to the right.
|
// Maze grows down and to the right.
|
||||||
#define MAZESOUTH 1
|
#define MAZESOUTH 1
|
||||||
#define MAZEEAST 2
|
#define MAZEEAST 2
|
||||||
@ -140,6 +139,14 @@ void maze_wall_generate(uint8_t *maze, int size, haloo3d_obj *obj) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (int i = 0; i < size; i++) {
|
||||||
|
dir.x = -1;
|
||||||
|
dir.y = 0;
|
||||||
|
haloo3d_gen_grid_quad(obj, 0, i, dir);
|
||||||
|
dir.x = 0;
|
||||||
|
dir.y = -1;
|
||||||
|
haloo3d_gen_grid_quad(obj, i, 0, dir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() { // int argc, char **argv) {
|
int main() { // int argc, char **argv) {
|
||||||
@ -258,9 +265,9 @@ int main() { // int argc, char **argv) {
|
|||||||
unigi_graphics_init();
|
unigi_graphics_init();
|
||||||
unigi_window_create(res, "maze.exe"); // render.printbuf);
|
unigi_window_create(res, "maze.exe"); // render.printbuf);
|
||||||
|
|
||||||
render.camera.pos.y = 5;
|
// render.camera.pos.y = 5;
|
||||||
render.camera.pitch = 2.2;
|
// render.camera.pitch = 2.2;
|
||||||
ceili->pos.y = -10;
|
// ceili->pos.y = -10;
|
||||||
|
|
||||||
haloo3d_debugconsole_set(&dc, "obj/ceil/pos_y.f", &ceili->pos.y);
|
haloo3d_debugconsole_set(&dc, "obj/ceil/pos_y.f", &ceili->pos.y);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user