|
|
94ca7e3d08
|
rename Colour8 to colour8
|
2025-02-10 11:58:00 +01:00 |
|
|
|
94ff2d200a
|
add game music (very rudimentary and hacky)
|
2025-02-06 21:41:02 +01:00 |
|
|
|
67e34a0cb0
|
add font
|
2025-02-06 14:33:54 +01:00 |
|
|
|
65bc44ef12
|
add score increasement
|
2025-02-04 15:20:20 +01:00 |
|
|
|
319282b7c8
|
draw score text
|
2025-02-04 14:53:31 +01:00 |
|
|
|
9dad1a2db4
|
got text working
|
2025-02-04 14:11:40 +01:00 |
|
|
|
628f69330e
|
fix: rect pointers are not created from a newly initialized rect
|
2025-02-04 13:58:11 +01:00 |
|
|
|
6b17086936
|
code cleanup + add font support
|
2025-02-04 13:54:28 +01:00 |
|
|
|
be09d57a27
|
use "const" where able to + random readability changes
|
2025-02-04 12:17:42 +01:00 |
|
|
|
c8d43d9564
|
tweak rendering
|
2025-02-04 10:38:25 +01:00 |
|
|
|
9cd45c2f20
|
fix: next shape is still shuffled
|
2025-02-04 10:34:39 +01:00 |
|
|
|
b3808a46a0
|
fix: next shape misaligned
|
2025-02-04 10:30:12 +01:00 |
|
|
|
bb8d9b47a2
|
fix: next shape is shuffled when shuffle is triggered
|
2025-02-04 10:15:55 +01:00 |
|
|
|
be800d2612
|
next block rendering
|
2025-02-03 16:24:12 +01:00 |
|
|
|
a9541812e0
|
reshape tetris window
|
2025-02-03 16:04:23 +01:00 |
|
|
|
9d648a747d
|
rework rendering slightly to include a border
|
2025-02-03 15:59:33 +01:00 |
|
|
|
150e811bdd
|
remove background
|
2025-02-03 15:32:08 +01:00 |
|
|
|
c546f78c4c
|
use correct 8 bit colourspace instead of including alpha
|
2025-02-03 15:02:00 +01:00 |
|
|
|
49b3add8c5
|
add background colour
|
2025-02-03 14:23:49 +01:00 |
|
|
|
4a2fb359fb
|
fix renderering to correctly determine width and height dynamically
|
2025-02-03 14:12:19 +01:00 |
|
|
|
df93300798
|
rework random shape selection
|
2025-02-03 14:05:53 +01:00 |
|
|
|
c21419480c
|
make playfield width 10 columns
|
2025-02-03 13:21:00 +01:00 |
|
|
|
56d957cbb2
|
fix; swapped S and Z
|
2025-02-01 23:41:24 +01:00 |
|
|
|
0432e847ac
|
rotation fixes and tweaks
|
2025-02-01 23:29:37 +01:00 |
|
|
|
8209aa1855
|
fix: rows are now being cleared properly and should no longer have any problems.
|
2025-02-01 03:14:44 +01:00 |
|
|
|
bbd81b46c5
|
optimise row storage by just using one list
|
2025-02-01 01:10:30 +01:00 |
|
|
|
2d6649e700
|
fix: bottom row not being cleared in double row
|
2025-01-29 18:03:15 +01:00 |
|
|
|
8d7434af28
|
fix: not able to place towards the far left
|
2025-01-29 17:46:10 +01:00 |
|
|
|
48117451cd
|
make tetromino spawn in the centre
|
2025-01-29 17:20:11 +01:00 |
|
|
|
6115160095
|
fix: lines cleared yield in various errors
|
2025-01-29 16:51:34 +01:00 |
|
|
|
accfa715e5
|
fix: not initializing rand properly
|
2025-01-29 16:02:59 +01:00 |
|
|
|
9b3d745274
|
add delay to make debugging easier
|
2025-01-29 15:55:25 +01:00 |
|
|
|
90031cf3da
|
set next block when placing a new block
|
2025-01-29 15:51:37 +01:00 |
|
|
|
3c2902baa6
|
code cleanup + call clear rows when placing a block
|
2025-01-29 15:41:29 +01:00 |
|
|
|
36ccb653ef
|
add rotation & make code a bit more readable
|
2025-01-29 15:37:49 +01:00 |
|
|
|
0856301c41
|
add collision
|
2025-01-29 13:09:06 +01:00 |
|
|
|
2f21952562
|
pack more efficiently
|
2025-01-29 12:18:10 +01:00 |
|
|
|
96511ac848
|
cleanup renderer code
|
2025-01-29 12:13:42 +01:00 |
|
|
|
d3f89b0d10
|
rename tmp_ function to dbg_
|
2025-01-29 12:07:12 +01:00 |
|
|
|
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 |
|
|
|
ba0018e8f9
|
add debug flag to compilation to allow for debug preprocessor
|
2025-01-27 17:09:20 +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 |
|