big refactor
This commit is contained in:
Vendored
+2
-2
@@ -4,9 +4,9 @@
|
||||
#include "input.h"
|
||||
#include <raymath.h>
|
||||
|
||||
Camera2D CreateCamera(int screenWidth, int screenHeight, Vector2 playerPosition, float initZoom){
|
||||
Camera2D CreateCamera(int windowWidth, int windowHeight, Vector2 playerPosition, float initZoom){
|
||||
return (Camera2D){
|
||||
.offset = (Vector2){screenWidth / 2.0f, screenHeight / 2.0f},
|
||||
.offset = (Vector2){windowWidth / 2.0f, windowHeight / 2.0f},
|
||||
.target = playerPosition,
|
||||
.rotation = 0.0f,
|
||||
.zoom = initZoom
|
||||
|
||||
Vendored
-1
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <rini.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct {
|
||||
char *path;
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ typedef struct {
|
||||
int width;
|
||||
int height;
|
||||
const char* title;
|
||||
} Display;
|
||||
} Window;
|
||||
|
||||
#endif // DISPLAY_H
|
||||
Reference in New Issue
Block a user