I am running this in CodeBlocks in Windows and the problem is whenever I run the program, in addition to opening the game window it also opens an empty console window. How do i fix this?
@RedReaper132 I've watched and enjoyed all 10 episodes of this series, and I found them very helpful to get into SDL and OpenGL. Thank you! :-)
In this 10th episode there is a small flaw though, when you change the direction of the ball based on which side of the pad it hits. The behavior you modeled is totally unphysical (assuming that your pad is still rigid) and looks weird. What you could do instead is change ball.vx depending on pad.vx when the ball hits the pad to model friction.
Liked your whole series it helped me a lot. If you want you should try doing a short "house keeping," video cleaning thing up a little bit like Thecawesomeone said. Else, you could add some game logic and make random tiles have temporary power ups like increased ball speed, increased paddle speed or even a fireball drop that the player must avoid or die. Stay awesome.
Are you gonna to make a different game after you finish this one?
Btw, when I click build and run (with your code) on codeblocks it opens a white window and closes quickly, but when I click on the exe in the bin folder it works fine. Do you have any idea what could be the problem?
First, can you talk about framerate, and making a game play the same across multiple/many machines.
And the second thing, is capturing inputs through messaging / signalling.
I'm working on a 2d game engine that I can use for a basis as all my games that I will be developing. Thank you so much you'vebeen a great help and I cant wait for more videos
@Kingtag1445 Yes that is true. It's certainly recommended that the images have dimension that are powers of 2, but it doesn't have to be that way. It knows to stretch images and things like that. But for the best results, use dimensions that are powers of 2.
@Kingtag1445 Yes it depends on the image type and how you load the image into the texture. Also there are some parameters in the glBlendFunc that change how texturing works. It's best that you check around a little to find the best suited settings.
you give the best tutorials ever. Better than native english speakers! Thank you and keep up the amazing work!
DanielCoryMusic 3 weeks ago
@RedReaper132
I am running this in CodeBlocks in Windows and the problem is whenever I run the program, in addition to opening the game window it also opens an empty console window. How do i fix this?
1chapper 2 months ago
@1chapper add "-mwindows" to the console command.
MrArfyou 4 weeks ago
I hope you can extend this to GPU programming :) such as OpenCL
fibovinci 6 months ago
Hi, thanks for doing the videos I really enjoyed them, but are you going to do any more? It's been 2 months.
CaironaterTheLion 6 months ago
Maybe make a level 2?
Ekcnr 6 months ago
maybe a title screen if possible or a game over screen??
ps3danguman 6 months ago
MORE PLEASE :D
ps3danguman 6 months ago
Comment removed
dhirajgupta191 6 months ago
@RedReaper132 I've watched and enjoyed all 10 episodes of this series, and I found them very helpful to get into SDL and OpenGL. Thank you! :-)
In this 10th episode there is a small flaw though, when you change the direction of the ball based on which side of the pad it hits. The behavior you modeled is totally unphysical (assuming that your pad is still rigid) and looks weird. What you could do instead is change ball.vx depending on pad.vx when the ball hits the pad to model friction.
ben4d85 6 months ago
@RedReaper132 instead of using sdl could i use microsoft visual studio pro 2010
S0LIDFLUX 6 months ago
i want.... MOAR.
HaZaRdxScopeZ 7 months ago
PLEASE in the next video make the game Object Oriented...
and for some ideas:
-scrolling backgrounds and tilemaps. XD
raarchaeon 7 months ago
thanks for the great 10 videos....
how to move a background (like we see in mario) screen..???
pls help me...
dhirajgupta191 7 months ago
Comment removed
nateisgreaterthanyou 7 months ago
Text and menus would be extremely helpful.
nateisgreaterthanyou 7 months ago
Liked your whole series it helped me a lot. If you want you should try doing a short "house keeping," video cleaning thing up a little bit like Thecawesomeone said. Else, you could add some game logic and make random tiles have temporary power ups like increased ball speed, increased paddle speed or even a fireball drop that the player must avoid or die. Stay awesome.
TheWitKid 7 months ago
Turns out the problem is with libpng although I've linked it correctly with code blocks. Do you have any ideas on how to fix it? Thanks.
Thecawesomeone 8 months ago
@Thecawesomeone Did you also add zlib? It's hard to tell why it doesn't work.
RedReaper132 8 months ago
Are you gonna to make a different game after you finish this one?
Btw, when I click build and run (with your code) on codeblocks it opens a white window and closes quickly, but when I click on the exe in the bin folder it works fine. Do you have any idea what could be the problem?
Thecawesomeone 8 months ago
Nevermind, I fixed it.
Oh, and PLEASE do text soon... Would be great with more tutorials xD
In the meanwhile, I'll start making powerup items now! :D
ShadowSky24 8 months ago
Okay, I have a problem!
Here is a screenshot:
imgur . com/ECuK0
(fix the url as YouTube won't allow urls >_> )
It will not render the white part of the screen, as you see!
Do you have any ideas what cause this?
I'm so confused...
ShadowSky24 8 months ago
@BulletShredd I don't know, as I haven't tested it yet...
But I think if you look over what you've already learned, it shouldn't be too hard to make the screen move ;)
ShadowSky24 8 months ago
I got a question...
Why haven't you just made the drawing a function?
Like...
DrawTexture(TEXTURE, COLOUR, X, Y, W, H);
Etc ?
I'm going to do that now... :D
ShadowSky24 8 months ago
@ShadowSky24 I didn't want to complicate too much with functions. If you want to, then make one for yourself :)
RedReaper132 8 months ago
@RedReaper132 Okay xD
ShadowSky24 8 months ago
Great series! Id like to get onto 2 new things.
First, can you talk about framerate, and making a game play the same across multiple/many machines.
And the second thing, is capturing inputs through messaging / signalling.
I'm working on a 2d game engine that I can use for a basis as all my games that I will be developing. Thank you so much you'vebeen a great help and I cant wait for more videos
naumov91 8 months ago
You can also make tutorials for Animation, Timers, Threads, and at the end, using all that to make an mini GameEngine :)
gdinZola 8 months ago
I've been trying to get to the bottom of this but I can't seem to get a concrete answer...
I have noticed that the images you are using do not have dimensions that are powers of 2.
How is this working?
Kingtag1445 8 months ago
@Kingtag1445 Yes that is true. It's certainly recommended that the images have dimension that are powers of 2, but it doesn't have to be that way. It knows to stretch images and things like that. But for the best results, use dimensions that are powers of 2.
RedReaper132 8 months ago
you could make tutorials for "how to play sound". Example: When ball touch pad or brick to play sound ... :)
gdinZola 8 months ago
All the images have transparencies around their edges and it seems like these stay in tact when you apply them.
Is this always the case or is something special happening that allows the transparencies to stay?
Kingtag1445 8 months ago
@Kingtag1445 Yes it depends on the image type and how you load the image into the texture. Also there are some parameters in the glBlendFunc that change how texturing works. It's best that you check around a little to find the best suited settings.
RedReaper132 8 months ago
oh man you are SDL_GOD, man!
djmexxdofficial 8 months ago
ty for the upload.
paulfsherwood 8 months ago