Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 1st, 2007, 03:59 PM
Athene Athene is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 Athene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 23 sec
Reputation Power: 0
Choosing the right language

I'm about rookie in programming, made a few small projects of games and programs, mostly Visual Basic and a tiny bit of Java.
I think programming is really fun, and now I want to make a game that can be played in browser, and with graphics. This is alot of new things to me, never programmed anything for browser and never programmed any mentionable with graphics.
As for the game I want to make, I haven't really thought much about it yet, Im thinking of just starting small and expanding the game with time. I tend to start several projects that I never finish, so I dont want to ask for too much of myself;p

My question: What programming language do you think I should get into to make the game? The only language I know is usable for it is Javascript, but surely there must be more alternatives?

Reply With Quote
  #2  
Old April 1st, 2007, 05:42 PM
Thoku Thoku is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 175 Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 2 h 3 m 34 sec
Reputation Power: 13
JavaScript is just client side so you can't use that. You could use java with jsp or servlets. However after having quite a few java servlet projects I prefer using C# and ASP.NET to develop interactive websites, its just sooooo easy especially if you are using Visual Studio. You could even code it in VB with ASP.NET.

I presume you will be storing data in a database which is easy you will have to learn about setting up a database and some SQL to get the information you want from it, its not difficult a quick google will easily find all the information you need.

Reply With Quote
  #3  
Old April 2nd, 2007, 08:41 AM
Athene Athene is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 Athene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 23 sec
Reputation Power: 0
Thanks for the tip, I'll try it out

Reply With Quote
  #4  
Old April 2nd, 2007, 09:40 AM
Andrew80's Avatar
Andrew80 Andrew80 is offline
Advanced Programmer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Malaysia
Posts: 434 Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level)Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level)Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level)Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level)Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level)Andrew80 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 6 h 58 m 37 sec
Reputation Power: 32
Send a message via MSN to Andrew80 Send a message via Yahoo to Andrew80
If your going to write a game, I always recommend C/C++ because of the number of API's and techniques that you can use. Whilst C# may be easier to pickup and learn, I find C++ less restrictive and easier to use when dealing with OpenGL or DirectX.

Writing a game is easy. The hardest aspect of game development is designing the game itself.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
- Kristin Wilson, Nintendo, Inc., 1989.

Reply With Quote
  #5  
Old April 3rd, 2007, 01:24 PM
Thoku Thoku is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 175 Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 2 h 3 m 34 sec
Reputation Power: 13
Quote:
Originally Posted by Andrew80
If your going to write a game, I always recommend C/C++ because of the number of API's and techniques that you can use. Whilst C# may be easier to pickup and learn, I find C++ less restrictive and easier to use when dealing with OpenGL or DirectX.

Writing a game is easy. The hardest aspect of game development is designing the game itself.
i agree, but coding a web browser game in c/c++ will be quite complex when compared to coding it in c#/vb and asp.net.

Reply With Quote
  #6  
Old April 4th, 2007, 12:01 AM
imsangha imsangha is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Concord, California
Posts: 20 imsangha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 34 m 22 sec
Reputation Power: 0
Send a message via MSN to imsangha
I used to do game programming with VB all the time. I started with GDI, then moved onto BitBlt API, then I used DirectDraw. If you're still using VB6, maybe it's a good time to learn a new language.

Games running under web browsers. Hmm... Did you try publishing your game as an ActiveX form, so browser can run it as a form of ActiveX? It's just like designing VB games with forms, except there is one flat plane. So, try that.

The performance has been always a big issue with VB6, they're just so slow and VB6 Runtime Library should accompany the Executable files everywhere they go(For Win98 and some other older OS.) If you will be doing some serious game programming, I strongly suggest using C++ as your language. SDL Library is extremely easy to use if you have some experience with DDRAW and understand how surfaces work(I don't think they flip surfaces in SDL tho.) Hope this helped.

Reply With Quote
  #7  
