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)
How do you make browser based games?
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
-
- 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?
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.
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.
Re: How do you make browser based games?
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.
- 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?
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
*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
Re: How do you make browser based games?
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?
- 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?
I'm pretty sure that you can.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?
Re: How do you make browser based games?
OK! One more question :
What if I want to make something like (NSFW so it's spoiled) :
Can I still use Choice Of Games?
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?
- 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?
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
*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
Who is online
Users browsing this forum: No registered users