mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-12-23 04:29:46 +00:00
17 lines
341 B
C
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
|