Clear Code
Clear Code
  • 49
  • 14 130 782
Creating a Metroid inspired platformer in Godot [or Hollow Knight / Castelvania]
Thanks to Brilliant for the support, you can find them here: brilliant.org/ClearCode/
A Metroid inspired platformer in Godot 4 [or Castlevania / Hollow Knight, I guess]. We will cover fancy platformer movement, state management, lots of inheritance and interactive tool building along with some cool monsters and guns.
Thanks to Estúdio Vaca Roxa for the art assets. The original pack is available here: bakudas.itch.io/generic-run-n-gun
Find/support me on other channels
Patreon - www.patreon.com/clearcode
Twitter - clear_coder
Discord - discord.com/invite/a5C6pYw2w5
Timestamps:
00:00:00 - Intro + setup
00:09:34 - Player movement
00:59:13 - Player graphics
02:02:35 - Tools
03:08:22 - Entities
04:29:48 - Bullets
05:23:46 - Finishing the project
Project files:
drive.google.com/drive/folders/1Gdu3AyH0SzkGSyaFTUrAtXVUiJDBfM5r?usp=sharing
zhlédnutí: 15 709

Video

Master Python by making 5 games [the new ultimate introduction to pygame]
zhlédnutí 63KPřed 2 měsíci
Thanks to Brilliant for the support, you can find them here: brilliant.org/ClearCode/ This video covers game development in Python. We will create a spaceship shooter, a Vampire survivor style game, Pong, a platformer and a Pokémon inspired battle game. Via those you can master your knowledge of Python since we will touch on every part of the language and use inheritance, decorators, dunder sta...
Creating a Pokémon inspired RPG in Python & Pygame
zhlédnutí 52KPřed 3 měsíci
Thanks to Brilliant for the support, you can find them here: brilliant.org/ClearCode/ A RPG that is inspired by Pokemon and Final Fantasy in Python. We will use pygame-ce to create it and in the process you will learn database management, ui design and how to handle a really complex project. Find/support me on other channels Patreon - www.patreon.com/clearcode Twitter - clear_coder ...
Creating an amazing 2D platformer in Python [ SNES inspired ]
zhlédnutí 80KPřed 5 měsíci
Did you play too much SNES as a kid? Have you been raised by Nintendo and Mario? Time to remake the most famous game of that generation! For this beginners tutorial we will use pygame to create a Mario style platformer game that includes an overworld as well. Thanks to Brilliant for the support, you can find them here: brilliant.org/ClearCode/ Find/support me on other channels Patreon - www.pat...
The ultimate introduction to Godot 4
zhlédnutí 1,4MPřed rokem
This video is sponsored by NordPass Business: An amazing password manager that allows you to securely store and access unlimited passwords, including wifi credentials and credit card information. You can use it for yourself or for entire teams or share your own passwords easily. You can get a 3 month trial at: nordpass.com/clearcode/ A complete guide to Godot 4! This video will cover every aspe...
The ultimate introduction to modern GUIs in Python [ with tkinter ]
zhlédnutí 885KPřed rokem
This tutorial covers everything you need to know about user interfaces in Python. I will go over all of tkinter, Python's default GUI framework, cover all the basics and then create a BMI app, a calculator and a photoshop style image editor. If you enjoy this course, consider buying the tutorial that covers 7 additional apps: A responsive weather app, the ios stopwatch, a stock market tracker, ...
Creating a Mario Maker style game in Python
zhlédnutí 484KPřed rokem
Creating a Mario Maker style game in Python with a level editor, transitions, enemy behaviour, animations, menus and a player camera. It's a really chunky project. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Timestamps: 000:00:00 - intro 00:01:48 - Introduction and edito...
Creating a Stardew Valley inspired game in Python
zhlédnutí 646KPřed rokem
A Stardew Valley style game in Python and Pygame. This includes farming and foraging, a day and night cycle, weather effects and a merchant. The game was also made in Tiled so you can expand it yourself. You can get my Pygame course here: www.udemy.com/course/learn-python-by-making-games/ If you want to support me check out my Patreon: www.patreon.com/clearcode (You also get lots of perks and a...
Creating 10 Apps in Python [ with PySimpleGui ]
zhlédnutí 213KPřed rokem
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 stopwatch, a text app, the snake game, an image editor, a music player, a weather app and a opencv face detector. There is also an extra video about creating a gui in a single line of code. By the end of the video you should be comfortabl...
The complete guide to Python
zhlédnutí 480KPřed 2 lety
The complete introduction to Python. This video will cover every part of it and also include lots of exercises so you can practice. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Link to the full course: www.udemy.com/course/learn-python-by-making-games/ Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Project files: gith...
Image Manipulation in Python [ A complete guide to Pillow ]
zhlédnutí 67KPřed 2 lety
Basically everything you need to know about image manipulation in Python with Pillow [PIL]. By the end of the video you should be comfortable manipulating images in just about every way. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Timestamps 00:00:00 - Intro 00:01:22 - B...
Understanding decorators [Python tutorial]
zhlédnutí 25KPřed 2 lety
A video on understanding python decorators, including the property decorator in classes. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Timestamps: 00:00 - Intro & Decorator theory 03:34 - Function basics 08:28 - Basic decorator 21:03 - Decorators with function arguments 26...
Understanding classes and object-oriented programming [Python Tutorial]
zhlédnutí 125KPřed 2 lety
A tutorial about classes and object-oriented programming. I will cover everything you need to create classes, use dunder methods, simple and complex inheritance and how to work with classes and connect objects. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Timestamps: 0:00...
A guide to level creation with Tiled [ + how to use it with pygame ]
zhlédnutí 127KPřed 2 lety
A video about Tiled, including terrains, isometric tiles, exporting and objects. I also cover how to import the resulting data into Pygame. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Related videos: Introduction to Pygame: czcams.com/video/AY9MnQ4x3zk/video.html Using T...
Breakout in python
zhlédnutí 61KPřed 2 lety
A video creating breakout in python. The game includes flexible graphics, sounds, powerups and a cool retro look. If you want to support me: www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - clear_coder Discord - discord.com/invite/a5C6pYw2w5 Related videos: Introduction to Pygame: czcams.com/video/AY9MnQ4x3zk/video.html Deltatime: czcams.com/video/rWtfC...
Collisions between moving objects
zhlédnutí 28KPřed 2 lety
Collisions between moving objects
Creating a Flappy Bird Clone in Python / Pygame
zhlédnutí 56KPřed 2 lety
Creating a Flappy Bird Clone in Python / Pygame
Understanding framerate independence and deltatime
zhlédnutí 40KPřed 2 lety
Understanding framerate independence and deltatime
Cameras in Pygame
zhlédnutí 116KPřed 2 lety
Cameras in Pygame
Creating a Zelda style game in Python [with some Dark Souls elements]
zhlédnutí 3MPřed 2 lety
Creating a Zelda style game in Python [with some Dark Souls elements]
Understanding Pygame masks
zhlédnutí 40KPřed 2 lety
Understanding Pygame masks
Easy pathfinding in python [almost without math]
zhlédnutí 84KPřed 2 lety
Easy pathfinding in python [almost without math]
Debugging in Pygame
zhlédnutí 14KPřed 2 lety
Debugging in Pygame
Creating Space Invaders in Pygame/Python
zhlédnutí 122KPřed 2 lety
Creating Space Invaders in Pygame/Python
How to create coding tutorials [or at least how I make them]
zhlédnutí 112KPřed 3 lety
How to create coding tutorials [or at least how I make them]
An introduction to programming in After Effects
zhlédnutí 64KPřed 3 lety
An introduction to programming in After Effects
The ultimate introduction to Pygame
zhlédnutí 2,5MPřed 3 lety
The ultimate introduction to Pygame
Creating an animated button in Pygame
zhlédnutí 35KPřed 3 lety
Creating an animated button in Pygame
Creating a Minecraft style menu in Python [Ursina]
zhlédnutí 33KPřed 3 lety
Creating a Minecraft style menu in Python [Ursina]
Saving and loading in pygame with json
zhlédnutí 29KPřed 3 lety
Saving and loading in pygame with json

Komentáře

  • @zlejablko
    @zlejablko Před 3 hodinami

    In the newer version of Mac OS you've to type pip3 at least that is what I needed to do

  • @luciusrex
    @luciusrex Před 3 hodinami

    It's a long video but worth it! Learning lots! For anyone wanting a breakdown of contents into "bite-sized" chunks/chapters Chunk 1: Introduction and Basics 00:00:00 - Intro, Sponsor NordPass Business, What is Godot 00:02:41 - Scenes and Nodes 00:36:33 - Working with code 00:57:56 - More on code 01:11:09 - Delta Total Time: ~1 hour 22 minutes Chunk 2: Nodes and Input 01:21:34 - Getting input 01:38:38 - More on nodes 01:48:55 - Physics! 02:15:23 - Signals (+Area) Total Time: ~1 hour 17 minutes Chunk 3: Signals and Customization 02:38:01 - Creating custom signals 02:51:11 - Creating custom scenes 03:21:07 - RigidBody2D 03:45:54 - Using a camera Total Time: ~1 hour 14 minutes Chunk 4: Tilemaps and Particles 03:51:37 - Tilemaps 04:28:11 - Tilemaps and physics 04:49:41 - Emitting particles Total Time: ~1 hour 17 minutes Chunk 5: Lights and Animations 05:09:08 - Lights 05:35:54 - Animations 06:07:42 - Tweens Total Time: ~1 hour 20 minutes Chunk 6: Connecting and Inheritance 06:29:21 - Connecting the laser to the level 06:39:52 - Inheritance 07:04:25 - Creating the inside level 07:27:09 - Adding a level transition Total Time: ~1 hour 4 minutes Chunk 7: User Interfaces 07:33:26 - Getting started with user interfaces 08:02:31 - Adding the health bar to the UI 08:08:46 - Making the UI interactive 08:25:52 - Adding color to the UI 08:36:45 - Prettier transitions Total Time: ~1 hour 13 minutes Chunk 8: Items and SetGet 08:46:16 - Creating items 09:06:15 - SetGet 09:23:52 - Creating crates Total Time: ~1 hour 9 minutes Chunk 9: Expanding Levels 09:55:54 - Expanding the inside level 10:17:31 - Creating the scout 10:37:55 - Creating the grenade Total Time: ~1 hour Chunk 10: Health and Shaders 10:49:22 - Scout & Health 10:57:43 - Player & Health 11:06:25 - Shaders Total Time: ~1 hour

  • @scynoplex8321
    @scynoplex8321 Před 7 hodinami

    1:06:02

  • @JuiceTeaBeans
    @JuiceTeaBeans Před 11 hodinami

    I'm only on the second game, but I am blown away by the depth of content combined with your ability to make complicated things more simple and understandable! When I need to understand a concept more in-depth, I simply jump over to your other Python/Pygame tutorials! I do have to slow the video speed down to about 60% if I want to do a (mostly) live follow of code (and pausing as needed to understand/catch up). Thank you for this! I'm feeling more confident as each day goes by.

  • @luciusrex
    @luciusrex Před 13 hodinami

    this is fun! i wonder if i can go through this tutorial in one night! lol

  • @ihandjikanasser3713
    @ihandjikanasser3713 Před 17 hodinami

    Thank you for this tutorial. I learned a lot. ❤

  • @Complexxx123
    @Complexxx123 Před 18 hodinami

    Hi there, I had a question about the grenade damage. Your solution involved doing calculations between vectors to determine if enemies were in range. When you gave the exercise, I thought of just adding an area2d that calls the hit function on entities that enter it and turn it on/off using the animation player. Is this a valid solution? And what are the drawbacks to doing it like this.

  • @rajashekar6044
    @rajashekar6044 Před 23 hodinami

    Hey @ClearCode, my characters and entities and coast are going black and I can only transition once in the whole game. Along with this, there are no animations for water and basically no collision. I used all your code too, but still there’s that error. What do I do?

    • @ClearCode
      @ClearCode Před 21 hodinou

      ehm, sounds like you have a lot of issues in the code; might be useful to join the clear code discord and ask there with more detail.

  • @kacperwownysz9115
    @kacperwownysz9115 Před dnem

    I thought it was a short film, but then I looked and saw 18 hours

  • @CoolYTuser
    @CoolYTuser Před dnem

    Thank you very very much. You saved us so much time

  • @tomk3682
    @tomk3682 Před dnem

    The technique used to add margin at 1.20 has depreciated.. What I have done instead is to add a 'margin rectangle' and 'border' rectangle behind the text to provide the same effect margin_font=pygame.font.Font("font/Pixeltype.ttf",75 )#font type, font size ( controls the length of margin ) border_font=pygame.font.Font("font/Pixeltype.ttf",80 )#font type, font size margin_surf=margin_font.render("DDDDD",False,"Light Blue")#text,AA,color # controls the width of margin margin_rect= margin_surf.get_rect(center=(400,50)) border_surf=border_font.render("DDDDD",False,"Light Blue")#text,AA,color border_rect= border_surf.get_rect(center=(400,50)) and then in the game loop pygame.draw.rect(screen,"Light Blue",margin_rect) # Add back ground colour to score text (display surface, color, the actual rectangle) pygame.draw.rect(screen,"Light Blue",border_rect,5,5) # Add border to the score text

    • @tomk3682
      @tomk3682 Před 7 hodinami

      I've also noticed at 2:40 with a randint (0,2) it can be 0,1 or 2 meaning 2/3 of the times it is going to be true and 1/3 false hence why you get more snails then flies generated.

  • @carlossn9511
    @carlossn9511 Před dnem

    I am running mac on sonoma 14.5, if anyone is getting an issue with the player having a black outline behind transparent objects. I added convert_alpha to the cutout_surf created in the import_tilemap function. I don't know if this is the correct fix but it worked for me. btw amazing tutorial

  • @Lansamatv
    @Lansamatv Před dnem

    Excellent tutorial, please continue making more Godot if you can make one of a Farm game. That you have to water the plants every x time for better production and so on ❤

  • @Ali-qs7hl
    @Ali-qs7hl Před dnem

    I am only an hour in and I had to pause the video to comment. This is an EXCELLENT tutorial. It is obvious that you have put a great deal of effort into the explanation of all details relevant to the student. Truly a masterpiece!

  • @AlexCrafty
    @AlexCrafty Před dnem

    Hi ! I love the way you teach and all the projects you've made so far and I'm loo,king forward to the next ones ! I like how you're IDE is looking and how you can organize classes and hide them, so what is the name of the platform you use ?

  • @anthonydrakefordshadow

    Hi, I have a mask question. Can masks be used for player cosmetic choices and if they can, would this remove the processing burden associated with masks if the mask was not responsible for detecting collisions at all?

  • @beefge
    @beefge Před dnem

    I ran into problems around 4:30:00. It seems the coloring method of a ttk label doesn't work the way it's described in the tutorial. It might changed, I don't know. The code in the video doesn't work and doesn't run.

  • @bigposts6673
    @bigposts6673 Před dnem

    3:36:50 How in the world is "direction" work here when it was defined in the player script and emitted as "player_direction." I don't think "direction" is even defined anywhere inside of the grenade signals or functions or anything. The only place I even seen the word "direction" being defined in the player movement _process and in the laser script.

  • @Multifandomguy
    @Multifandomguy Před 2 dny

    3:09:26 it doesn't work with me as the video shown even though I followed the tutorial step by step

  • @shwm19
    @shwm19 Před 2 dny

    Man slow going, sorry about that. But I am looking at the collisions section for the space game. Is there a reason why you use it by cycling through sprites? I attached a new method called "LaserCollide" to the Laser class so each instance itself is checking if it hit a method. I just passed "self" as the sprite to the pygame.sprite.spritecollide and checked if it collided with meteor_sprites... I'm sure there is a flaw to this but I'm not seeing it.

  • @Fireman9143
    @Fireman9143 Před 3 dny

    Very well done! Thank you for taking the time to make this! Best tutorial I've seen yet!

  • @bigposts6673
    @bigposts6673 Před 3 dny

    There's so many corrections and updates in the comments it makes me worried to do this for the stuff that may not be fixed yet.

    • @ClearCode
      @ClearCode Před 2 dny

      this tutorial covers the basics and none of the changes are even remotely relevant until somewhere in the end :)

    • @bigposts6673
      @bigposts6673 Před 2 dny

      @@ClearCode Bro, I'm about an hour in, stopping to experiment and try things different ways. I've spent like 3 hours on your first hour. THANK YOU for explaining stuff in this video. I've done so much less in your first hour than I have other tutorials, HOWEVER I've learned orders of magnitudes more. This truly is unbelievable. This is far more valuable than any other video I've watched so far. This is a treasure and I'm glad I started it.

    • @ClearCode
      @ClearCode Před 2 dny

      @@bigposts6673 yay, glad it is helping :)

  • @thesanketdas
    @thesanketdas Před 3 dny

    Hello dude...I came from the video Path Finder Roomba...How do I make the binary matrix?

  • @Doodlesnaps
    @Doodlesnaps Před 3 dny

    I'm a little confused. At 11:00:00 roughly, the player damage taken gets calculated in globals, but I'm not sure why it can't be handled the exact same as the scout inside player? I tried it myself and it seems to work so I'm not completely sure why it makes more sense to put into globals since you can update the globals value from pretty much any scene. Isn't that exactly how the health pick ups work to begin with?

  • @enzym2004
    @enzym2004 Před 3 dny

    Just 1 hour into this, and already learned so much! This is awesome! And so thoroughly presented as well!

  • @ISlappedCleopatrasAss

    Really well presented and super easy to follow along. Thanks

  • @Okasha-j9f
    @Okasha-j9f Před 3 dny

    an angel honestly, give this man all the views that t series has right now

  • @Demonicbuilds8
    @Demonicbuilds8 Před 3 dny

    38:19 / 11:08:39

  • @hizoto
    @hizoto Před 3 dny

    2:01:35 I get no collision, has something changed since this tutorial was made?

  • @derHowitzer
    @derHowitzer Před 3 dny

    You're a godsend my friend. May God bless you ❤❤, for the content you create and the way you teach is priceless and second to none. There are many people who make courses, but you add exercises in between, create videos on projects, in which you guide us, and even add helpful tips and insights while teaching, all while also recapping things you've already taught. Recap and recall is extremely essential while learning, and the tutorials you create are honestly the most ideal to learn.

  • @thatongobeni3544
    @thatongobeni3544 Před 3 dny

    Done and dusted

  • @user-mh1km3mv7z
    @user-mh1km3mv7z Před 4 dny

    does this still work?

  • @ryanpemberton7056
    @ryanpemberton7056 Před 4 dny

    Incredible tutorial. Comprehensive and well presented. Including homework for each segment is great for retention. Thank you for making this!

    • @ClearCode
      @ClearCode Před 3 dny

      thank you so much for the support :)

  • @t.kaystkays6514
    @t.kaystkays6514 Před 4 dny

    This tutorial helped me in preparation of using Unreal engine and studying software engineering at university level

  • @raybp7512
    @raybp7512 Před 4 dny

    This was incredible definitely need more of this!

  • @treanthonyhuang636
    @treanthonyhuang636 Před 4 dny

    @1:35:49 misspelled "clases". Should be classes

    • @andi4593
      @andi4593 Před 4 hodinami

      sry grammar police

  • @user-mh1km3mv7z
    @user-mh1km3mv7z Před 4 dny

    why does moving the collision around 1:20 not let me jump

  • @jonnyedit
    @jonnyedit Před 4 dny

    Coming back 2 years later but now at the collisions with rectangles. (1:03:50)

  • @jonnyedit
    @jonnyedit Před 4 dny

    I am at 22:35 rn this tutorial is soooo goood

    • @jonnyedit
      @jonnyedit Před 3 dny

      I am on 1:04:00 movement and delta time

    • @jonnyedit
      @jonnyedit Před dnem

      I am on 1:29:49 player input

    • @jonnyedit
      @jonnyedit Před 14 hodinami

      I am on 1:54:27 sprites

  • @Versanitybutreal
    @Versanitybutreal Před 5 dny

    I just realized that this thing is 11 HOURS like holy cow he is going to explain every pixel

  • @MohammedEssamSaleh
    @MohammedEssamSaleh Před 5 dny

    How to make in Godot

  • @andreazanantoni4600

    Hi, I'm new in Python and I need to write a GUI program that reads from SQL tablets and show data in a grid. I come from ASP and VB .Net programming. Your course is very interesting but creating a window with widgets using Tkinter is very very slow if compared with .Net environment. Isn't there a graphical programming environment in Python, something like Visual Studio, in order to create the graphical aspect of the program in a more efficient way? Thanks

  • @miguelrangel707
    @miguelrangel707 Před 5 dny

    man idk how to put in words *hot much i hate the need of designing levels omg*

  • @mounikamannuru8665
    @mounikamannuru8665 Před 5 dny

    how do i do it with multiple sprite sheets

  • @joserodolfo8839
    @joserodolfo8839 Před 5 dny

    The Return of The King

  • @terryjophlin
    @terryjophlin Před 5 dny

    My HS math teacher minored in CS. We learned coordinates as "over the river, down through the woods" like the trip to grandma's house.

  • @atikaarab6374
    @atikaarab6374 Před 5 dny

    day 1 : 18 min day 2 : 1h 17 min

  • @How2Python.22
    @How2Python.22 Před 5 dny

    Your videos are AMAZING, please pin this comment. if you do, I will subscribe to you!

  • @Procione07
    @Procione07 Před 6 dny

    Where i can find good sprites and tilesets? Im not good at drawing so finding good sprites an tileset for my games would be great.

  • @You-d3n
    @You-d3n Před 6 dny

    Can you tell me what tool do you use on your video's where you can write anything and then erase it too