You are browsing as a guest. Sign up (or log in) to start making projects!

6h 6m 35s logged

Asobi Devlog #14

Hello everyone, welcome to Devlog #14 of Asobi!

So this time, I have tried to move almost everything to the backend.

Moving Everything to the Backend

Previously, things like the number generation, checking, score calculation, and results were handled on the frontend.

But that had a pretty obvious problem.

When I created this type of game previously, some people would simply console.log the random number and get the correct answer almost like i mean everytime.

And Some people even executed the saveScore function themselves (╥﹏╥)

So, to avoid that this time, I have moved almost everything to the backend.

The number generation, checking, score calculation, and other important game logic are now handled by the server in the backend.

Lets hope everything will be fair now (ᵕ—ᴗ—)

Best Score on Difficulty Levels

Along with that, I have also made some visual changes.

Previously, the best score or rather, the number of tries was displayed as plain text at a constant place .

Now, whenever you click on a difficulty level, your best result will be displayed at the bottom-right of that particular level label.
I will attach a image below , I guess thats the only image i can show for this update (ó﹏ò。)

It shows the lowest number of tries in which you have ever completed that difficulty level.

And obviously, the lower the number of tries, the better.

Points System

And I also wanted to make one thing clear.

Yes, this time I have used a points system instead of directly using the number of tries for the leaderboard.

Let me explain why.

Previously, when I made this type of game, I used the number of tries to determine the ranking.

For example, if the Beginner difficulty is from 1–10 and you completed it in:

  • 1 try → Rank 1
  • 2 tries → Rank 2
  • 3 tries → Rank 3
  • And so on…

But there was a problem with this system.

A lot of people were able to complete the lower-level difficulties in just 1 try.

This meant that there could be around 8 or 9 people with Rank 1 on some of the easier levels , it kinda made the rank 1 less special or look cheap tbh.

Technically, that was fair, but it didn’t felt quite right.

It was something like ,
Once you got Rank 1, there was also basically nothing more to achieve.

So this time, I implemented a points system.

The basic idea is:

Lower number of tries = More points

This gives players more room to compete instead of simply having multiple people stuck at the same rank and maybe also encouraging them to collect more points.

##Responsiveness
I will be honest about this , I am not really good at making sites responsive so i took the help of Gemini for making the site responsive.

That’s It!

I guess thats it,
So yeah, that’s basically what I have added this time.

Also,I thought of shipping it by today but there is another bug (sometimes the score is not being saved and it is requiring me to logout and login, i honestly havent still figured it out why its happening yet, But I am hoping to fix it soon and Also ship it soon.

I hope I was able to explain everything clearly.

If something was unclear, please tell me in the comments, and I will try to explain it again.

Thank you so much for reading, and have a nice day! =)

0
67

Comments 0

No comments yet. Be the first!