Back to Browse

How to Code Tetris in Java

61.0K views
Sep 13, 2023
1:32:40

Coded Tetris for the first time and this is how I did it. If you want to learn how the game loop works in detail: https://youtu.be/VpH33Uw-_0E The in-game background music is from: https://www.youtube.com/watch?v=XeYJBCK-BJc ポケットサウンド - @pocketse The sound effects download link: https://drive.google.com/drive/folders/1gaCh_cjvlpNVuFzIul7Jnp88bQg8Qsws?usp=sharing *All sound effects were made using Beepbox https://www.beepbox.co Thanks for watching! Timestamps 0:00:00 Introduction and Setup 0:01:28 Window and Game Panel 0:04:25 Game Loop 0:08:30 Play Area 0:14:35 Block and Tetromino 0:18:52 Create the First Tetromino 0:25:40 Auto Drop 0:28:32 Movement 0:32:08 Rotation 0:37:05 Create Other 6 Tetrominoes 0:42:45 Pickup a Random Tetromino 0:44:55 Collision 0:54:19 Replace the Current Tetromino with the Next One 0:59:19 Static Blocks Collision 1:01:50 Sliding 1:05:02 Delete line(s) 1:10:15 Add Effect 1:13:00 Game Over 1:15:50 Scores and Level 1:20:40 Music and Sound Effect 1:30:15 FINAL RESULT #gamedev #javatutorial

Download

1 formats

Video Formats

360pmp4121.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to Code Tetris in Java | NatokHD