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,