Welcome to Dream.In.Code
Become an Expert!

Join 150,041 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,591 people online right now. Registration is fast and FREE... Join Now!




MAking A game in 2d

2 Pages V  1 2 >  
Reply to this topicStart new topic

MAking A game in 2d, Where do i start ???

Trickster090
4 Jun, 2008 - 01:02 AM
Post #1

New D.I.C Head
*

Joined: 2 Jun, 2008
Posts: 41


My Contributions
i would like to know how to make a 2d game

im not sure which language i should be looking at i have

VisualBasic 2008 express edition
C# express edition
C++ express edition

which one is better to start with

also can somebody tell me or point to me to some refrence on how to start making it (since im new toall of this)

it would be a great help.
Thx
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: MAking A Game In 2d
4 Jun, 2008 - 01:33 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,153



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(Trickster090 @ 4 Jun, 2008 - 05:02 AM) *

which one is better to start with

Which ever one you know best. It's easier to learn about a technology when you already understand the tools.
User is online!Profile CardPM
+Quote Post

gabehabe
RE: MAking A Game In 2d
4 Jun, 2008 - 04:20 AM
Post #3

better than jam.
Group Icon

Joined: 6 Feb, 2008
Posts: 5,837



Thanked: 104 times
Dream Kudos: 2700
Expert In: slobbing.

My Contributions
QUOTE
(since im new toall of this)
OK, I suggest you start small. C++ is the most used game programming language, but t can be done in other languages too. The language that I'd advise against for game programming is Visual Basic, AFAIK it's only really useful for average software and database connectivity.

As for a language choice, I suggest C++ or Java - Java can give you some nice results, but when you get into programming big games, it can be a bit laggy (just look at RuneScape)

C# has a game framework called XNA, but I don't really know too much about this. Try this thread right here in the game programming forum for some info.

Like I said before, C++ is the industry standard game programming language. When you get the hang of C++ programming, then I suggest moving on to graphics - OpenGL being the most widely used (console game development) but you could also learn DirectX, which is more PC gaming (AFAIK)

I hope this answers your question smile.gif

This post has been edited by gabehabe: 4 Jun, 2008 - 04:23 AM
User is offlineProfile CardPM
+Quote Post

Trickster090
RE: MAking A Game In 2d
4 Jun, 2008 - 04:21 AM
Post #4

New D.I.C Head
*

Joined: 2 Jun, 2008
Posts: 41


My Contributions
Can you give me some links to learn some basic language for C++ coz i don't really now any of the language i just started last night on C++

So, yah some links would be nice

This post has been edited by Trickster090: 4 Jun, 2008 - 04:24 AM
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: MAking A Game In 2d
4 Jun, 2008 - 04:30 AM
Post #5

better than jam.
Group Icon

Joined: 6 Feb, 2008
Posts: 5,837



Thanked: 104 times
Dream Kudos: 2700
Expert In: slobbing.

My Contributions
cplusplus.com has a really good base of tutorials, going right up to some advanced OOP.

Free Computer Books

A few books that I'd recommend:
Beginning C++ Game Programming
C++ Programming for the Absolute Beginner
Game Programming All in One - my personal favourite, goes right up to DirectX development wink2.gif

Good luck!

Oh, and if you run into any problems, be sure to post them in the C/C++ forum, and we'll do our best to help you out smile.gif

EDIT:
Also, if you find programming a little difficult, even if only at first, take a look at RPG Maker - it's a nice drag and drop, and you don't really have to worry about code too much wink2.gif

This post has been edited by gabehabe: 4 Jun, 2008 - 04:35 AM
User is offlineProfile CardPM
+Quote Post

Trickster090
RE: MAking A Game In 2d
4 Jun, 2008 - 04:41 AM
Post #6

New D.I.C Head
*

Joined: 2 Jun, 2008
Posts: 41


My Contributions
Dude thanks



and oh i really want to burst your bubble

but i own rmxp and rmvx

i got Rpg maker VX on the day of realese and have made 3 full games