Old April 4th, 2007, 02:51 AM
Hugh of Borg's Avatar
Hugh of Borg Hugh of Borg is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Switzerland
Posts: 542 Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 10 h 58 m 24 sec
Reputation Power: 66
As Thoku pointed out you'll need a server side language to implement the game logic. I suggest you take a look at php. It's a C-like language and quite easy to learn. It has tons of librarys for various things like object oriented database access and dynamic image generation and also comes with a very simple-to-use way to access mysql databases.

Java-Servlets or JSP's are and ASP stuff are also some alternatives but so far I have found PHP to be the easiest option especially on small projects.

You should only use Javascript for improving the handling of your pages on the user side. But as it is executed clientside i wouldn't trust it with anything really important...
__________________
- Hugh of Borg

The first thing young borg are taught: Keep away from Microsoft software!

Reply With Quote
  #8  
Old April 4th, 2007, 11:55 AM
Thoku Thoku is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 175 Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level)Thoku User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 2 h 3 m 34 sec
Reputation Power: 13
Quote:
Originally Posted by Hugh of Borg
As Thoku pointed out you'll need a server side language to implement the game logic. I suggest you take a look at php. It's a C-like language and quite easy to learn. It has tons of librarys for various things like object oriented database access and dynamic image generation and also comes with a very simple-to-use way to access mysql databases.

Java-Servlets or JSP's are and ASP stuff are also some alternatives but so far I have found PHP to be the easiest option especially on small projects.

You should only use Javascript for improving the handling of your pages on the user side. But as it is executed clientside i wouldn't trust it with anything really important...
the reason I didn't suggest php is because its much harder to add things like AJAX and moving into OOP languages is harder when you're first language has not been OOP. If that makes sense.

p.s. I know you can develop OO PHP aplications its just a little fiddly when compared to using a full OO language like C# or Java.

Reply With Quote
  #9  
Old April 4th, 2007, 06:48 PM
swattkidd's Avatar
swattkidd swattkidd is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2006
Location: True
Posts: 856 swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 12 m 58 sec
Reputation Power: 98
I dont see why nobody here mentioned them yet, but you should learn Java and Java applets. They are preety easy, imo, to develop graphics for them and they work well in the browsers.

Reply With Quote
  #10  
Old April 25th, 2007, 12:07 PM
Miaow Miaow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Location: Romeoville, IL
Posts: 118 Miaow User rank is Corporal (100 - 500 Reputation Level)Miaow User rank is Corporal (100 - 500 Reputation Level)Miaow User rank is Corporal (100 - 500 Reputation Level)Miaow User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 2 h 26 m 26 sec
Reputation Power: 7
Question

Quote:
Originally Posted by Thoku
the reason I didn't suggest php is because its much harder to add things like AJAX and moving into OOP languages is harder when you're first language has not been OOP. If that makes sense.

p.s. I know you can develop OO PHP aplications its just a little fiddly when compared to using a full OO language like C# or Java.


Hello,

I've been browsing the "beginner game-making" threads, because, for some time, I've had an idea for a simple game I'd like to program to practice my programming skills. My main objective for my visit to DevShed today is to determine what language to write the game in.

I would prefer PHP, as I have some basic knowledge of it, (PHP 4) but I found your recommendation to not use PHP interesting.

In what ways is OOP "fiddly" in PHP? I've read that PHP 5 is more OO that its predecessors. I'd like to learn OOP. The concept of breaking a program into manageable chunks makes a lot of sense to me.

I've also have tried to use the graphic functions in PHP 4 (on a different project, just to resize a graphic) and was totally confused, and had to resort to just using HTML to size the graphic (terrible, I know, but I had a deadline).

I was wondering if PHP would be appropriate for my game, or if I should take a look at Java or some other language.

The game I'd like to create is an online browser-based "Memory" game (you know that game we all played as kids, with the little tiles with pictures on one side, and pretty much blank on the other - the point of the game being to flip over two tiles and try to match pairs of pictures).

