
Learn to install and set up SDL2 in a c++ IDE, including configuring compiler options, linking the SDL2 libraries (image and font), and placing the SDL2 dll.
Initialize SDL and create a centered 800 by 400 window with a renderer in C++, then handle errors and show the window briefly for verification.
Close the SDL window by pressing the cross button, using an event loop that polls for events and quits on SDL_QUIT, with SDL_Quit invoked on exit or window creation failure.
Showcase loading a dino image from a sprites folder, creating a texture from a loaded surface, and rendering it on an SDL2 window with fixed coordinates.
Learn to implement a dino jump in SDL2 by applying gravity, using a negative y velocity, and handling up arrow or spacebar events within a game loop.
Implement a continuous ground scrolling effect for a dino game using two ground textures, updating their x positions, speeds, and widths to create a seamless leftward motion.
Build a cactus obstacle system for a dino game using SDL2. Create a cactus class for two types, update and render obstacles, and manage spacing with a vector.
Develop a dino game scene where pteras fly at random altitudes while cacti and ground move leftward, using SDL2 textures, surfaces, and periodic spawning every 3 seconds.
Explain a collision detection function for the dino game in SDL2, returning a boolean when the dino hits cactuses or pateras; plan to show a game over image with replay.
Load a font with the SDL font library, render game over and replay textures, and show them when the dino collides with cacti or dinosaurs.
Add spacebar replay in the dino game: when game over, press spacebar to restart. Implement reset_game to reinitialize cactuses, dino position, ground speed, and game_over flag.
Follow a step-by-step explanation of setting up SDL2 libraries, fonts, textures, and windowing to build a dino game with gravity, jumping, cactus enemies, collision detection, and scrolling ground.
Initialize the SDL window and renderer for a Brick Breaker game in C++ using SDL2, displaying an 800 by 600 window centered on screen for five seconds.
Load ball.bmp into an SDL surface, convert it to a texture, render at x=20, y=30 with size 20 by 30, and present the window for five seconds.
Implement an event handler within a game loop that keeps the SDL window open until the user presses the cross button, quitting only when an SDL quit event occurs.
Load a background image for the brick breaker game using SDL2, create a texture, and render it behind the ball in an 800 by 600 window.
Move ball in an SDL window along the x and y axis by updating ball_x and ball_y with velocity in a while loop, using the move_ball function and rendering frames.
Learn to implement ball-wall collision in a brick breaker game using sdl2: detect bounds (0-800, 0-600), reverse ball velocity on impact, account for ball width, and test each frame.
Load the bat texture into the SDL window and move the bat with left and right arrows, keeping it within screen bounds by updating bat x in the main loop.
Increase the bat speed and implement bat-ball collision by checking outer-ball contact using ball scaling and coordinates, then reverse the ball's y velocity to bounce upward.
Define brick dimensions and load brick.bmp. Initialize a 3x8 bricks grid in SDL with spacing using a two-dimensional brick rect array and initialize_bricks to position and render bricks for collision.
Learn to implement ball brick collision detection in a C++ SDL2 brick breaker game by iterating over bricks, removing hit bricks, and reversing the ball's y velocity.
Display the winning image when all bricks are broken by tracking deleted bricks (out of 24). Render win.bmp and halt ball and paddle movement after victory.
After winning the brick breaker, the code presents the win image for 10 seconds, then runs a destroy function to free textures, surfaces, renderer, and window to clean up memory.
Implement game over sequence in brick breaker game by detecting when the ball misses the bat and exits the screen, displaying the game over image as a texture in SDL2.
Build a brick breaker game in C++ using SDL2, featuring 24 bricks in a 3x8 grid, ball and bat movement, collisions, and win or game over screens.
Initialize SDL and create a centered 600 by 400 window titled Helicopter Game, display it for five seconds, then enter an event-driven loop that handles quit events and destroys the window.
Create an SDL2 renderer, load the helicopter image into a surface, convert it to a texture, and render it on the window within the game loop.
Control the helicopter with the up arrow to move upward, while gravity pulls it down when the key is released, using SDL2 keyboard state and configurable move and gravity amounts.
Build a collision detection system that checks helicopter against upper and lower walls in SDL, using a boolean function with actor coordinates and quitting the game on collision.
Load and render five obstacles on an SDL2 window with random y positions and speeds using two textures; the helicopter must avoid them, or the game ends on collision.
Implement obstacle collision detection for the helicopter in the SDL2 game. The function checks horizontal and vertical overlap with cactus obstacles and quits the SDL window on collision.
Learn to display a game over screen in SDL2 by loading a game_over.png texture, toggling a game_over flag on collision with obstacles or walls, and rendering the appropriate texture.
Increment the score when an obstacle passes the helicopter and render it on the SDL2 window using SDL_ttf fonts and an obstacle-passed tracker.
Explain how to complete a helicopter game in SDL2 by adding a frame delay, handling gravity and input, moving obstacles, detecting collisions, updating the score, and showing game over.
Begin coding a space invader game in C++ with SDL2, initialize SDL, create a centered 800x600 window with a renderer, and display it for five seconds before quitting.
Learn to implement an SDL event loop with a handle events function that detects the quit event when the cross button is pressed, then exit via a game loop.
Set the spaceship position and size on the SDL window, load its texture with the SDL image library, copy it to the renderer, and present it, preparing for left-right movement.
Move the spaceship using the left and right arrows by updating its x position with a speed value, while keeping it within screen bounds (0 to 800) considering its width.
Enable a spaceship to fire upward from its center using a vector of ten bullets with x, y, speed, and active state; fire via the F key and deactivate off-screen.
Introduce downward-moving enemies in a space invader game, cap at ten, load textures, randomize positions and speeds, render and recycle off-screen enemies, and plan collisions with bullets and ship.
Detects collision between the spaceship and enemies using a collision check function that compares rects with a built-in intersection, triggering game over and displaying a game over image.
Develop a space invader mechanic where bullets reduce enemy health, trigger collisions, deactivate bullets, and respawn enemies with health randomized between 1 and 3, culminating in a game over image.
Implement a game over state for a space invader game using SDL2. Load and display the game over texture when the spaceship collides with an enemy, ending the game.
Press spacebar to replay the space invader game after game over, resetting game state, respawning enemies, and returning the spaceship and bullets to their initial positions.
Set up and display a basic SDL2 window and renderer in C++ for a snake game, including initialization, center positioning, event handling, and resource cleanup.
Display a snake on an SDL2 window by defining a snake segment with x and y coordinates, a 20-pixel size, and rendering each segment after loading its texture.
Learn to move the snake in an SDL window by using direction x and y, updating the head with new coordinates, and handling input via SDL_GetKeyboardState for arrow keys.
Develop a wall collision check for the snake using a boolean function, verify head position against screen bounds, and quit the SDL window upon collision within the game loop.
Add food mechanics to the snake game using SDL2 by defining a food structure, spawning food at random screen locations, detecting collisions, and growing the snake when eaten.
Develop a self collision check by iterating over snake segments to compare the head coordinates, and trigger game over by displaying a game over image on the SDL window.
Implement a game over screen in the snake game using SDL2 by loading and rendering a game over texture when the snake hits a wall or itself.
explains the complete snake game in c++ using sdl2, including window initialization, texture loading, random food placement, movement, collision with walls and self, and game over.
Explore core C++ basics in this crash video, from iostream and the main function to data types, strings, operators, control flow, arrays, and functions.
In this course you will be able to learn about the Game Development concept in C++. We are going to do Game Development in C++ using the most powerful C++ Graphic Library SDL2. SDL2(Simple Direct Media Layer) is a very famous and interactive module for Game development in C++. You are going to cover the very latest concepts of Game Development using SDL2 in this course where we will be covering 5 Games using SDL2 each introducing new and interesting concepts for you to learn.
Each game is going to help you to learn more and more interesting concepts. At the end of this course I assure you that you will be able to create a totally new Game of your own requirements and specifications in SDL2. This course covers the latest concepts of C++ and SDL2. Moreover if you no knowledge of C++ or SDL2 or any other Programming Language then you don't have to worry about it. We have uploaded a C++ Crash Course at the end of this course that will help you gain a good knowledge of C++before you start on with the game development in SDL2.
Each Game that we have made in this course is independent from other games means that you don't have to take the 1st and 2nd Game in order to start the 3rd Game. You can make the Games in any order you see fit. We have talked a lot about SDL2 in this course and what is actually behind the built-in stuff in SDL2. If you already know the basic of C++ then there is no need to take the crash course which is in the last section of the course.
In the course, if you have any type of Questions or if you are having trouble understanding anything then you can directly reach out to me or you can ask your question in the Q/A section. I have attached the code with each lecture so that if you got stuck somewhere then you can use the code. There is couple of challenging assignments that will test your skills and how much you are learning in the course.
I wish you a very best of Luck with the Course.
Thanks!