|
|
d0ba27ee0f
|
optimize clearing lines by using pointers to define the row order
|
2025-01-29 11:56:07 +01:00 |
|
|
|
1a342d764c
|
add selected shape drawing
|
2025-01-29 10:45:28 +01:00 |
|
|
|
16f5380ef4
|
allow for shape movement
|
2025-01-29 10:19:10 +01:00 |
|
|
|
9c63c82822
|
remove whitespace
|
2025-01-28 17:05:18 +01:00 |
|
|
|
f974f48d79
|
rename TET_SHAPE_* macros to SHAPE_
|
2025-01-28 17:04:39 +01:00 |
|
|
|
1a7903f30f
|
rework shapes & rotations to be more usable (also fixed broken J and T variants)
|
2025-01-28 17:04:07 +01:00 |
|
|
|
a2dd3914da
|
store selected shape id in game data
|
2025-01-28 16:29:48 +01:00 |
|
|
|
2fb10106f4
|
make set all generate also include all rotations of tetromino.
Reworked set_shape to take in id, instead of colour and shape.
|
2025-01-28 16:28:30 +01:00 |
|
|
|
398df2066b
|
add random rotation to random placement
|
2025-01-27 16:44:44 +01:00 |
|
|
|
92676d6474
|
fix: you need to take the square root of the size, not divide by two,
|
2025-01-27 16:44:02 +01:00 |
|
|
|
b3ad7e1f54
|
readability fixes
|
2025-01-27 16:38:24 +01:00 |
|
|
|
2dbdc5ac40
|
add colour selection based on ID
|
2025-01-27 16:19:07 +01:00 |
|
|
|
1097c6e09d
|
make shape data identifiable by ID and rotation
|
2025-01-27 16:16:23 +01:00 |
|
|
|
b698a0e3d1
|
add some temporary code for setting a random tetromino
|
2025-01-27 15:32:05 +01:00 |
|
|
|
7f00107c7f
|
split up the code a bit more
|
2025-01-27 00:26:36 +01:00 |
|
|
|
fec4651639
|
rename shapes.h to tetromino/shapes.h
|
2025-01-27 00:20:36 +01:00 |
|
|
|
26770f38fe
|
change column size to 16 instead of 10
|
2025-01-27 00:16:50 +01:00 |
|
|
|
cc51611eb2
|
fix column size
|
2025-01-27 00:16:11 +01:00 |
|
|
|
1c90857a3d
|
remove typed enums reliance
|
2025-01-26 11:49:31 +01:00 |
|
|
|
3190bb4732
|
fix pedantic warnings
|
2025-01-24 19:35:13 +01:00 |
|
|
|
ec77c6958f
|
make the shapes an enum rather than a bunch of definitions
|
2025-01-24 18:23:32 +01:00 |
|
|
|
ef31a446cd
|
add clear rows method
|
2025-01-24 17:24:51 +01:00 |
|
|
|
8ade7fa456
|
rename add_shape to set_shape
|
2025-01-24 16:37:38 +01:00 |
|
|
|
e38958ad56
|
add a few more colour definitions
|
2025-01-24 16:32:30 +01:00 |
|
|
|
ff03fa0e80
|
some formatting fixes
|
2025-01-24 16:30:32 +01:00 |
|
|
|
23a27e3e10
|
convert colour to a 2 bit format
|
2025-01-24 16:29:22 +01:00 |
|
|
|
99fe7df597
|
fix: incorrect import
|
2025-01-20 20:50:21 +01:00 |
|
|
|
34fd24b01f
|
implement setting coloured shapes
|
2025-01-20 00:27:01 +01:00 |
|
|
|
2933f5bdd8
|
add colour
|
2025-01-19 21:05:31 +01:00 |
|
|
|
c594c94428
|
make a start on the logic
|
2024-12-03 12:05:35 +01:00 |
|
Quinn
|
8bdf6bf2d2
|
Initial commit
|
2024-12-02 10:37:52 +01:00 |
|