home   |   contact us   |   sitemap   |   advertising Free Online Games
Free MMORPG

The Free MMORPG Games- Free MMORPG - P2P Games - Open Beta - Closed Beta - Browser Based - Non-English - Other Free Games - Top 50

This month's featured Free MMORPG is : Secret of the Solstice - click here to check it out


Go Back   Onrpg Free MMORPG Forums > Development > Game Development
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 05-22-2006, 11:53 PM   #1 (permalink)
Eriond
Rock Man
 
Eriond's Avatar
 
Join Date: May 2006
Location: Canada
Posts: 418
Eriond is on a distinguished road
Send a message via MSN to Eriond
MMOFaces Profile: None Yet
Default Getting Started with C(++)

First, an introduction

What is a programming language?

Programming languages are a way to write a set of instructions which your computer can follow. However, you can't just type the code in a text file, and expect the computer to run and understand your commands. Most languages used for heavy-duty games these days are what are called compiled languages, meaning that in order for the computer to understand the code you've just written, you have to get a program, called a compiler to turn your text into binary commands, that the computer can understand. Essentially, everything on your computer was written in one programming language or another. Windows was written mainly in C, an early compiled language, with some of the more low-level functions coded in ASM (which is essentially hand-written binary). Most games these days are written in C++, C# or Java. (Games that don't need to be so fast are also written in Visual Basic)

What is C++?

