big refactor
This commit is contained in:
Vendored
+3
-1
@@ -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,
|
||||
|
||||
Vendored
+21
@@ -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
|
||||
Vendored
+13
@@ -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
|
||||
Reference in New Issue
Block a user