mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-17 04:30:57 +01:00
added C test
This commit is contained in:
25
various-tests/raygol/game.h
Normal file
25
various-tests/raygol/game.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef _HAVE_GAME_H
|
||||
#define _HAVE_GAME_H
|
||||
|
||||
#include "grid.h"
|
||||
#include "raylib.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct Game {
|
||||
// Camera2D Camera;
|
||||
int ScreenWidth;
|
||||
int ScreenHeight;
|
||||
int Cellsize;
|
||||
|
||||
// Grid dimensions
|
||||
int Width;
|
||||
int Height;
|
||||
bool Done;
|
||||
Grid *Grid;
|
||||
} Game;
|
||||
|
||||
Game *Init(int width, int height, int gridwidth, int gridheight, int density);
|
||||
void Update(Game *game);
|
||||
void Draw(Game *game);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user