This commit is contained in:
Rorikstr | Rust Dev 2025-09-29 15:20:21 +03:00
parent f8e1e664a7
commit 5fd528e22a
11 changed files with 78 additions and 67 deletions

View file

@ -1,9 +1,9 @@
#include "01_automato.h"
#include <string.h>
const int (*get_figure_shape(FigureType type, int rotation))[4] {
const int (*get_figure_shape(Sprite_t sprite, int rotation))[4] {
const int (*result)[4] = NULL;
switch (type) {
switch (sprite) {
case I:
switch (rotation % 4) {
case 0: result = i_fig_up(); break;