apple1-videocard-lib/demos/tetris/sprite.h

17 lines
341 B
C

#ifndef SPRITE_H
#define SPRITE_H
// tetromino sprite
typedef struct {
int x; // signed integers to allow negative board positions
int y; // -1 means piece is preview ("next")
byte piece;
byte angle;
} sprite;
inline void sprite_copy(sprite *to, sprite *from) {
memcpy(to, from, sizeof(sprite));
}
#endif