Fumofumotris/source/fumotris/tetr.h
Julia 62b37ed348 hj
kj
2024-05-07 17:10:15 -05:00

26 lines
444 B
C

#include <stdio.h>
#include <stdlib.h>
#include "fumocommon.h"
#include "terminal.h"
struct TetrMap {
usize wid;
usize hgt;
int x;
int y;
u8f rot;
u8 *blks;
};
bool CreateTetrMap(struct TetrMap *map, usize wid, usize hgt);
void FreeTetrMap(struct TetrMap *map);
void TetrMapDraw(struct TetrMap *map, struct Terminal *term);
bool TetrCollisionCheck(struct TetrMap *board, struct TetrMap *piece, int dx, int dy);