C++ or python won't help you very much for a browser based game |
|
I've been using these languages for quite some time now. I want to apply my skills by making a browser-based JavaScript game, albeit probably a simple one to start off with, but I want to be able to save the data (like any modern game has). Unless I'm mistaken, PHP is a server-side language that wouldn't save data on the player's machine. JavaScript has the FileScriptObject as part of the ActiveX, but I think I should stay away from that since it's proprietary and won't work in some browsers. |
|
Last edited by youssarian; 12-14-2009 at 05:25 AM.
Learn the art of lucid dreaming in a whole new way!
LD Count: 37 (35 DILD, 2 DEILD)
Hey Newbies! Did you read the main pages and the tutorials? It will help you immensely.
Zenventive: art, health, philosophy
You are dreaming!
C++ or python won't help you very much for a browser based game |
|
(\_ _/)
(='.'=)
(")_(")
If you need to store variables in your server, you could use AJAX or something to communicate with the server, and store the data in a database or something. It shuold be possible to do with Python, but I think it would be easier with PHP. |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
The thing is, PHP and Python would store the data on the server's side. I'm trying to find a way to save the information on the client side, so that I don't get all sorts of little and not-so-little saved game data on the server. (I use a webhost and I have limited disk space allotted to me.) |
|
Learn the art of lucid dreaming in a whole new way!
LD Count: 37 (35 DILD, 2 DEILD)
Hey Newbies! Did you read the main pages and the tutorials? It will help you immensely.
Zenventive: art, health, philosophy
You are dreaming!
Oh. Well, if you want to save data client side, then using cookies is your best bet. Like Ynot said. |
|
April Ryan is my friend,
Every sorrow she can mend.
When i visit her dark realm,
Does it simply overwhelm.
That's embarrassing. Somehow in my reading of replies I missed the cookie part. |
|
Learn the art of lucid dreaming in a whole new way!
LD Count: 37 (35 DILD, 2 DEILD)
Hey Newbies! Did you read the main pages and the tutorials? It will help you immensely.
Zenventive: art, health, philosophy
You are dreaming!
Cookies would work but can be a pain to implement since they are deleted every so often, so holding lots of data isn't always good. |
|
Bookmarks