and 2 games for sume mates

(but i really wanted something a bit more...welll.....MORE) loz

thanks

Oh and can i ask you to post a small game made in C++ so i can see how to start off TY that would be really help full smile.gif

This post has been edited by Trickster090: 4 Jun, 2008 - 04:43 AM
User is offlineProfile CardPM
+Quote Post

KYA
RE: MAking A Game In 2d
4 Jun, 2008 - 04:47 AM
Post #7

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 5,904



Thanked: 159 times
Dream Kudos: 1375
My Contributions
I have a few tutorials using directX that set up a basic game loop.

Here

And here

There some on matrices and vertices, but that's too much for now.

edit: Basic idea

Game Loop()
-----Handle input
-----Handle graphics
-----Handle sound
-----Handle AI
----- etc...
----- -----draw next frame based on above info

Rinse rather and repeat smile.gif

This post has been edited by KYA: 4 Jun, 2008 - 04:48 AM
User is offlineProfile CardPM
+Quote Post

stayscrisp
RE: MAking A Game In 2d
4 Jun, 2008 - 06:08 AM
Post #8

D.I.C Regular
***

Joined: 14 Feb, 2008
Posts: 284



Thanked: 11 times
My Contributions
I suggest using SDL and c++ for 2d games, its relatively easy to use. u will have to download the latest version and link it to your VS project. There are a lot of tutorials online but they are mostly written in horrible C (sorry any C programmers). I gotta say that you should try and write some really basic games such as pong and asteroids as they are good practice and will help massively. Im currently enrolled in a game development course and we made 2D games last module, i can help you with some things if you like smile.gif

be prepared for a lot of work and good luck
User is offlineProfile CardPM
+Quote Post

gl3thr0
RE: MAking A Game In 2d
4 Jun, 2008 - 08:58 AM
Post #9

D.I.C Head
**

Joined: 27 Oct, 2007
Posts: 209



Thanked: 3 times
My Contributions
???? c++ for a 2d game? y?
if your more interested in the game then the programing look at flash+actionscript
most of the games that u see floating around on webpages and phones have been written in flash.
flash will take care of ALOT of the image and multithreading code leaving you to write the logic.
if you want to move write into game coding then i strongly recomend you check out flash.
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: MAking A Game In 2d
4 Jun, 2008 - 10:17 AM
Post #10

better than jam.
Group Icon

Joined: 6 Feb, 2008
Posts: 5,837



Thanked: 104 times
Dream Kudos: 2700
Expert In: slobbing.

My Contributions
@gl3thr0~
IMO, Flash has it's own unique style - a different style to what can be achieved by a programming language, such as C++
I do agree that it might be pretty nice to start off with, but I couldn't say it is because my first was C++ tongue.gif

@stayscrisp~
I agree, I started learning SDL the other day and I think it's pretty easy to learn from (and this is coming from a graphics n00b unsure.gif)
User is offlineProfile CardPM
+Quote Post

Nykc
RE: MAking A Game In 2d
4 Jun, 2008 - 12:17 PM
Post #11

That Just Happened!
Group Icon

Joined: 14 Sep, 2007
Posts: 4,491



Thanked: 18 times
Dream Kudos: 275
My Contributions
Actually I been reading Game Programming All In One 2nd Edition by Jonathon Harbour and he encourages the use of C programming for his 2d games.

I just went to the library and picked up a book on C Programming called C Programming for the absolute beginner so I can familiarize with the differences in syntax from C to C++.

So I recommend using C with the GCC compiler and the Allegro library.


User is offlineProfile CardPM
+Quote Post

gabehabe
RE: MAking A Game In 2d
4 Jun, 2008 - 12:55 PM
Post #12

better than jam.
Group Icon

Joined: 6 Feb, 2008
Posts: 5,837



Thanked: 104 times
Dream Kudos: 2700
Expert In: slobbing.

My Contributions
@Nykc~
How are you finding that book? I've read two from that series (C++ and JavaScript) and I found them really useful smile.gif
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 09:51PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month