Full Version: Making a 2D Game Engine Using OpenGL - Part3 is up
Dream.In.Code > Programming Tutorials > C++ Tutorials
mad
Hello everybody. Here is my series of tutorials. This is only the first part. We only create a header of our engine's basics. I'm going to update the first post with every part of these series. So stay tuned biggrin.gif

- Last Part: Part 3

Sorry if there is anything misspelled. English is not my primary language.
Have fun. I'm coding it with you so if there is any error please tell me we will challenge them together! And i don't know how many tutorial i'm going to write it depends to the power of engine tongue.gif . Again as i said before HAVE FUN!
Videege
Great introductory tutorial, I hope you continue the series.

Just some minor nitpicky things:

QUOTE
You can easily change the type names by using the powerful typedef function!


-- typedef is a keyword, not a function

CODE
#ifdef _WIN32
#include <windows.h>    // For Windows
#else


-- shouldn't #ifdef be #ifndef?

Also you might want to mention linker options in certain IDE's and where to get the OpenAL library for those that are just starting off.
mad
Thanx a lot for correcting my mistakes. I'm going to prepare a lot of them. Stay tuned

Edit: Now i'm back from 48 hours of code. Loads of fun. Ok here is your answer it can't be ifndef cause we say to compiler, if the platform is win32 include windows. If you change the ifdef to ifndef it will try to include windows.h on linux too. That's why we use ifdef.
mad
Here is part 2 i add this as a new post cause if there is someone who didn't read the part 1 may want to read it first. So ok here is the part 2. Waiting for comments!
mad
Sorry everybody i'm not at home so i couldn't post any new tutorials. I had finished but i left it at home. So sorry too much again. I'm gonna post the new tutor tomorrow...
Dark_Nexus
it may be a good idea to offer your tutorials in an uber friendly .txt format as well.
mad
Sorry everybody my computer's ram has burned and affected my hdd so every data of i got has lost i'm gonna provide the tutorials in txt, doc and AVI! formats in few days. Sorry again... sad.gif
mad
here is part3 of the series. this is the most elite tutorial of the series i think download it and read carefully. biggrin.gif

HAVE FUN!

PS: TXT will be on the site in 1 hour and avi will be there in couple of days...
mad
uber-friendly txt versions
Part1
mad
uber-friendly txt versions
Part2
mad
uber-friendly txt versions
Part3 why there is no such option as multiple upload. Well where is the feedback forum i must tell this...
gamer123
QUOTE(mad @ Sep 11 2005, 09:03 AM)
uber-friendly txt versions
Part3 why there is no such option as multiple upload. Well where is the feedback forum i must tell this...

Will the engine use a gui to make a game, i'm wanting to make a zelda game.
mad
yeah in my plans there is gonna be a powerful ide for the engine and i'm still working on a java style run-time c/c++ interpreter language as the scripting language of the engine. so this means everybody will easily make games with the engine...
mad
hi everybody i know i'm not positng for long time but my exams started at school so i will post 2 in 1 vanilla tutorials (those about scripting language and finally rendering something to screen) when my exams finish. Happy coding to everybody...
jacksaywhat
hey, are you finished with this post? Or are you gonna continue posting tutorials? Because it has been quite a while since your last post.
dec1pher
sorry for my lateness ('i'm the old mad') i was busy with a game project and i'm back i'm not finishing with this post (or maybe i'm i must think to continue or startover) but i'm back and i will send more tutorials.
fat_cow
Hey, I have learned some of C language and decided to jump right to C++. I just started reading the book on C++ for game programming and then I will read my 2 books on OpenGL. I just want to know if you can put those tutorials 1,2,3 back up so I can download them? I really appreciate it. I just want something to try when I am done reading my book.
Flash0429
i put everything in the program and im getting alot of missing headers and other errors
gogole
with this i think i should be able to make my first 2d game.thanks for the tutorial.
dmrutgos
Is there another more complete tutorial on opengl?

QUOTE(dec1pher @ 27 Jan, 2006 - 04:12 PM) *

sorry for my lateness ('i'm the old mad') i was busy with a game project and i'm back i'm not finishing with this post (or maybe i'm i must think to continue or startover) but i'm back and i will send more tutorials.

MorphiusFaydal
QUOTE(dmrutgos @ 24 Nov, 2007 - 11:46 AM) *

Is there another more complete tutorial on opengl?


NeHe's OpenGL tutorials - The "definitive" tutorial site for OpenGL. The one everyone links to and knows about.
The OpenGL Programming Guide - The "Red" Book. This is the second edition, online. Yes, it's completely legal.
ZeusCMD Tutorials - A site that I found to has taught me the basics of OpenGL and GLUT.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.