1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef WORLD_H #define WORLD_H #include "player.h" #define WORLD_WIDTH 10 #define WORLD_HEIGHT 10 typedef struct world { int map[WORLD_HEIGHT][WORLD_WIDTH][WORLD_WIDTH]; } World; void drawWorld(World *world); void handleCollision(World *world, Player *player); void handleGravity(World *world, Player *player); #endif