Jump to content

Recommended Posts

Before I even try I would like to know if its possible to make a small game based on sessions? The idea is to create a character then put starting data into a session that is maintained till the browser is closed or they log off the game and the session destroyed. It sounds like it would work but I don't want to put in the effort unless its possible to do something like this.

Link to comment
https://forums.phpfreaks.com/topic/224856-can-this-be-done/
Share on other sites

Well the need comes from all the work Id have to put in the game if I used mysql or the like. I have already created a text based game before and it was a lot of work and the end result wasn't what I expected. I was hoping with this new game to do the things I didn't do in the last one but I have so much to learn and I am already so far behind in what I see other games doing nowadays it makes me want to give up learning php but I want to learn as much as I can to do this in a short time to. I also thought it would be unique.

Link to comment
https://forums.phpfreaks.com/topic/224856-can-this-be-done/#findComment-1161440
Share on other sites

Well the need comes from all the work Id have to put in the game if I used mysql or the like. I have already created a text based game before and it was a lot of work and the end result wasn't what I expected. I was hoping with this new game to do the things I didn't do in the last one but I have so much to learn and I am already so far behind in what I see other games doing nowadays it makes me want to give up learning php but I want to learn as much as I can to do this in a short time to. I also thought it would be unique.

 

I understand what you're saying (kind of) but I was looking for more of a technical answer as to why you want to use sessions.

Link to comment
https://forums.phpfreaks.com/topic/224856-can-this-be-done/#findComment-1161446
Share on other sites

The technical answer is I don't know how I can learn what I need to know and I'm not sure if I'm smart enough to understand what I need to know. I know a lot of things today are OOP and I'm having a hard time understanding how to use it I know some basics but that's it and that's from what I learned on this forum. Hope that answers your question. Thanks guys for the reply's.

 

Link to comment
https://forums.phpfreaks.com/topic/224856-can-this-be-done/#findComment-1161450
Share on other sites

The fact of the matter is you can store your data anywhere you choose: sessions, cookies, database, flatfile, etc. It all depends on how you want to use that data: how much data will there be, do you need multiple tables of data, does the data need to persist, etc. How you use the data will determine the best format of where it should be stored.

 

In fact, I would say, it doesn't matter where you store the data for your game at all. If you di it right, you can change where it is stored at any time.

Link to comment
https://forums.phpfreaks.com/topic/224856-can-this-be-done/#findComment-1161650
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.