Commit Graph

47 Commits

Author SHA1 Message Date
4a2f879448 Move tetris to its own dir 2020-09-11 14:29:06 +02:00
c7f3e7c741 TETRIS: lines 2020-09-11 14:24:54 +02:00
c7f5e834bb TETRIS: fix rotation 2020-09-11 12:28:42 +02:00
a10f3cf47e Only show shadow BELOW current piece 2020-09-11 11:47:24 +02:00
625e7866a4 TETRIS: Show shadow of where the piece will fall 2020-09-10 16:50:36 +02:00
393b975dbe Tetris: dark background, make window resizable 2020-08-24 22:14:41 +02:00
3cc5c4192a Add option to make window resizable, fix scaling 2020-08-24 22:14:26 +02:00
f36890e124 Start pieces from higher up 2020-08-24 20:46:10 +02:00
194981a3d3 Finally fix randomly missing blocks 2020-08-24 20:37:20 +02:00
14943bf005 Fixed game over menu 2020-08-24 20:07:11 +02:00
af5e7bbd34 Add game over screen 2020-08-24 18:44:42 +02:00
c853e925bd TETRIS: Add restart option to pause menu 2020-08-24 18:21:35 +02:00
93d47d9883 Add save/restore to scene 2020-08-24 18:21:03 +02:00
29b750cf9a Fixed random 45 degree turns 2020-08-24 17:44:34 +02:00
e6bf3def99 Check surroundings before rotation 2020-08-24 16:36:24 +02:00
9daf4b373d Mark getPos as const 2020-08-24 16:33:53 +02:00
07fb33c2dd Tetris pieces should be shared_ptr 2020-08-24 08:48:25 +02:00
5d18c3b923 Tetris: slightly better randomizer 2020-08-23 15:49:38 +02:00
74d8799ab5 Tetris: fixed when high framerates 2020-08-23 15:30:45 +02:00
aaaf668616 Remove object from collisions as well when killing it 2020-08-23 15:30:31 +02:00
5f275081fe Define block size and player area, check if rotation is valid 2020-08-23 11:37:07 +02:00
a995ba3b85 Some basic formatting 2020-08-23 09:50:05 +02:00
097fab4329 Use text renderer 2020-08-23 09:49:04 +02:00
bb0f7d4e75 Tetris should have sdlpp.hpp as dependency 2020-08-23 09:47:47 +02:00
05ac3cb90a Add proper text rendering 2020-08-23 09:47:31 +02:00
cf8ec294d1 We have 7 tetris blocks, not 6 2020-08-23 01:23:47 +02:00
f58bec6204 TETRIS 2020-08-23 01:15:46 +02:00
eec97302bb Check if font loaded 2020-08-23 01:14:59 +02:00
6acfff3e8f Changes done during tetris development 2020-08-23 01:08:10 +02:00
27274c7242 Remove useless couts 2020-08-22 14:31:41 +02:00
7e67bebae2 Pause menu 2020-08-22 14:29:39 +02:00
94aed4cd02 Render polygon BEFORE collisions 2020-08-22 14:15:12 +02:00
bf0d08ae16 Add pause scene, make custom movement easier to implement 2020-08-22 14:13:28 +02:00
329ef7f40f Add text and rendering of color rectangles 2020-08-22 13:17:56 +02:00
618786f885 Destroyable 2020-08-21 21:40:15 +02:00
eaa463fb85 Add circle render 2020-08-21 20:53:21 +02:00
12c6c9049f Update colliders when updating render objects 2020-08-21 19:49:42 +02:00
1b0a35cf5a More fun jumping 2020-08-21 19:04:58 +02:00
ea7dff32a2 Add hiding of stuff and scene pause 2020-08-21 18:54:42 +02:00
77d5f9a8cb Add option to show coliders (only rect so far) 2020-08-21 18:32:15 +02:00
9db93cd72c Add infinite rectangles, make scene move when player gets near the screen's edge 2020-07-28 19:35:31 +02:00
847b5cbd8e Add death drop 2020-07-28 18:13:38 +02:00
9c1fef7a86 Make rendering dependant on smaller side only 2020-07-28 14:46:48 +02:00
9195be85d0 Gravity + jumping 2020-07-27 20:05:59 +02:00
18f1213985 Tests 2020-07-27 18:59:00 +02:00
626927fba4 Makefile and gitignore 2020-07-27 18:58:43 +02:00
3f61cd59ba Working, terrible code, but working 2020-07-26 22:37:20 +02:00