I coded a 3D player controller in 6 LINES! (kind of)
ฝัง
- เผยแพร่เมื่อ 20 ต.ค. 2024
- #gamedev #challenge #godot
🚀 Get unique rewards on my Patreon: / minapecheux
👉 Check out my tutorial on 3D movement in Godot: • Make Any Kind of 3D Mo...
👉 Assets by Kay Lousberg: kaylousberg.it...
In Godot 4, it's pretty easy to make a 3D player controller script. But... how much could we actually shrink it down? Can we implement this in just 6 lines of code? (Spoiler: kinda!)
Time for a little Godot/GDScript game dev challenge!
================
Music by www.bensound.com
License code: 1LRP83XLXEDY1ONS
Music by: www.bensound.com
License code: RTLQ9HHWBAF1N1NZ
Music: www.bensound.com
License code: GQ8TNW0NF5QOMRV9
Music: bensound.com
License code: YFQIQUE4Y0AMHC1S
I'm not a game developer, but I am a software developer with enough experience to advise anyone who sees this to know that even though it's a nice idea, it's not recommended to write code like this in terms of readability
Heya - you're absolutely right, thanks for pointing it out! As I said in the video, this is just a fun challenge, but it's indeed not recommended at all - just a way to learn some quirky hacks about GDScript ;)
3D player controller speedrun any %
Brings me back to the ol' C scripts where the source code is formatted into an ASCII-like image of a donut or cat (and more).
Its more or less of a blessing that GDScript doesn't have in-line block comments (AFIAK), but those backslashes -- as much as I love implementing multiline commands myself (moreso in C++ & C#/Java) -- can't be trusted! 😂
Also Mina: *Hello everybody, I challenged myself to recreate Doom in Godot using less than 15 lines of code*
un tutoriel très facile à suivre.
Je viens de découvrir votre chaîne et je l'aime beaucoup.
Merci beaucoup ! Ravie que la chaîne vous plaise :)
While it's not advise to write hard to read code. Getting an habit to read them only makes a programmer's life easier. 😂
I still struggle to properly start programming in Godot, not because it's hard, but because I'm stuck in analysis paralysis due to years of unity's dev and being able to planned ahead in that paradigm. 😢
Wow I am so fast and first