Good start, maybe the next thing you can learn is how to save your screenshots in pngs instead of jpgs |
|
Thanks guys. |
|
Not really, because I've mapped it all out, I think it will be fairly easy, each of those components shouldn't take more than 50 lines of code. |
|
Last edited by ninja9578; 01-08-2010 at 02:16 PM.
How exactly do I draw an image onto the screen? |
|
I'm not a graphics guy (I hardly ever program GUI apps) |
|
(\_ _/)
(='.'=)
(")_(")
*sigh* |
|
Don't be intimidated, it's really quite simple if you know what each command does. Follow the path of the code, it always starts at main, and I've put comments around the OpenGL and GLUT stuff explaining what each function does. |
|
Indeed, |
|
Last edited by Ynot; 01-09-2010 at 03:35 AM.
(\_ _/)
(='.'=)
(")_(")
I agree, you saw my design right? Mario is a fairly simple game, yet it's quite a lot of classes and functionality. I could probably knock it out in a day, but I'm very experienced. |
|
I guess I made my first game! |
|
You need a loop. C++ has a number of loops, but the one that you want is the do/while loop |
|
|
|
(\_ _/)
(='.'=)
(")_(")
What does the "char" do? |
|
it's the character datatype |
|
(\_ _/)
(='.'=)
(")_(")
Edit: Never mind. Note to self: Learn to see if there are more pages. |
|
Last edited by khh; 01-09-2010 at 05:10 PM.
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
Have you given any thought yet to C#? |
|
you must be the change you wish to see in the world...
-gandhi
C# is generally just used for Windows exclusive applications, though, and they require the .NET network to run. It's harder to write cross-platform applications. It's not as elegant at making native applications, though you're saved from hunting for external libraries or writing system-call wrappers yourself. |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
Even unsafe C# code doesn't run as quickly as C++. |
|
Wow... |
|
Last edited by slash112; 01-09-2010 at 08:53 PM.
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
code::blocks has nothing to do with MS |
|
(\_ _/)
(='.'=)
(")_(")
Ah yea, I had a look around google just there. |
|
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
Code::Blocks is great, it's what I use professionally on Windows and Linux. And it does all the complicated linking crap for you. |
|
Cool, I have downloaded and installed code::blocks. Then it asked me what compiler to use, so I used windows visual C++ since it was already on my computer from last time I tried all this stuff. |
|
Last edited by slash112; 01-10-2010 at 01:50 AM.
-- My Videos --
DILD Tutorial| |WILD Tutorial| |DEILD Tutorial| |Lucid Dreaming is The DEVIL?!
Reality Check! (new)| |Why you're not getting LUCID| |Why NOT to be Scared of SP
Bookmarks