Hello. I am writing Pong in C++. Ask me anything

Hello. I am writing Pong in C++. Ask me anything.

do you have any noodz of your mom?

More than you have of yours.

what are you using to draw to screen?

SDL2 with built in geometry rendering and textures for the alphabet.

How is 6th grade computer class?

Never been better.

>C++ in grade 6
You wish. You've been developing in your basement for too long
inb4 kids nowadays

Why don't you clean your fucking lens. Fucking disgusting.

Those are scratches, honcho.

Cool. I'm learning C++ and SDL too. Following the book. What's wrong with your camera?

Good luck. It's damaged.

What version of vs is it?
Pretty advance tbh.

Latest. Assuming that the latest C++ standard is used.
If you say so. Any schmuck could put this together from three tutorials and a wiki article.

Show your code so i can judge.

Latest. Assuming that the latest C++ standard is used.
If you say so.

Which part?

>three tutorials and a wiki article
I thought you did your own

Can you change the lines to dicks, add one more ball and call it Dong?

>2016
>Still writing shitty game in C++

What's wrong OP ?

All of it. Or the part that you're proud of the most.

>he can't make a pong clone in assembly
kill yourself

>i'm not advanced senpai desu .///.

Yes.

what the fuck

prepare to get rekt

MWAHAHAHAHAHAHAHAHAHA!!! Now I know your IP. I will now virus the whole world with HACKS! You silly human!

Are you like 8?

Ye, waddup?

Waddup boi!

oh shit

Well, nothing much happens in there.

But that definition of s seems useless, just pass c.c_str() right away.

You can code in C++ but you can't screenshot a fucking picture?

How do you feel about implicit type conversions in C++? I always thought they were slick until I had to debug uncommented code like B bar() {return dynamic_cast(foo());} where two conversions happened, one in the cast, and one in the function return, and it made me want to slit my fucking throat

>this

That doesn't always work.

if, if, if, if, if, if, if

I have not encountered that yet.

were you always a faggot

>That doesn't always work.

What the fuck? What does that even mean?

Good for you user. Learning the fundamentals of programming in c++ will make using any other c derivative language easier.

Shh, just let it be.

I actually already know them but thank you anyway.

If,if,if

Try using case/switch here user.

switch ( e.type) {

case SDL_KEYDOWN :
// Code
break;

case SDL_QUIT :
// Code
break;

default:
// Code
break;
}

Multiple keys can be down at the same instance.

Actually I messed that up, yeah, ur rite

They arent keydown messages ... They are event messages and one event has one type, not multiple.

>Sh, just let it be.

Well, you were talking non sense and now you cant back it up.

This is common, foo runs, then the output is cast to a. Its a bit messy, but all code is.