Pong!
Pong!
I made this a few months ago. Its pretty simple compared to some of the stuff you guys do but it was one of my first c++ programs i kinda made on my own since i used chilis frame work so i decided to share it.
- Attachments
-
- PongRelease v1.1.rar
- (7.64 MiB) Downloaded 294 times
-
- PongSource v1.2.rar
- (903.08 KiB) Downloaded 289 times
Last edited by GreatJake on August 9th, 2013, 7:32 pm, edited 1 time in total.
- bshivam2001
- Posts: 214
- Joined: July 27th, 2013, 6:57 am
- Location: India
Re: Pong!
Good Work!
Its Pretty nice according to what we have learnt!
Its Pretty nice according to what we have learnt!
'If you can't make it good, at least make it look good'
Re: Pong!
you could just solve it by adding ifs in both PutPixel functions that discards the pixel(s) when x/y is less than 0 or greater than screenwidth/screenheight
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Re: Pong!
well you can do it all in one if statement, doesn't have to be 4
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --