How to Make the Classic 2048 Game in Python! (Pygame Code Tutorial)

LeMaster Tech
LeMaster Tech
17.5 هزار بار بازدید - 2 سال پیش - In this tutorial I show
In this tutorial I show you how to make the classic number combination game 2048, where you earn points and advance in the game by combining same numbered tiles to go up the powers of two!

If you want the full code for download find it here:
https://github.com/plemaster01/Python...

Consider Supporting the channel by becoming a Patreon subscriber here!
Patreon: LeMasterTech

2048 is a pretty simple game but requires some pretty intelligent array manipulation and this is a great programming challenge for novices or advanced programmers looking for a fun project! Thank you everyone who's been supporting the channel over the past months and thank you everyone for 1,500 Subscribers!!!

If you like this tutorial or have any questions about what you saw, be sure to let me know in the comments below, and let me know what else you'd like to see on the channel!

Don't forgot to leave a like and subscribe for tons more great tutorials!

Timestamps:
00:00 Intro and Description
01:28 Setting Up PyGame!
05:57 Drawing the Basic Layout and Tiles
17:22 Resizing Text Based on Number of Characters
22:50 Randomly Spawn In New Pieces
30:45 Player Controls Setup!
37:00 Moving the Pieces Up!
45:25 Moving the Pieces Down!
51:55 Moving the Pieces Left!
55:15 Moving the Pieces Right!
1:00:12 Start Tracking Score and High Score!
1:05:30 How to Restart 2048 on Game Over!
1:11:45 Outro!
2 سال پیش در تاریخ 1401/05/22 منتشر شده است.
17,597 بـار بازدید شده
... بیشتر