Making a Game With C++ and SDL2

preview_player
Показать описание
I Made a Speed Running Game With C++ and SDL2

You challenged me to make my first game using the C++ programming language. At first I tried the Raylib graphics library, but then decided to make it a real challenge and use SDL2/SDL. Can I create an epic speed running game or will I fail miserably?

Play Pencil Sharpening Championship Here!

Shout out @Smallant for the pencil sharpening inspiration!

Chapters:
0:00 Intro
0:32 C++ Setup
0:51 Drawing a Window
1:23 Having to Restart
1:54 Game Design
2:32 Switching to SDL2
3:00 Attempt 2
3:26 Adding Mechanics
3:55 UI & Text
4:49 Audio & Music
5:04 The Results

┈ Similar Videos ┈

Goodgis - Making a Game in Python with No Experience
Goodgis - I've Secretly Been Working on an MMORPG
Goodgis - How To Get Started With Game Dev (Beginner's Guide)
Polymars - Learning SDL2 in 48 Hours - GMTK Game Jam 2020
Polymars - Making a Game With C++ and SDL2
Barji - Making a C++ Game with No Experience!

Making a game without a game engine is pretty fun but challenging. C++ is notorious for being one of the hardest languages to learn, especially for beginners. That's why I decided to use a framework like Raylib and SDL2 to make it a little bit easier. Originally I going to try to make it in less than 48 hours, but I didn't realize how difficult it would end up being. If you're asking yourself, "How to Make a Game in C++" or "Should I use C++ to Make Games?" then hopefully my experience might help. Either way, this C++ challenge in a way was much harder than SmallAnt's pencil sharp speedrunning world record... Okay, well maybe not.
Рекомендации по теме
Комментарии
Автор

Subscribe for more EPIC pencil content! ✏

Goodgis
Автор

Fun fact! Pygame is actually a python wrapper for sdl2, so technically this isn't the first time you've used sdl2.

glerg
Автор

Writing C in C++ is perfectly valid, it's actually preferred by a ton of people. Most C code is valid C++, the latter just has extra powerful features built on top

hectormejia
Автор

Seeing someone else have great pain to create a window in SDL brings me great enjoyment

IXxJordan
Автор

Goodgis: uses SDL despite it being C instead of C++
Raylib: that has c++ wrapper O_o

sauliusvincevicius
Автор

Fantastic to see you trying C++. It's been years since I've done C++. Videos like this make me want to try again but then I look at some C++ and nope out real quick.

Skeffles
Автор

Your artstyle reminds me a lot of WarioWare and it's just so pretty to look at. Game dev is so much easier when you can do art - I can't draw so it's way harder to make games, this is inspiring

btarg
Автор

I love Devlogs! This looks great! good job goodgis!

NotPalliot
Автор

I think it would be interesting to learn a language like BASIC and try to make a game with that

razrastudios
Автор

Damn, your graphic design is on POINT!

bonehelm
Автор

What language should I learn next? - Lua is a really nice language. Love2d and pico8 are great engines that use it! :)

will.bailey
Автор

When I heard you say this was a really hard challenge, I at first thought that was a little weird for someone who's making coding videos. Then you said you come from an artist background, not a programming background, and now I'm just left very impressed. Writing a game in C++ using SDL2 without a programming background is really commendable, well done!

realmarsastro
Автор

What language next? Pico-8 with Lua, it will be a quite new experience for you to make a retro game in this simple language

realfictiongo
Автор

This would be so cool as a rhythm game, for instance when you would miss a key the point if the pencil would break. I would play that in a heartbeat.

FRIB
Автор

Says a "basic hello world program takes as long as reading Les Miserables", while showing a basic C++ hello world program that's literally 11 only lines long.

StrikerTheHedgefox
Автор

Next could be make a game with Rust.
Rust is not really the hardest language of programming but it’s one of those language when after use it for a while.
Everything around it look less fun and Rust just being amazing xD

gungun
Автор

Make a simple game with Rust + Bevy next, Bevy uses an ECS (Entity Component System) and it's a really different and fun experience!

David-ngqh
Автор

Speed run game made with the fastest programming language. Let's goooo...

carmygames
Автор

there is a guy that was making a tetris with raylib, the trick is that he was teaching about how to make raylib useful to the c++ language and how you can it apply it to other c libraries

feivaco
Автор

6502 assembly nes game! It’s super fun to learn!

zachgeyer