tetris/shape_i.c

32 lines
465 B
C
Raw Normal View History

2024-03-13 14:52:46 +01:00
#include "shapes.h"
#include "shape_i.h"
2024-03-13 17:35:46 +01:00
#include "canvas.h"
2024-03-13 14:52:46 +01:00
uint8_t draw_i() {
2024-03-13 17:35:46 +01:00
canvasSetPixel(stone.x, stone.y, 0x01);
canvasSetPixel(stone.x, stone.y+1, 0x01);
canvasSetPixel(stone.x, stone.y+2, 0x01);
canvasSetPixel(stone.x, stone.y+3, 0x01);
return 1;
2024-03-13 14:52:46 +01:00
}
uint8_t moveDown_i() {
2024-03-13 17:35:46 +01:00
return 1;
2024-03-13 14:52:46 +01:00
}
uint8_t moveLeft_i() {
2024-03-13 17:35:46 +01:00
return 1;
2024-03-13 14:52:46 +01:00
}
uint8_t moveRight_i() {
2024-03-13 17:35:46 +01:00
return 1;
2024-03-13 14:52:46 +01:00
}
uint8_t rotateLeft_i() {
2024-03-13 17:35:46 +01:00
return 1;
2024-03-13 14:52:46 +01:00
}
uint8_t rotateRight_i() {
2024-03-13 17:35:46 +01:00
return 1;
2024-03-13 14:52:46 +01:00
}