How do you make browser based games?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
nerdy
Regular
Posts: 157
Joined: Sun May 12, 2013 4:48 pm
Contact:

How do you make browser based games?

#1 Post by nerdy »

Even though I have LOTS of projects on my plate, I was thinking in the far away future, I would like to create a browser-based game! But I have no idea how to even begin! Does someone know how?

To give you more details about the type of things I would like to do with a browser type game (so you can help me find out where to start) :

1. Have a login.

2. Have a save button.

3. Have purchases that send you to paypal to buy the in-game bonuses (note that it would never be required to buy stuff)
Visit My Game Company Blog (No Posts Yet) :

http://art-and-games.blogspot.com/

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: How do you make browser based games?

#2 Post by Asceai »

Here's a really, really generalised overview to hopefully provide you with a starting point for digging up more information.
Browser games have a frontend - typically written in html5+javascript (although it's not unheard of to use Flash or Java)- and a backend, which can be written in whatever your hosting provider provides. PHP is popular. It's a terrible language, but it's widely available and incredibly easy to get into.

When the player registers, hash their supplied password and store it in a database. To implement login, hash the provided password, check it against the hash assigned to that player in the database and if it matches establish a session.

For a save button, you can write state to HTML5 local storage - for keeping player game state on the player's machine - and/or store state on the server in a database somewhere.

For implementing purchases through paypal, paypal provides a RESTful API for implementing checkout. I haven't implemented this myself but they seem to have a good amount of documentation available. Other providers like Google Checkout and Amazon Payments provide similar things.

nerdy
Regular
Posts: 157
Joined: Sun May 12, 2013 4:48 pm
Contact:

Re: How do you make browser based games?

#3 Post by nerdy »

Thank you! Still , do you know of any engines for this? I think the one in the other visual novel engines sub-forum might work, but I might need to ask.
Visit My Game Company Blog (No Posts Yet) :

http://art-and-games.blogspot.com/

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How do you make browser based games?

#4 Post by trooper6 »

You have a big list of requirements and I don't know if the following two languages can do all of it (specifically the micro transaction stuff), but Twine and Choice of Games script are both browser languages and free.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

nerdy
Regular
Posts: 157
Joined: Sun May 12, 2013 4:48 pm
Contact:

Re: How do you make browser based games?

#5 Post by nerdy »

trooper6 wrote:You have a big list of requirements and I don't know if the following two languages can do all of it (specifically the micro transaction stuff), but Twine and Choice of Games script are both browser languages and free.

Can you add images to "Choice Of Games" games? :D
Visit My Game Company Blog (No Posts Yet) :

http://art-and-games.blogspot.com/

User avatar
peapodprincess
Regular
Posts: 52
Joined: Sat Jun 07, 2014 3:25 pm
Location: Pea Pod Principality
Contact:

Re: How do you make browser based games?

#6 Post by peapodprincess »

nerdy wrote:
trooper6 wrote:You have a big list of requirements and I don't know if the following two languages can do all of it (specifically the micro transaction stuff), but Twine and Choice of Games script are both browser languages and free.

Can you add images to "Choice Of Games" games? :D
I'm pretty sure that you can.

nerdy
Regular
Posts: 157
Joined: Sun May 12, 2013 4:48 pm
Contact:

Re: How do you make browser based games?

#7 Post by nerdy »

OK! One more question :

What if I want to make something like (NSFW so it's spoiled) :
Corruption of champions or TITS by Fexnoxo

Can I still use Choice Of Games?
Visit My Game Company Blog (No Posts Yet) :

http://art-and-games.blogspot.com/

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How do you make browser based games?

#8 Post by trooper6 »

I don't know how Choice of Games deals with creators using their engine to make 18+ games, you could always email them to ask.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: No registered users