GAME READY

This commit is contained in:
Masashi 2025-12-20 17:11:21 +05:30
commit 5a60e1c62a
18 changed files with 2506 additions and 249 deletions

View file

@ -1,6 +1,6 @@
#include "suic_app.h"
#include "../libsuicmez/libsuicmez.h"
#include "runtime.h"
#include "../../libsuicmez/libsuicmez.h"
// #include "runtime.h" // Not available
void suic_app_init(int width, int height, const char* title) {
suic_init_window(width, height, (char*)title);
@ -18,7 +18,7 @@ void suic_app_frame_begin(void) {
}
void suic_app_frame_end(void) {
draw_fps(10, 40);
suic_draw_fps(10, 40);
suic_end_drawing();
}

View file

@ -1,5 +1,5 @@
#include "suic_app.h"
#include "runtime.h"
// #include "runtime.h" // Not available
#include <math.h>
const char* suic_item_name(uint8_t t) {

View file

@ -245,7 +245,7 @@ void suic_terrain_cleanup(void) {
SuicTerrainShader suic_terrain_shader_load(void) {
SuicTerrainShader ts = {0};
ts.shader = LoadShader("terrain.vs", "terrain.fs");
ts.shader = LoadShader("game/terrain.vs", "game/terrain.fs");
if (ts.shader.id != 0) {
ts.locViewPos = GetShaderLocation(ts.shader, "viewPos");