SamuZai
Clear Code

Clear Code

patreon


Clear Code posts

Snake in the powershell / terminal

The other video that was supposed to be out last week. A video about creating the snake game in the windows powershell or the mac and linux terminal with python.


Github: https://github.com/clear-code-projects/powershell-snake
Pastebin: View Post

Emojis in Python

😅Easily the dumbest video I ever made. This was supposed to be up by april fools day but the pysimplegui took all my time. I'll upload another video to catch up on the other video from last week. 

Github:  
https://github.com/clear-code-projects/Emojis-in-python 

Past...

View Post

The ultimate introduction to simple Python GUIs [ create 10 apps with PySimpleGUI ]

Hi everyone, here is the new video. It took way longer than expected and I will upload it tomorrow to Youtube to keep the algorithm happy. I'll catch up next week to make sure the videos come out a week early on here again! 

In this video you will learn how to create simple python GUIs using the PySimpleGUI library. There are 10 projects in this video: A converter, a calculator, a st...

View Post

Some updates

Hi everyone, 

Some small updates: I will try to post more videos in the future and hope to make one larger video every weekend and then a smaller midweek video. 

I am also trying to go beyond pygame in general and cover other python topics (also started working on Godot 4!). Do you guys have any topic in python you'd like to see videos on? Could be ursina or Arcade but cou...

View Post

Analysing and downloading YouTube videos with python

This video will cover how to use pytube to analyze and download videos from YouTube. I will also use Colorama to the output  more interesting by adding a few colors.   

Timestamps:
0:00 - Intro
1:34 - General introduction to pytube
15:25 - Creating the download project  

Github:
View Post

Breakout in python

A video creating breakout in python. The game includes flexible graphics, sounds, powerups and a cool retro look.   

Related videos:
Introduction to Pygame: https://youtu.be/AY9MnQ4x3zk
Deltatime: https://youtu.be/rWtfClpWSb8 

<...

View Post

Collisions between moving objects

A video about how to do collisions between objects, both static and moving ones. I will use pygame to implement it but the logic should work everywhere .  

Related videos: Introduction to Pygame: https://youtu.be/AY9MnQ4x3zk
Deltatime: https://youtu...

View Post

Creating a Flappy Bird Clone in Python / Pygame

A tutorial on creating the popular Flappy Bird game in python with pygame.

Related videos:
Introduction to Pygame: https://youtu.be/AY9MnQ4x3zk
Deltatime: https://youtu.be/rWtfClpWSb8
Masks: 2022-03-11 21:47:06 +0000 UTC View Post

Delta time and framerate independence in pygame

Hi everyone, here is a video on how to understand delta time in pygame. Sorry for the inactivity the last few weeks, will upload 2 games this week to catch up (Flappy Bird and Breakout) 

View Post

Paid curses vs more (and longer) Youtube videos?

Hi everyone, 

Sorry for the second poll this week but I would really like some input: I am currently planning another udemy course (on pygame). However, the more I plan it the more I dislike the idea of sectioning off content.  I would prefer to make all stuff available on youtube and put in all my time into that basket and produce more and better videos (for examples longer vid...

View Post

Cameras in Pygame

A video about cameras in pygame, we will create 6 different cameras that should cover nearly every use case. 

Timestamps: 

0:00:00 - Intro  
0:01:24 - Project setup
0:05:36 - YSort Camera
0:15:23 - Player center camera
0:26:08 - Box camera
0:36: 59 - Keyboard control
0:41:25 - Mouse control
0:59:11 - Zoom  

Project files  ...

View Post

Upcoming videos

Hi everyone, I am currently working on a Pokemon game that will be kinda like the Zelda game, seems to be quite popular. 

After that, I am not sure what to work on, what is your opinion? 

(Also, I have put Godot on hold for now, I looked into shaders but those will also change quite a bit in Godot 4 and I don't want to make a tutorial now that is outdated in a few months. ...

View Post

The logic of a 2D platformer in Python / Pygame

Sorry for not posting last weekend, things are a bit busy right now and I am catching up right now but it will be a bit rocky for the next 2 videos.  So this video will be on Youtube tomorrow so I keep a regular schedule (Youtube is a bit weird, sorry about that). 

I am trying to have the next video up tomorrow and the video after that will be a tiny bit delayed as well but afte...

View Post

Zelda in Python

Sorry it took so long, the video is finally ready! 

Timestamps:

0:00:00 – intro

0:01:24 – Project setup

0:06:47 – Level setup

0:27:33 – Creating the player

0:48:42 – Creating the camera

1:10:25 – Graphics

1:54:54 – Player animations

2:29:21 – Weapons

3:03:15 – UI

3:42:59 – Magic setup

3:59:14 – En...

View Post

Simple Zelda tutorial

Hi everyone, 

The first 4.5 hours of the Zelda tutorial are done but there are 2 more sections that need to be done, should all be done by the weekend. 

In the meantime, here is the first part that sets up the basic project. 

Timestamps: 

0:00:00 - Intro  

0:01:05 - Basic setup 

0:06:27 - Creating the level 

0:27:13 - ...

View Post

Zelda Tutorial Trailer

Hi everyone, 

Hope you all had a lovely new year! I am back from a trip and will record the Zelda tutorial next week. I hope to finish within the week but given how long it is it might take up to next week but it won't take longer than that. 

In the meantime, the trailer is attached to this post! 

Besides that video, I will also make a video on Godot this month ...

View Post

Updates for January

Hi everyone, 

I have paused the patreon billing for January since I won't be posting a new Video this month. I am working on the Zelda one right now but it got larger than I expected (it will probably end up around 5-6 hours) and I will be traveling after next week. I will finish and upload the video in early January and then things will go back to a more regular schedule. 

<...

View Post

Understanding Pygame masks

A tutorial on how to use masks in pygame. It can be used for more advanced collisions or filling surfaces/giving them outlines.

Timestamps
0:00:00 - What are masks?
0:03:05 - Masks with sprite collisions
0:14:53 - Mask collisions without sprites  
0:28:15 - Filling a surface / creating an outline
0:50:39 - Coloring overlapping areas with masks  

Project f...

View Post

Easy pathfinding in Python [almost without math]

A tutorial on creating pathfinding in Python & Pygame. We will be using the pathfinding module to avoid doing complicated math and instead focus on implementing it in an actual project.


Timestamps:  

0:00:00 - Intro + pathfinding theory 

0:01:51 - Simple pathfinding project 

0:12:14 - Creating the Roomba project


Project file...

View Post

Debugging in pygame

A fairly short video on debugging in pygame. I'll post a proper tutorial later this week on pathfinding,

View Post

Which pygame game should I make next?

Now that the Mario series is done, which of these 2 should I work on next (in pygame)

View Post

Finishing the Mario platformer

The final part of the platformer odyssey! This video will fix some collision issues, add a small timer to the overworld and also add sounds. 

Timestamps:

00:22 - Fixing the collisions 

17:14 - Overworld timer 

23:49 - Adding the sounds

Project files: 

2021-09-21 20:38:17 +0000 UTC View Post

Snake in Excel with Python

In this tutorial we use the xlwings module to create snake in Excel. 

Timestamps:  

0:00:00 - Intro  

0:01:09 - Introduction to xlwings 

0:13:46 - Creating the game board  

0:47:35 - Creating the game logic  

1:00:13 - Get user input to move the snake  

Project files: 2021-09-13 21:40:40 +0000 UTC View Post