C++ is a programming language, revered as the mother of all compiled languages (this is figurative. It's not actually the first compiled language, it's just viewed as the one that's best for game programming), and looked at as the perfect language for writing games, though this is now changing, as C# rises in popularity. I'm not going to go into that, since I don't know C#, and this tutorial is about C++.

IDE Installation

And here's the link to a C(++) compiler, along with a nice IDE (a nice text editor with a bunch of functions added into it) : http://prdownloads.sourceforge.net/d....9.2_setup.exe
(Some people say that Dev-C++ isn't that great an IDE, and they prefer the MSVC++, and I know that it's compiler does a better job of optimizing, and it has a better debugger, I'm just so damn used to Dev-C++, that's why I'm reccomending it. Check out the MSVC++)

Okay. That's pretty easy to install, you just double-click the exe, and follow through with the installation. Don't worry about any specifics that pop up. Just install as much as you can. Once it's installed, run it.

Coding

Now, if you're looking to write games, I'm afraid it's going to be a while before you can do that. You have to learn the basics of the language and whole bunch of other stuff before you can go on to write your perfect dream MMORPG. This is not exaclty a task for the faint of heart. To write an MMORPG, you need to master a graphics library, a networking library, a windowing library, or several wrappers which encompass one or more of those libraries.

However, this is not to say you can't write simple games like tic-tac-toe relatively fast. But you still need to know the basics. So, with that in mind, let's get started with coding.

Inside Dev-C++, go to

File --> New --> Project

Click console application, then click okay. Save the file where you want to save it, by default, it's in the Dev-Cpp folder, but you can save it anywhere.

Once that's done, you can start coding.

The place I learned to code from was:
http://www.cprogramming.com/tutorial/lesson1.html

That should get you started. You should be able to put stuff out into a command prompt after the first lesson. While that might not sound like much, it's a great step forward. Read through the tutorials on the cprogramming site. By the time you get to the... oh, I don't know, the inheritance tutorial, and you can do all the other stuff pretty much off the top of your head, you should be ready for the next step (which was in my case, Win32 programming, though it varies depending on what you want to do, or who you ask).

Anywho, if you can master the tutorials on that site, you'll be one step closer to writing your very own graphical game. And remember, even if you can't see how an aspect of the tutorial could possibly relate to gaming, trust me, it probably does. Just stick with it.

If you have any questions, just post here, and I'll be glad to answer to the best of my ability.

Important
I cannot stress enough that if you want to make a 3D RPG, MATH is required. Yes, math. I know. We all hate it. Math is stupid. It's never used, like, anywhere. Unfortunately this is like the one field where it's necessary. If you want to make a 3D or even 2D RPG, you should know the following:
  • Basic Trigonometry
  • Shape and Patterns of all the Basic Functions (x,sinx, absx, x^2, x^3, etc..)
  • Vectors
  • Basic Algebra
  • Matrix Math (3D Only)

Don't worry if you don't know some of these, just follow the link to the math site at the bottom of this post and it has a bunch of tutorials regarding the subjects.

Useful Links:

C++ Language Tutorials: http://www.cprogramming.com/
Very Nice Win32 API Tutorial by TheForger: http://www.winprog.org/tutorial/
Totally complete OpenGL tutorials, explaining all the basics behind the API : http://nehe.gamedev.net/
SDL Library, and Tutorial Index: http://www.libsdl.org/index.php
Networking Tutorials (on windows): http://www.madwizard.org/view.php?pa...tents&lang=cpp
Math Tutorials: http://www.math.com/

Oh, and here's a nice tip from Elegy:

Quote:
Originally Posted by Elegy View Post
That's why I have also tooken up a habit to put a comment ( // or /* *\ - you will read about these in the first tutorial in the given link by Eriond) at the very end of my "Hello World" Project, to summarize what I have learned so far. I found this is a much easier way to go over what I have learned, instead of manually searching through the tutorials about it. I also noticed that the tutorial uses several different words that *may* throw some people off and confuse them.. if you don't understand a meaning, keep reading. You will eventually find out what it means or what it is used for.
__________________
This was a triumph. I'm making a note here. HUGE SUCCESS. It's hard to overstate my satisfaction. Aperture Science. We do what we must, because we can. For the good of all of us, except the ones who are dead. But there's no sense crying over every mistake, you just keep on trying 'till you run out of cake!

Last edited by Eriond : 07-17-2007 at 12:16 AM.
Eriond is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2006, 12:04 AM   #2 (permalink)
Kevinboyz
Cloud13's Clown
 
Kevinboyz's Avatar
 
Join Date: May 2006
Location: ☼_☼
Posts: 1,433
Kevinboyz is on a distinguished road
MMOFaces Profile: LovingYou
Default well

I think i would mess up my brain trying to learn those. It takes way too long >_< (8yrs) and double for me
Kevinboyz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2006, 12:06 AM   #3 (permalink)
MisterPoppet
Orc's Breathmint
 
Join Date: May 2006
Location: In the annex of creation...
Posts: 113
MisterPoppet is on a distinguished road
Send a message via MSN to MisterPoppet Send a message via Yahoo to MisterPoppet
MMOFaces Profile: None Yet
Default

Nah.. Depending on how hard you worked on it, it would only take 2-3 years to get enough know-how to start doing games and such (especially if you focused on games).

-Bryan-
MisterPoppet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2006, 01:16 AM   #4 (permalink)
HopeDagger
Luigi’s Pizza
 
HopeDagger's Avatar
 
Join Date: May 2006
Location: Ontario, Canada
Posts: 120
HopeDagger is on a distinguished road
Send a message via MSN to HopeDagger
MMOFaces Profile: None Yet
Default

Sure; this works as sticky material for me.

I'm hoping to get a guide/tutorial system up soon, which Gabe has mentioned that this new forum is capable of doing. So this can remain stickified until we reach that point.

Thanks for the contribution, Eriond!
__________________
HopeDagger
Evangelistic Hobbyist Game Developer.
onRPG "Game Development" Moderator.
Gauntlets of Recursion (+5) - My game development journal.
Recent Projects: [Meteorites [Gundown] [Magma Duel]
Main project: ((Skirmish Online v0.05 Alpha))
Secondary project: ((Star of Shadows RPG))
HopeDagger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2006, 08:07 PM   #5 (permalink)
shemer77
Pikachu's Flea Collar
 
Join Date: May 2006
Posts: 53
shemer77 is on a distinguished road
MMOFaces Profile: None Yet
Default

This is great thx.Does anybody have other tutorials? Link dosent work.
__________________
Check out freewebs.com/amka47 for free mmorpgs and mmos


Last edited by shemer77 : 05-23-2006 at 08:11 PM.
shemer77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2006, 08:31 PM   #6 (permalink)
Eriond
Rock Man
 
Eriond's Avatar
 
Join Date: May 2006
Location: Canada
Posts: 418
Eriond is on a distinguished road
Send a message via MSN to Eriond
MMOFaces Profile: None Yet
Default

Odd that it doesn't work... just checked and it works fine for me. Oh well.

http://www.cplusplus.com/doc/tutorial/

There's another site. I'm not sure how good the tutorials are, but they look ok.
Eriond is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 05:23 PM   #7 (permalink)
PowerGamer
Arri's Animal
 
PowerGamer's Avatar
 
Join Date: May 2006
Location: Updated username is Nirkon
Posts: 1,044
PowerGamer is on a distinguished road
Send a message via MSN to PowerGamer
MMOFaces Profile: None Yet
Default

I tried learning C++.. got bored
if I choose to make games later in life, ill come back to C++
im only 14 now
__________________

Shinethrough theDarkness, and your fate willshineas well.
In the absence ofLight, Darkness prevails.

Quote:
Originally Posted by Some Random Wrz Pirate
Exactly what I need, M'zoft does not want my win, he said is a pirate and does not recognize him as his son.


PowerGamer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:38 PM   #8 (permalink)
shemer77
Pikachu's Flea Collar
 
Join Date: May 2006
Posts: 53
shemer77 is on a distinguished road
MMOFaces Profile: None Yet
Default

lol not tutorial link.The other one to download it.Lucky i searched the thing on google and found it.Forgot link though sry:mad:
__________________
Check out freewebs.com/amka47 for free mmorpgs and mmos

shemer77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 06:12 PM   #9 (permalink)
Eriond
Rock Man
 
Eriond's Avatar
 
Join Date: May 2006
Location: Canada
Posts: 418
Eriond is on a distinguished road
Send a message via MSN to Eriond
MMOFaces Profile: None Yet
Default

Ah yeah. Fixed that now The board decided to actually turn the URL into a string with ellipses in it... anyway. Yeah. Fixed.
Eriond is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 09:45 PM   #10 (permalink)
shemer77
Pikachu's Flea Collar
 
Join Date: May 2006
Posts: 53
shemer77 is on a distinguished road
MMOFaces Profile: None Yet
Default

Thanks.This really helped.
__________________
Check out freewebs.com/amka47 for free mmorpgs and mmos

shemer77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:46 PM.

Forums Section List
Main Category Free Games Online Games Upcoming Games Online Games Upcoming Games
General Free MMORPG Fiesta Online    Maple Story Guides Trickster DOMO - Dream of Mirror Online
RolePlaying Free MMO & MMOFPS Conquer Online    Maple Story Buy/Sell/Trade WarRock Online Seal Online
Newbie Zone Korean/Foreign Games DragonGem Lunia World of Warcraft Age of Armor
  Browser/MUDs FlyFF Ragnarok Online Other Games Exteel
  Single Player RPGs Ghost Online Rakion    Rappelz Infinity
  Free MMORPG Requests Guildwars Runescape    Final Fantasy XI Cabal Online
    Gunz Online Scions of Fate (YulGang)    Goonzu Online Granado Espada
    Maple Story Silkroad    Gunbound Nostale



Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8
Onrpg, Copyright ©2003-2007, BlueCastle Media

Copyright © 2004-2007 BlueCastle Media