Asobi Devlog #16
Hello everyone, welcome to Devlog #16 of Asobi!
So, I just started working on the new game, the Clicker.
Code Refinement
Okay, so talking about the updates, I did some code refinement.
I mean, I just cleaned up some code in the old game.
Nothing major, but I thought it would be better to clean things up before moving forward.
Clicker Game
And yeah, I have started working on the Clicker game.
Though it looks too empty right now, I have only worked on the HTML and JavaScript part for now.
I guess the main thing I worked on this time was working on the precision.
Precision Problem
I was trying different ways to count the clicks, and I was facing an issue with maintaining the precision.
I was not able to get anything more precise than two digits.
For example, something like:
3.7
After the 7, I could not really attain any significant number.
But I did search online and looked at other similar games and found out about the performance.now() in JavaScript, which I didn’t know about before.
So yeah, that was a lesson for me as well. ( ̄▽ ̄)ゞ
Now I can use it to get much more precise timing for calculating the clicks per second.
10 Seconds Challenge
For now, I have selected only 10 seconds of time in this game
During those 10 seconds, the user can click the button as many times as they can, and the game will count their CPS (Clicks Per Second).
Though this is just the beginning, I’m planning to add lots of things in the future.
Current Progress
I’ll still add a screenshot of the current progress.
Though, honestly, it will be quite empty and blank right now. =D
But yeah, this is just the beginning of the Clicker game.
That’s It!
Yeah, that’s all for this devlog!
If you think I did not explain something properly, or you want to know anything about the game, then please do tell me in the comments.
I’ll try my best to explain it there.
Thank you so much for reading!
Have a nice day! (≧▽≦)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.