Port to SDL2

This commit is contained in:
2022-04-04 02:36:36 +02:00
parent 7e94c5053d
commit 48583e0b08
12 changed files with 63 additions and 60 deletions

View File

@@ -5,7 +5,7 @@
Feel free to customize this file to suit your needs
*/
#include <SDL/SDL.h>
#include <SDL.h>
#import <Cocoa/Cocoa.h>
@interface SDLMain : NSObject

View File

@@ -39,7 +39,6 @@ Entity GameMapAux_CreateEnt(Entity ent, int i, int j, int res) {
e = Entity_Copy(ent);
vec2_set(pos, (res / 2) + i * res, (res / 2) + j * res);
vec2_plus(e->pos, e->pos, pos);
Entity_CalcBBox(e);
GameLib_AddEntity(e);
return (e);
}