Alberto Alves Posted October 20, 2018 Share Posted October 20, 2018 Hello everyone, first post. Hope it will be helpful... I'm a new developer and managing to make my first visual novel. My framework was built on top of phaser and I'll expand it with some ready to use other phaser games framework. I wanna use a thing that many have seen in f2p games: a clock system that does not allow players to play once they have used all their credits and gives them credits for playing as time goes by. Clueless about how to implement it. I'm not sure if I'm in the right session but I think I am because I'm up to use some javascript code for it (if it works) but better with phaser I guess... Thank you all and sorry if I've made something wrong or my bad english Quote Link to comment Share on other sites More sharing options...
dark Posted October 25, 2018 Share Posted October 25, 2018 If you trust the client won't hack things, you could have something as simple as a timer that counts up and applies credits to a total on a regular basis, and a total that decreases as the currency is spent in game - depending how you want to implement it. If you don't trust the client you would want to look at a server that keeps track of those same things, and then work out how you wanted to deliver only the content that was available based on their purchases or progression etc. Quote Link to comment Share on other sites More sharing options...
mattstyles Posted November 14, 2018 Share Posted November 14, 2018 Never trust the client. This has to be done with a little more security in mind. Using SSL and attaching this logic via a server would probably be your best course of action. Unless you don't mind exploitation. Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.