big refactor

This commit is contained in:
huaqo-games
2025-10-30 22:55:47 +01:00
parent 66b961d7ab
commit 8761c69cfa
395 changed files with 291 additions and 995 deletions
+3 -1
View File
@@ -4,7 +4,9 @@
#include "input.h"
#include <raymath.h>
Camera2D CreateCamera(int windowWidth, int windowHeight, Vector2 playerPosition, float initZoom){
Camera2D CreateCamera(Vector2 playerPosition, float initZoom){
int windowWidth = GetScreenWidth();
int windowHeight = GetScreenHeight();
return (Camera2D){
.offset = (Vector2){windowWidth / 2.0f, windowHeight / 2.0f},
.target = playerPosition,
+21
View File
@@ -0,0 +1,21 @@
#ifndef ENGINE_H
#define ENGINE_H
#include "animation.h"
//#include "array.h"
#include "asset.h"
#include "camera.h"
#include "config.h"
#include "gamegui.h"
#include "gui.h"
#include "input.h"
#include "object.h"
#include "physics.h"
#include "postfx.h"
#include "soundtrack.h"
#include "sprite.h"
#include "vector.h"
#include "window.h"
#include "font.h"
#endif //ENGINE_H
+13
View File
@@ -0,0 +1,13 @@
#ifndef FONT_H
#define FONT_H
void InitFont(Font *font, const char* path){
*font = LoadFont(path);
SetTextureFilter(font->texture, TEXTURE_FILTER_POINT);
}
void CleanupFont(Font *font){
UnloadFont(*font);
}
#endif //FONT_H