Author Topic: How to start game programming  (Read 2084 times)

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
How to start game programming
« on: October 10, 2009, 01:30:13 PM »
Hi,
I´m new here. I wanna make simple multiplayer browser game, but I don´t know how to start. I know xhtml, css and now I started with php and mysql. I want make my own game to learn php + mysql and have fun. Where can I start?

Offline karnedge

  • Level 17
  • *
  • Posts: 170
  • Reputation: +4/-0
  • ctrlHack provides the server, you bring the skill.
    • View Profile
    • ctrl://Hack.game
Re: How to start game programming
« Reply #1 on: October 10, 2009, 08:51:02 PM »
Honestly, and quick and easy way to figure out how a game works using PHP would be do the BuildingBrowserGames tutorial:

http://buildingbrowsergames.com/tutorials/

Start from the top and use all the PHP links in each row item to go through all the steps.
Those will definitely get your started and get you a real working game that you could just build from and add on to.

Hope that helps!
ctrlHack - Hacking simulation RPG in development.
Latest blog: Back on Track
bbgFramework v0.1.3

Offline dbest

  • Game Owner
  • Level 20
  • *
  • Posts: 211
  • Reputation: +3/-0
    • View Profile
    • Tennis Masters
Re: How to start game programming
« Reply #2 on: October 10, 2009, 10:59:19 PM »
I would second those tutorials. I have used them as a base to get me started in PBBG.

You might have to improvise and tighten your code along the way.

Alternatively, you could join an existing team and lend them some help.

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: How to start game programming
« Reply #3 on: October 11, 2009, 01:25:00 AM »
Thanks, I´ll try it.

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: How to start game programming
« Reply #4 on: October 11, 2009, 04:07:29 AM »
Is possible to download whole http://buildingbrowsergames.com/tutorials/ web? I want read it when I´m travelling and i don´t have the internet on smartphone...

Offline dbest

  • Game Owner
  • Level 20
  • *
  • Posts: 211
  • Reputation: +3/-0
    • View Profile
    • Tennis Masters
Re: How to start game programming
« Reply #5 on: October 11, 2009, 04:12:02 AM »
Try copying and pasting the tutorials in a document on your system, if you want to read it offline. I think that's easy to do.

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: How to start game programming
« Reply #6 on: October 11, 2009, 04:40:50 AM »
Ok =)

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: How to start game programming
« Reply #7 on: October 11, 2009, 04:45:58 AM »
You could always download a PBBG framework and see how they did it (there was one on the forums here, somewhere, that should give you a good idea of how to do a PBBG).

Also you can download the engine and use it offline (on your localhost) ;).
« Last Edit: October 11, 2009, 07:12:07 AM by jannesiera »

Offline dbest

  • Game Owner
  • Level 20
  • *
  • Posts: 211
  • Reputation: +3/-0
    • View Profile
    • Tennis Masters
Re: How to start game programming
« Reply #8 on: October 11, 2009, 06:51:59 AM »
Here are some video tutorials of a browser based mmo.

http://indie-resource.com/forums/viewforum.php?f=27

Hope it helps.

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: How to start game programming
« Reply #9 on: October 11, 2009, 07:37:35 AM »
Hi,  i have one stupid question: Is possible to save images into the database, or only text, numbers etc.?

I´m afraid of rpg, because i think that it must be endless game and when you stop making it, it will unplayable...
« Last Edit: October 11, 2009, 09:21:19 AM by Argonisius »

ST-Mike

  • Guest
Re: How to start game programming
« Reply #10 on: October 11, 2009, 02:04:08 PM »
Admins have ignored my deletion request - if you're not going to delete my account then don't have the option there please.
« Last Edit: March 15, 2011, 08:02:46 PM by None »

Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
Re: How to start game programming
« Reply #11 on: October 11, 2009, 03:18:20 PM »
A good script to get started with (IMHO) is KillMonster, the reason for this is because the game itself is pretty simple and with only an hour or so of looking though the code can you see all that goes on with a web game.

the site hotscripts.com should have a copy of the game. Beware though I think the original version does have some exploits via SQL injection so I wouldn't run it for public consumption ;)

Creating online addictions, one game at a time:

Offline Argonisius

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: How to start game programming
« Reply #12 on: October 11, 2009, 03:22:54 PM »
Ok. I have two more questions:
1) How can I add some image into the database? I must make some special settings in the db?

2) I read, that function mysql (used in tutorial) is non-actual and today is better to use mysqli. Is possible to only change the name of function in rpg game tutorial, or I must rewrite it all?

Offline travo

  • Level 18
  • *
  • Posts: 186
  • Reputation: +2/-0
    • View Profile
Re: How to start game programming
« Reply #13 on: October 12, 2009, 01:24:52 AM »
Ok. I have two more questions:
1) How can I add some image into the database? I must make some special settings in the db?

2) I read, that function mysql (used in tutorial) is non-actual and today is better to use mysqli. Is possible to only change the name of function in rpg game tutorial, or I must rewrite it all?

To add images to database, I think yu would use a blob column. But why would you want to enter an image into the database. You dont want your database to be geting a flogging just because people want images.Just save them on the server.

As for mysqli, I heard you have to use prepared statements, and also from what Ive heard, they are a pain in the arse... But only the query functions shouldneed to be rewritten, the rest should be ok.

Offline dbest

  • Game Owner
  • Level 20
  • *
  • Posts: 211
  • Reputation: +3/-0
    • View Profile
    • Tennis Masters
Re: How to start game programming
« Reply #14 on: October 12, 2009, 03:34:04 AM »
Ok. I have two more questions:
1) How can I add some image into the database? I must make some special settings in the db?

2) I read, that function mysql (used in tutorial) is non-actual and today is better to use mysqli. Is possible to only change the name of function in rpg game tutorial, or I must rewrite it all?



As for mysqli, I heard you have to use prepared statements, and also from what Ive heard, they are a pain in the arse... But only the query functions shouldneed to be rewritten, the rest should be ok.

With mysqli, you dont have to use prepared statements, but you can make use of them if you wish.

ST-Mike

  • Guest
Re: How to start game programming
« Reply #15 on: October 12, 2009, 09:14:29 AM »
Admins have ignored my deletion request - if you're not going to delete my account then don't have the option there please.
« Last Edit: March 15, 2011, 08:02:40 PM by None »

Offline ignace

  • Level 3
  • *
  • Posts: 8
  • Reputation: +1/-0
    • View Profile
Re: How to start game programming
« Reply #16 on: November 30, 2009, 10:06:39 AM »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal