Тёмный

Learn to Code in Lua for Playdate Game Dev! Part 1 

SquidGod
Подписаться 19 тыс.
Просмотров 30 тыс.
50% 1

Want to learn how to make games for the Playdate, but don't know how to program? No worries - in this video I'll go over basic programming concepts for complete beginners like variables, operators, and functions. I'll be teaching Lua, one of the languages you can use with the Playdate SDK. This is for people who want to use the Playdate SDK, and is not a guide for Pulp. If you want to learn Pulp, I have some videos for that on my channel as well.
Lua Demo Website: www.tutorialspoint.com/execut...
Setup the Playdate SDK: • Getting Started with t...
Check out my book "The Beginner's Guide to Lua for Game Development" that goes more in depth into this topic!
squidgod.itch.io/lua-for-game...
Timestamps:
0:00 Intro
0:40 Variables
2:16 Data Types
3:22 Operators
3:27 Arithmetic Operators
4:19 Relational Operators
5:11 Logical Operators
5:56 Misc Operators
6:24 Conditionals
8:07 Functions
9:53 Scope
Support me on Patreon to help me make more of these videos and get access to my Playdate games/source code!: / squidgoddev
Join my Discord (I'm very active!): / discord
Follow me on Twitter (See what I'm working on early): / squidgoddev
I get my music and sfx from Epidemic Sound. Get 1 month free with my link! share.epidemicsound.com/njknzw
#Playdate #PlaydateSDK #lua

Наука

Опубликовано:

 

14 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@pixelsbykris5494
@pixelsbykris5494 Год назад
When the thumbnail said this was for "Complete" Beginners you weren't kidding. For which I'm very thankful! You explained a bunch of things that I was worried and/or confused about and even helped me get more confidence in trying to code again! Your explanations and accompanying visuals were simple enough to help me grasp things I never understood that a lot of other tutorials targeted towards beginners completely overlook. For example, when you were talking about reassigning the values for variables, you explained why 20 would show up instead of 1 and why. Whenever I tried to code, I would always get confused as to where and why I should place certain variables in the code (For example: when, where, and why I should place code for controls or to show a sprite/animation.) You explaining that the code is run line-by-line (helpful arrow included!) was just what I needed to really Get It. As someone who's watched what feels like hundred of videos (or at least hundreds of HOURS) in a bunch of different coding languages marked as "For Complete Beginners", it's this one that's really helped me the most. Being told TO do something isn't as effective when you aren't told WHY to do it. Especially with something as seemingly finicky as coding at all, let alone a video game.
@SquidGodDev
@SquidGodDev Год назад
Thank you! I'm really happy to hear that because that was what I was trying to go for. I've also noticed that people gloss over things with the assumption of prior knowledge, but it makes sense since it's quite difficult to remember what it was like as a beginner once you already have experience.
@andreqloalreve2718
@andreqloalreve2718 2 года назад
Dude I watch all of your videos! I'm currently studying Computer Engineering in Spain and I think I will do a playdate game as my Final Degree Project because of you! Keep going man! Your minecraft game was FIRE!!!
@SquidGodDev
@SquidGodDev 2 года назад
I studied Computer Engineering at university as well!! Awesome - thanks for watching!
@celinnec.valdez9995
@celinnec.valdez9995 2 года назад
I wanna become a software engineer butim curious on how hard it is
@andreqloalreve2718
@andreqloalreve2718 2 года назад
@@celinnec.valdez9995 Hey I remember you from the live! From my experience the carreer (spetially the first two years) is terribly difficult, but then something clicks and you know a little bit of things that lets you program with more confidence. If you like It I recommend you to do it, but it won't be as some people say " the best time of your life ". I wonder what those fuckers studied omg more like " the hardest time of your life " hahaha. If you survive the first two years is not that difficult.
@blankenstein1649
@blankenstein1649 Год назад
i'm a 39 year old guy who never programmed a damn thing in his life, but i've always been an avid gamer. the playdate first piqued my interest just as another way to game, but videos like this make me seriously consider trying to make a game. good stuff!
@SquidGodDev
@SquidGodDev Год назад
Thank you! Never too late to start!
@92keys524
@92keys524 2 года назад
Your videos are so wonderful for aspiring programmers like me who went to school for something non-computer related but still want to experience the joy of making simple and fun games! Thank you so much for your hard work.
@SquidGodDev
@SquidGodDev 2 года назад
No problem! Really glad to be able to help :)
@narwhalgamingvariety
@narwhalgamingvariety 2 года назад
I haven't written lua in a decade and your videos have been a great help diving into the playdate SDK, which is incredibly easy to use! I honestly recommend this tool kit for entry level programmers.
@SquidGodDev
@SquidGodDev 2 года назад
Yup - the combination of Lua and the well featured SDK makes it pretty good for beginners. Glad to help!
@TonyoPet
@TonyoPet 2 года назад
Thank you @SquidGodDev for catering to all skill levels. This video is FIRE and your time you put into this is really appreciated.
@SquidGodDev
@SquidGodDev 2 года назад
Glad to hear! After your comment on my other video I realized this type of content might be helpful to a lot of people :)
@garyantonyo
@garyantonyo 2 года назад
Hey. I just made my first playdate game over the weekend, and I just want to thank you for these tutorials and everything. I have quite a bit of experience programming, and even a little bit of experience with game programming, but nonetheless your videos have helped me figure out some of the bits that I had missing. Thanks for making these.
@SquidGodDev
@SquidGodDev 2 года назад
No problem! Anecdotes like these keep me going :)
@splashmob
@splashmob 2 года назад
i was just looking into learning Lua yesterday, so this is great timing! was hoping you'd make a video like this.
@SquidGodDev
@SquidGodDev 2 года назад
Awesome! Glad the timing worked out so well :)
@Etcher
@Etcher Год назад
I've been a developer for almost 15 years (Python and C++ mainly) and I have to say I learned new things today! I love your videos!
@SquidGodDev
@SquidGodDev Год назад
Awesome! Was hoping that the video would still be helpful to experienced devs who maybe haven't used Lua as much.
@dallinwatson6483
@dallinwatson6483 2 года назад
Great Video! I'm really excited to get a hold of the play date. I'm a Python guy and this was a great intro to Lua for me. Thanks.
@SquidGodDev
@SquidGodDev 2 года назад
Np!
@AleMohamad
@AleMohamad 2 года назад
Great intro video to the language. And it was awesome that you show how to try the language within the Playdate SDK. Keep going. I'll be following your new stuff in Discord and here.
@SquidGodDev
@SquidGodDev 2 года назад
Thanks!
@astrona77
@astrona77 2 года назад
I agree with the comments. Your videos are amazing and very helpful! Hope you continue the Playdate series!
@SquidGodDev
@SquidGodDev 2 года назад
Thanks - I will!
@bee25tyler
@bee25tyler 2 года назад
Yes!!! I have been waiting for this! Thank you so much for the information you gave me. I started learning python and bought a book about Lua.
@SquidGodDev
@SquidGodDev 2 года назад
Exciting! Learning programming is a rewarding experience.
@xkernalsandersx
@xkernalsandersx Год назад
I just ordered my playdate today - so excited to try making some basic game experiences. I think this feels far less scary than other game development
@lucasli5681
@lucasli5681 Год назад
I have never programmed before and this is a huge help on programming
@OmegaTakenZ
@OmegaTakenZ Год назад
My Sister's Boyfriend made Omaze which is a award winning game for the Playdate. He also used Lua. I'm planning to learn LUA. Thank you for this Tutorial
@SquidGodDev
@SquidGodDev Год назад
Oh shoot no way - I loved Omaze!
@OmegaTakenZ
@OmegaTakenZ Год назад
@@SquidGodDev me too! I got to test the game before anyone else lol
@alexfulcrumart
@alexfulcrumart 11 месяцев назад
just got my playdate, and i'm excited to try to learn coding for the tenth time. i have a good feeling this time around
@skylskyler
@skylskyler 2 года назад
man, I am so ready to learn this.
@SquidGodDev
@SquidGodDev 2 года назад
You got this!
@novalacertae1171
@novalacertae1171 2 года назад
OMG ! Excellent Idea, this will allow the undecided to buy the playdate if they want to develop on it, don't give up this idea, you hold a good thread. Sorry for my poor English ;)
@SquidGodDev
@SquidGodDev 2 года назад
Yes - my ultimate plan to teach people how to make games for the Playdate so I have more games to play 😈
@philipmangione
@philipmangione 11 месяцев назад
Thank you for the simple guide! I followed your previous setup guide (2023 updated) too, and things are mostly working.. however "Run Build Task" will compile the game, bring up the Playdate Simulator, but not load the game. Every time I need to then manually choose File -> Open, navigate to my game's folder (the template project from github), and then run it. Would you please have a minute to comment on a possible solution? Thank you for all the great videos! EDIT: searching a bit more I found the solution, maybe useful for someone in the future (thanks to willco moderator, from the Playdate dev forums): "To work-around the issue until the fix is out, you can create this folder if it doesn't exist: On Windows: \Users\\AppData\Local\Playdate Simulator On Linux: /.Playdate Simulator"
@thetexanshurtme
@thetexanshurtme 2 года назад
Even more channel growth
@Zoey20709
@Zoey20709 2 года назад
good vid!
@SquidGodDev
@SquidGodDev 2 года назад
Thank you!
@elisavbizau9909
@elisavbizau9909 7 месяцев назад
❤❤❤
@MrJumpingj
@MrJumpingj Год назад
Thanks
@SquidGodDev
@SquidGodDev Год назад
np
@alexander6183
@alexander6183 Год назад
Is it possible to see a playdate setup for mac? Tutorial on how to install vscode, platedate sdk and run&build on simulator in vscode?
@SquidGodDev
@SquidGodDev Год назад
Unfortunately I don't have a mac, but I believe there's a video out there for setting it up for mac? Should be more straightforward than on windows
@gademtv
@gademtv 2 года назад
Hi, i try to setup playdate dev in Windows following the Dev manual, but i cant. can u make a tutorial to setup it? Thanks.
@SquidGodDev
@SquidGodDev 2 года назад
You're in luck! Made a video a while ago about that exact topic. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-J0ufxinp7No.html
@radazeonv8821
@radazeonv8821 2 года назад
Do you prefer Lua over Pulpscript? Are there any differences between either one besides performance? Are there some types/genres of games you can make with either languages? Can you program entirely in C? How would visuals and graphics work in that case?
@SquidGodDev
@SquidGodDev 2 года назад
Great questions! I do prefer Lua over Pulpscript. Lua is a fully featured programming language, so the types of games you can make with Lua is up to your imagination, but with Pulpscript you're limited to mostly grid-based games that aren't super action-y since you can't update things as quickly. With Pulp you can get off the ground very quickly, but you'll hit a wall at some point with what you can do with it. Also, I find Lua to be more enjoyable to code in since you have access to most of the features you would expect in a programming language, while Pulpscript lacks some common useful data structures. I would say to try about both though, since this is just my personal opinion. You can definitely program entirely in C. Using C, you have access to pretty much the same APIs as Lua, so graphics and stuff can be done in a similar way.
@radazeonv8821
@radazeonv8821 2 года назад
@@SquidGodDev Awesome reply! So it's best to learn Lua then? Do you have book recommendations on Lua? Will you happen to make tutorials in C? Thank you.
@SquidGodDev
@SquidGodDev 2 года назад
@@radazeonv8821 Personal opinion I think Lua is best for ease + capability. No book recommendations, but I think knowing any sort of programming language translates pretty well into Lua. I have no plans on making any C tutorials as of right now.
@OmegaTakenZ
@OmegaTakenZ 11 месяцев назад
Normal people write "hello world" Chads type "Hi Mom"
@duckmasterflex
@duckmasterflex 2 года назад
Disappointed that Playdate uses Lua and not something like Rust, Javascript or Python but I will learn it anyway. I would love to see advanced courses soon.
@SquidGodDev
@SquidGodDev 2 года назад
You can use C as well. And I remember seeing that some people are working on Rust to Playdate containers/compilers so you can make Playdate games in Rust. Lots of activity in the dev space!
@Bugoutgames
@Bugoutgames 2 года назад
your the Brackeys of the Playdate
@SquidGodDev
@SquidGodDev 2 года назад
Haha that's a wonderful comparison - Brackey's is awesome I would love to be like them
@AshtonSnapp
@AshtonSnapp 2 года назад
Wait, why the hell does Lua use `~=` for not equal??? Most programming languages use `!=` for that. To me, `~=` says “approximately equal to”, like that squiggly equal sign you’d see in math class sometimes.
@SquidGodDev
@SquidGodDev 2 года назад
Haha yeah not a big fan either. I have seen tilde used in like a logic theory context so that's probably why.
@thomasmacisaac1503
@thomasmacisaac1503 Год назад
And whaddaya know, you've got videos for that. lol
@SquidGodDev
@SquidGodDev Год назад
The goal is to have videos for everything Playdate dev related at some point. Might take a while though :)
@DommoDommo
@DommoDommo 2 года назад
Kind of got lost on the functions bit, def would need you to go a little more in depth on that one with a real example of something working in game.
@SquidGodDev
@SquidGodDev 2 года назад
Sure! I'll make sure to put some more function examples in part 2.
@keithanderson9103
@keithanderson9103 2 года назад
nice introduction :) , one minor correction, the symbol you refer to as a pound '#' is actuall called hash, the pound sysmbol is £ .
@SquidGodDev
@SquidGodDev 2 года назад
In the US it's referred to as the pound sign, but you're right, I think referring to it as the more universally recognized hash would have been better. Thanks!
@HighlyUnoriginal
@HighlyUnoriginal Год назад
i code in roblox lua, so this should be something unique
@Astralmess
@Astralmess Год назад
This reminds me a lot of Ren'Py.
@omarmustafa-bv4du
@omarmustafa-bv4du Месяц назад
wtf is thiiiiissss
@gottafindacoolname
@gottafindacoolname Год назад
This goes way too fast!
Далее
Learn to Code in Lua for Playdate Game Dev! Part 2
9:22
ASMR Programming - Spinning Cube - No Talking
20:45
Просмотров 3,6 млн
Eddie Hall VS Neffati Brothers
00:11
Просмотров 1,4 млн
Just try to use a cool gadget 😍
00:33
Просмотров 26 млн
3 wheeler new bike fitting
00:19
Просмотров 12 млн
How Much Money Did I Make From My First Game?
4:22
Просмотров 19 тыс.
Making a Game in Lua with No Experience
5:52
Просмотров 239 тыс.
Playdate Review - What were they thinking?!?
15:42
Просмотров 749 тыс.
Lua in 100 Seconds
2:24
Просмотров 2 млн
Playdate: 1 year later - 400+ Games!
15:40
Просмотров 958 тыс.
All Rust string types explained
22:13
Просмотров 148 тыс.
Making a Game You Play... WITH A CRANK???
8:46
Просмотров 7 тыс.
Lua Game Engines
12:58
Просмотров 101 тыс.
Ноутбук без экрана
0:22
Просмотров 16 тыс.
POPVIBE V5000 setup ASMR
0:26
Просмотров 707 тыс.
Купил этот ваш VR.
37:21
Просмотров 154 тыс.