Commit Graph

  • 1ee8c69d1b don't use exact integer types where it's not necessary Quinn 2025-04-17 09:45:27 +02:00
  • 4bba7bda9f rework error.h Quinn 2025-04-16 16:44:01 +02:00
  • b2e2089a59 improve makefile Quinn 2025-04-16 16:42:57 +02:00
  • 86b1d9a617 make font loading not required for the application to execute. Quinn 2025-04-16 16:19:47 +02:00
  • db98a96b87 execute program in 32 bit mode, as we don't need that wide of an adress space Quinn 2025-04-16 15:03:04 +02:00
  • 17a7502003 don't store the rows on the heap; it works just fine on the stack Quinn 2025-04-16 14:28:08 +02:00
  • 271d4e47d4 semantic fix: include headers directly Quinn 2025-04-16 14:15:12 +02:00
  • 0599b7e9fe fix: make gametime compillable for windows Quinn 2025-04-16 14:13:06 +02:00
  • a2ab7da423 fix: run target correctly sets the working directory Quinn 2025-04-16 14:06:27 +02:00
  • ef527ec640 fix: memory leak due to not unloading the audio Quinn 2025-04-16 14:05:59 +02:00
  • 1b384af8e9 improved safety of renderer Quinn 2025-04-16 11:53:47 +02:00
  • 0df7730838 fix: include header file directly and remove unused include Quinn 2025-03-25 11:58:59 +01:00
  • 646629adc1 fix: use the audio device's channels, rather than the source's channels Quinn 2025-03-25 11:45:40 +01:00
  • 9d41a2a65b fix: move the S->MS conversion to the total bytesize, instead of it being the last operation. Quinn 2025-03-25 11:35:02 +01:00
  • 6aa4840777 improve comments for audio milliseconds computation Quinn 2025-03-25 11:33:40 +01:00
  • 8bbcd29c56 add place sound effect Quinn 2025-03-25 11:26:12 +01:00
  • 293a211d55 add "BUG:" comment Quinn 2025-03-25 11:25:48 +01:00
  • 8a3245cd71 whitespace fix Quinn 2025-03-25 11:25:27 +01:00
  • 77b0eb5a98 fix: use cvt.len_cvt for new length instead of cvt.len Quinn 2025-03-25 11:25:07 +01:00
  • a1dcb0a734 improve comments and error messages Quinn 2025-03-25 11:24:42 +01:00
  • 54d3eb5785 fix: not checking SDL_BuildAduiCVT in case it failed Quinn 2025-03-25 11:23:32 +01:00
  • fbcc2984e9 make inputs less sensitive Quinn 2025-03-23 10:44:35 +01:00
  • f72949dc38 use new time system rather than the badly written old one Quinn 2025-03-22 23:51:51 +01:00
  • 14c62914f0 add memory safety check for when initializing the rows Quinn 2025-03-22 16:28:31 +01:00
  • a46e48f603 add line number and file name to error log Quinn 2025-03-22 15:31:12 +01:00
  • 60ae11de10 synchronise with the template Quinn 2025-03-22 15:29:42 +01:00
  • 7fb624311f use new error files Quinn 2025-03-22 12:08:19 +01:00
  • fccf1c6276 fix: did not include SDL2_ttf in new version Quinn 2025-03-22 11:56:02 +01:00
  • f5c1f8c343 don't require ARCH when cleaning Quinn 2025-03-22 11:52:44 +01:00
  • 595336ad0c touchups on the new error files Quinn 2025-03-22 11:31:18 +01:00
  • 1abf9297ec add new error files Quinn 2025-03-22 11:23:13 +01:00
  • d44e99ade5 sync config files with template Quinn 2025-03-22 11:15:53 +01:00
  • bd904b5e32 some formatting fixes Quinn 2025-03-22 11:09:00 +01:00
  • a446368e56 add documentation files Quinn 2025-03-22 11:06:56 +01:00
  • 25954afeea fix: not updating text entirely Quinn 2025-02-17 00:41:59 +01:00
  • f30b8182b1 optimise text drawing function by only creating a new texture when necessary Quinn 2025-02-16 23:44:27 +01:00
  • 2c5be9685c fix: remove bitfield from union Quinn 2025-02-12 19:24:21 +01:00
  • 0596f8d5d5 fix: forgot to rename renderdata to a lowercase variant Quinn 2025-02-12 17:29:34 +01:00
  • be3c796ec1 fix: lldb unable to connect to the program Quinn 2025-02-12 17:10:18 +01:00
  • f755f76636 make makefile output more readable and fix issues regarding debugging Quinn 2025-02-12 13:12:09 +01:00
  • 5ad9be7bcc fix: macros didn't have new struct name Quinn 2025-02-11 21:55:20 +01:00
  • e95e201116 fix: shape_ prefix to is_set Quinn 2025-02-11 21:54:23 +01:00
  • 663e28f085 rename more typedefs to lowercase Quinn 2025-02-11 21:53:17 +01:00
  • 8105d35272 add losing when the next shape overlaps the current one (just a basic quit) Quinn 2025-02-11 11:51:24 +01:00
  • 4ed4e9522f fix: not using renderer and timer directly Quinn 2025-02-11 11:45:58 +01:00
  • ecfe6b1452 add hardware acceleration Quinn 2025-02-11 11:45:28 +01:00
  • 3b5b7bf15b add game times Quinn 2025-02-11 11:45:19 +01:00
  • 5db3519a87 add audio looping Quinn 2025-02-11 10:45:44 +01:00
  • 95daac90dd update audio player to use a linked list instead of an array. Quinn 2025-02-11 10:45:18 +01:00
  • 9b98de0f89 increase memory safety of audio module & small optimisations Quinn 2025-02-10 17:21:29 +01:00
  • 3fd7806e5f code cleanup: - rename typedefs to a lowercase variant - change variable names to shorter variants Quinn 2025-02-10 12:28:05 +01:00
  • 94ca7e3d08 rename Colour8 to colour8 Quinn 2025-02-10 11:58:00 +01:00
  • 94ff2d200a add game music (very rudimentary and hacky) Quinn 2025-02-06 21:41:02 +01:00
  • 67e34a0cb0 add font Quinn 2025-02-06 14:33:54 +01:00
  • 65bc44ef12 add score increasement Quinn 2025-02-04 15:20:20 +01:00
  • 319282b7c8 draw score text Quinn 2025-02-04 14:53:31 +01:00
  • 9dad1a2db4 got text working Quinn 2025-02-04 14:11:40 +01:00
  • 628f69330e fix: rect pointers are not created from a newly initialized rect Quinn 2025-02-04 13:58:11 +01:00
  • 6b17086936 code cleanup + add font support Quinn 2025-02-04 13:54:28 +01:00
  • be09d57a27 use "const" where able to + random readability changes Quinn 2025-02-04 12:17:42 +01:00
  • c8d43d9564 tweak rendering Quinn 2025-02-04 10:38:25 +01:00
  • 9cd45c2f20 fix: next shape is still shuffled Quinn 2025-02-04 10:34:39 +01:00
  • b3808a46a0 fix: next shape misaligned Quinn 2025-02-04 10:30:12 +01:00
  • bb8d9b47a2 fix: next shape is shuffled when shuffle is triggered Quinn 2025-02-04 10:15:55 +01:00
  • be800d2612 next block rendering Quinn 2025-02-03 16:24:12 +01:00
  • a9541812e0 reshape tetris window Quinn 2025-02-03 16:04:23 +01:00
  • 9d648a747d rework rendering slightly to include a border Quinn 2025-02-03 15:59:33 +01:00
  • 150e811bdd remove background Quinn 2025-02-03 15:32:08 +01:00
  • c546f78c4c use correct 8 bit colourspace instead of including alpha Quinn 2025-02-03 15:02:00 +01:00
  • 49b3add8c5 add background colour Quinn 2025-02-03 14:23:49 +01:00
  • 4a2fb359fb fix renderering to correctly determine width and height dynamically Quinn 2025-02-03 14:12:19 +01:00
  • df93300798 rework random shape selection Quinn 2025-02-03 14:05:53 +01:00
  • c21419480c make playfield width 10 columns Quinn 2025-02-03 13:21:00 +01:00
  • 56d957cbb2 fix; swapped S and Z Quinn 2025-02-01 23:41:24 +01:00
  • 0432e847ac rotation fixes and tweaks Quinn 2025-02-01 23:29:37 +01:00
  • 8209aa1855 fix: rows are now being cleared properly and should no longer have any problems. Quinn 2025-02-01 03:14:44 +01:00
  • bbd81b46c5 optimise row storage by just using one list Quinn 2025-02-01 01:10:30 +01:00
  • 2d6649e700 fix: bottom row not being cleared in double row Quinn 2025-01-29 18:03:15 +01:00
  • 8d7434af28 fix: not able to place towards the far left Quinn 2025-01-29 17:46:10 +01:00
  • 48117451cd make tetromino spawn in the centre Quinn 2025-01-29 17:20:11 +01:00
  • 6115160095 fix: lines cleared yield in various errors Quinn 2025-01-29 16:51:34 +01:00
  • accfa715e5 fix: not initializing rand properly Quinn 2025-01-29 16:02:59 +01:00
  • 9b3d745274 add delay to make debugging easier Quinn 2025-01-29 15:55:25 +01:00
  • 90031cf3da set next block when placing a new block Quinn 2025-01-29 15:51:37 +01:00
  • 3c2902baa6 code cleanup + call clear rows when placing a block Quinn 2025-01-29 15:41:29 +01:00
  • 36ccb653ef add rotation & make code a bit more readable Quinn 2025-01-29 15:37:49 +01:00
  • 0856301c41 add collision Quinn 2025-01-29 13:09:06 +01:00
  • 2f21952562 pack more efficiently Quinn 2025-01-29 12:18:10 +01:00
  • 96511ac848 cleanup renderer code Quinn 2025-01-29 12:13:42 +01:00
  • d3f89b0d10 rename tmp_ function to dbg_ Quinn 2025-01-29 12:07:12 +01:00
  • d0ba27ee0f optimize clearing lines by using pointers to define the row order Quinn 2025-01-29 11:56:07 +01:00
  • 1a342d764c add selected shape drawing Quinn 2025-01-29 10:45:28 +01:00
  • 16f5380ef4 allow for shape movement Quinn 2025-01-29 10:19:10 +01:00
  • 9c63c82822 remove whitespace Quinn 2025-01-28 17:05:18 +01:00
  • f974f48d79 rename TET_SHAPE_* macros to SHAPE_ Quinn 2025-01-28 17:04:39 +01:00
  • 1a7903f30f rework shapes & rotations to be more usable (also fixed broken J and T variants) Quinn 2025-01-28 17:04:07 +01:00
  • a2dd3914da store selected shape id in game data Quinn 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. Quinn 2025-01-28 16:28:30 +01:00
  • ba0018e8f9 add debug flag to compilation to allow for debug preprocessor Quinn 2025-01-27 17:09:20 +01:00
  • 398df2066b add random rotation to random placement Quinn 2025-01-27 16:44:44 +01:00