I'm curious to hear people's opinions on if I should stay with PHP to create this game, or if this type of game is more suited to Java and go that route.

Flash is out of the question, as it's so expensive, and I know a lot of people block Flash, or get irritated when a site is all "flashed out" (myself included! )

I do have some programming experience, in C, Visual Basic 6, PHP 4 (as mentioned above), and SQL.

Thanks in advance for your replies!

~*Miaow*~

Reply With Quote
  #11  
Old April 26th, 2007, 03:04 AM
Hugh of Borg's Avatar
Hugh of Borg Hugh of Borg is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Switzerland
Posts: 542 Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hugh of Borg User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 10 h 58 m 24 sec
Reputation Power: 66
Hi Miaow

I like your idea of a browser based memory game. I think it's an adequate game for a first try.

I recommend you go with PHP, especially since you already know it. You could of course do it with ASP, ASPX or JSP. But when trying new things it's best to stick with tools you already know...

OOP in PHP is 'fiddly' in a sense that PHP started out as a strictly procedural language. All the OOP functionality and concepts were included later. Because of that OOP is less clean and elegant in PHP than it is in languages specially designed for OOP. Don't let that discourage you. It works just fine.

But if you are new to OOP I suggest you choose another language to learn it (like Java for example) and stick with procedural programming for your first web game. When you got the hang of the web programming and have learned oop you can still start combining the two...
Comments on this post
Miaow agrees: Thank you so much for yor input!

Reply With Quote
  #12  
Old August 16th, 2007, 05:11 PM
Kefik Kefik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 8 Kefik User rank is Sergeant (500 - 2000 Reputation Level)Kefik User rank is Sergeant (500 - 2000 Reputation Level)Kefik User rank is Sergeant (500 - 2000 Reputation Level)Kefik User rank is Sergeant (500 - 2000 Reputation Level)Kefik User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 h 12 m 23 sec
Reputation Power: 0
I would recommand Java. PHP is not bad - but I think type-unsafe and scripting languages very bad for learning as the first language. Simply because you may divise some ugly coding techniques (I'm not saying it's your case!). Generaly less strict the language is, more spaghetti code you may write.

For instance ... a weird 3D array in PHP can be accessed like this
$GLOBALS["myArray_".$x."_".$y."_".$z] ... and then you may read every field as a standalone variable (don't know why would anybody do that, but it's possible).

At least Java forces you to organize your code into packages + have one class per file. So you have to think about what the class is doing and where you should put it.

Reply With Quote
  #13  
Old April 16th, 2008, 06:02 PM
swattkidd's Avatar
swattkidd swattkidd is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2006
Location: True
Posts: 856 swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level)swattkidd User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 3 h 12 m 58 sec
Reputation Power: 98
I reccomend Java, which is NOT javascript, I think thats where you got confused and why some people answering the question may have gotten confused.

Use Java and create an Applet, its perfect for playing games in a browser and using graphics..

Reply With Quote
  #14  
Old April 27th, 2008, 10:44 AM
infinity++ infinity++ is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 7 infinity++ User rank is Private First Class (20 - 50 Reputation Level)infinity++ User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 49 m 12 sec
Reputation Power: 0
I would advise you not to be too bothered about a language but focus on learning an API/technique. For instance if you learn OpenGL you can easily convert your code between C/c++, java (using JOGL or LWJGL) or Pyton, ruby etc as the "graphics" side of the code comprises of the same API calls.

Problem with focusing on a particular language is that the code you wrote in Java for graphics (e.g. using Java 2d/3d) would be very different from your corresponding C++ game.

Reply With Quote
  #15  
Old May 1st, 2008, 07:17 AM
lucas69 lucas69 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 10 lucas69 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 51 m 7 sec
Reputation Power: 0
You can do *everything* with C ans ASM
OS are done in C and ASM

Reply With Quote