start game

This commit is contained in:
2024-03-13 17:35:46 +01:00
parent e5381a8c9d
commit 2b34a3e51d
7 changed files with 121 additions and 33 deletions

View File

@ -1,26 +1,31 @@
#include "shapes.h"
#include "shape_i.h"
#include "canvas.h"
uint8_t draw_i() {
return 0;
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;
}
uint8_t moveDown_i() {
return 0;
return 1;
}
uint8_t moveLeft_i() {
return 0;
return 1;
}
uint8_t moveRight_i() {
return 0;
return 1;
}
uint8_t rotateLeft_i() {
return 0;
return 1;
}
uint8_t rotateRight_i() {
return 0;
return 1;
}