bogdaniel Posted August 19, 2009 Share Posted August 19, 2009 Hello i have a small question for a php game ... the part with resources how should be made? i mean for example i have wood and i get at lvl 1 600 how should i make that update can someone explain me please? Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/ Share on other sites More sharing options...
Daniel0 Posted August 20, 2009 Share Posted August 20, 2009 Your question is unclear. You'll have to elaborate if you want any useful answer. Read this HOWTO: http://catb.org/~esr/faqs/smart-questions.html Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/#findComment-902363 Share on other sites More sharing options...
bogdaniel Posted August 20, 2009 Author Share Posted August 20, 2009 i apologize what i wanted to ask was: In game development the resource system you know wood stone stuff like that you get let's say 3200 wood per hour or 6200 if you are a higher lvl on the wood cutter. How should i make this update? when the user logins? page refresh... this is what i wanted to know i've read on a website that most of the games use cron jobs to update the resources gained per hour .. Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/#findComment-902474 Share on other sites More sharing options...
Daniel0 Posted August 20, 2009 Share Posted August 20, 2009 i've read on a website that most of the games use cron jobs to update the resources gained per hour .. Well, then you have your answer, don't you? Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/#findComment-902509 Share on other sites More sharing options...
bogdaniel Posted August 20, 2009 Author Share Posted August 20, 2009 yes but ... i wanted to be sure ... if the cron job is the good choice or no Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/#findComment-902512 Share on other sites More sharing options...
plznty Posted November 21, 2009 Share Posted November 21, 2009 make it so that level is used in the calculation sum of generating how many wood you gain per hour. For example $increase = 0.1; $level = [GET LEVEL]; $MATH = $level * $increase; I think that was one of your questions, if cron jobs was the only answer you was looking for please click "Topic Solved" Quote Link to comment https://forums.phpfreaks.com/topic/171050-application-design-resources-for-a-game/#findComment-962318 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.