Author Topic: How do you make browser based games?  (Read 2236 times)

Offline nago62

  • Level 1
  • *
  • Posts: 1
  • Reputation: +0/-0
    • View Profile
How do you make browser based games?
« on: September 09, 2007, 07:48:59 PM »
 I need help I just now started using php and I have no idea what I'm doing.

Offline toto

  • Level 12
  • *
  • Posts: 82
  • Reputation: +1/-0
    • View Profile
Re: How do you make browser based games?
« Reply #1 on: September 10, 2007, 12:51:57 AM »
Well, that's a very generic question  :D
I'd recommend that you first read a book about php. You can try one of the Sams Teach Yourself PHP books, they tend to be quite practical.
If you know any other programming languages, then you'll notice that you can simply skim through the book in a couple of hours and know enough to begin coding.
If you do not have experience with other languages, then you will probably need to practice a lot

To make a game, you will also need some MySQL knowledge, but these days, most PHP books say enough about MySQL, so there's no need to specifically read about that.

Once you have basic notions of PHP, the best way to start making a game is to look at (well-documented) open source php games, and try to alter them to do different actions. Once you can customise a game to your needs, you can write a game from scratch.

Offline bobton

  • Level 9
  • *
  • Posts: 51
  • Reputation: +0/-2
    • View Profile
Re: How do you make browser based games?
« Reply #2 on: December 08, 2007, 08:40:32 AM »
i said in another post about this

What i did was get a complete game that works form a open source site and then tried little things lookups or echos stuff that is simple with a book and then looked a the code and after learning the basics you kinda get what is happening in the code.. if you want help i can help lol

Offline Skooma

  • Level 1
  • *
  • Posts: 1
  • Reputation: +0/-0
    • View Profile
Re: How do you make browser based games?
« Reply #3 on: December 17, 2007, 10:46:27 AM »
I found the easiest way to get started and create my first PHP/MySQL B.B. game was to get the registration, e-mail verification and login systems working along with a basic installer, written with python in my case.  The installer could be written in PHP of course but I wanted a piece of cross platform server side software which could run periodic updates on the registered accounts so bundling the database installer in with it was a no brainer.

Creating a registration system with some simple account variables like id, username, password and e-mail shouldn't take all that long and is something which you would need to create with any type of game anyway. Once that is created you'll have a decent enough understanding of PHP, MySQL, HTML forms, submissions and probably sendmail with a verification system to gauge how difficult it's going to be to create the game you want to create. If you have a problem creating a simple registration system then you're going to have problems creating a full game from scratch.

Using an open source project is fine but you're going to be taking someone else's work and tweaking it, sitting down in front of a blank editor page after playing around with something like that is going to leave you in the same position as when you started, in my opinion. You're going to know how to tweak code but you're not going to have much of a clue about something like creating a class or an extended class from scratch or creating a nice set of MySQL functions for creating instances of them based on values stored in your database tables.

Saying that, it's probably personal preference... I've used the learn by example approach on more than one occasion in my time, I just did it differently when it came to PHP/MySQL.

Offline mobeamer

  • Level 13
  • *
  • Posts: 93
  • Reputation: +0/-0
    • View Profile
    • Untouchable Games
Re: How do you make browser based games?
« Reply #4 on: December 17, 2007, 01:59:45 PM »
Just to give a different point a view...I find building the login/registration stuff boring so I leave it for last. My first step is create an image in photoshop of the layout of the game.

This allows me to work on the menu, stats and little details of the game before coding anything.

Once I have a good layout, I'll put it into HTML and start coding individual pieces.

mobeamer
BattleForcesOnline.com - Turn Based RPG Geeky Goodness

I build games
My Blog

Offline overklokan

  • Level 5
  • *
  • Posts: 20
  • Reputation: +0/-0
    • View Profile
    • Game of all games
Re: How do you make browser based games?
« Reply #5 on: May 04, 2008, 02:50:38 PM »
check this excellent tutorials and make sure you read "getting started" and parts 1, 2 and 3:

http://www.gamespp.com/cgi-bin/index.cgi?tutorials#gamedevelopment

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal