How to Make a Metroidvania/Platformer | Playdate SDK Tutorial

Published: 23 January 2023
on channel: SquidGod
19,042
506

In this video, I go step by step in teaching you how to make a metrodivania/platformer game similar to my game "The King's Dungeon" for the Playdate SDK using Lua.

Github Repo for this project: https://github.com/SquidGodDev/Metroi...
LDtk: https://ldtk.io/
Playdate LDtk Importer Library: https://github.com/NicMagnier/Playdat...
Animated Sprite Library: https://github.com/Whitebrim/Animated...
Diff Checker: https://www.diffchecker.com/

This is an intermediate/advanced tutorial. Some recommended resources before watching this video:

No experience programming
Learn to Program for Playdate Game Dev! Part 1/2:    • Learn to Code in Lua for Playdate Gam...  
The Beginner's Guide to Lua for Game Development: Getting Started From Zero: https://squidgod.itch.io/lua-for-game...

Playdate environment not yet set up
Getting Started with the Playdate SDK: Setup and Basics:    • Getting Started with the Playdate SDK...  

New to Playdate development
Everything About Playdate SDK Collisions in 7 Minutes:    • Everything About Playdate SDK Collisi...  
Everything You Need to Know About Sprites in the Playdate SDK:    • Everything You Need to Know About Spr...  
Object Oriented Programming for the Playdate SDK:    • Object Oriented Programming for the P...  

Get the game this tutorial was based off of: https://squidgod.itch.io/the-kings-du...
Get access to that games source code and support the channel:   / squidgoddev  
Join my Discord!:   / discord  
Follow me on Twitter to see sneak peeks/updates!:   / squidgoddev  

Timestamps:
0:00 - Intro
0:45 - Suggested Resources
1:40 - Required Setup
3:05 - Creating LDtk World
6:38 - Adding Libraries
7:52 - Setting Up Main File
8:27 - Creating Game Scene/Loading Level
14:22 - Creating Player Controller (Initialization)
21:00 - Player Update Loop
22:05 - Handle State
23:13 - Handle Movement and Collisions
26:02 - Input Handlers
27:38 - State Transitions
29:02 - Apply Gravity
29:43 - Spawning Player
31:22 - Flipping Player Image
32:18 - Jumping
34:43 - Fixing Run/Jump Issues
39:02 - Double Jump/Dash
44:58 - Moving Between Rooms
50:09 - Spike
54:25 - Spikeball
58:10 - Handle Player Hitting Hazard
1:01:54 - Spawn Hazards
1:03:19 - Ability Pickups
1:08:04 - Handle Player Picking Up Ability
1:09:17 - Remove Pickup Permanently
1:10:30 - Jump Buffer
1:12:54 - Improve Playdate Load Performance
1:15:13 - Caveats


Watch video How to Make a Metroidvania/Platformer | Playdate SDK Tutorial online without registration, duration hours minute second in high quality. This video was added by user SquidGod 23 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 19,042 once and liked it 506 people.