Mathblitz banner

Mathblitz

9 devlogs
30h 49m 25s

BEFORE TESTING: If you want to immediately get into the game, play the solo survival gamemode. This way, you won't have to wait for the websocket to spin up. Thanks!
This is Mathblitz, the competitive mental math game. Let me warn you: the applic…

BEFORE TESTING: If you want to immediately get into the game, play the solo survival gamemode. This way, you won’t have to wait for the websocket to spin up. Thanks!
This is Mathblitz, the competitive mental math game. Let me warn you: the application is incredibly janky right now. When you log in, make sure to reload the page and log in again. I don’t know why. You can play, but I suggest getting on with a friend or you risk waiting in queue forever (no one plays this game right now)!

Demo Repository

Loading README...

Aidan Chang

Shipped this project!

Hours: 30.82
Cookies: 🍪 365
Multiplier: 11.84 cookies/hr

I built a competitive mental math game called Mathblitz. Every single step of the way was challenging, but I’m proud that core gameplay works. There are some database issues that I have to fix soon, but I’m overall proud!

Aidan Chang
  • Added more stat displays on the profile page
  • Made things update properly in the database (friend count, wins/losses)
Attachment
0
Aidan Chang
  • successfully cached each page
  • added a levelling system that is database persistent
  • my score balancing is waaaayy off (5k for each level but one game is 113k) so that’s something that i need to fix
Attachment
0
Aidan Chang
  • Used Tailwind CSS to center the text on every screen
  • Used TanStack Query to render the the database and cache it in order to save database queries
  • Added a back button onto every screen
  • Used Rechart in order to add a graph of both user’s scores at the end of the game
  • Turned the timer into a smooth progress bar
    For the future, I probably want to cache each page when a user visits it for like an hour so that it doesn’t have to load every time and then figure out why it takes like 10+ seconds for a game to load when the database filling finishes in like 2 seconds
0
Aidan Chang

I added the ability to search up users by their username while also being cost efficient in terms of database queries

0
Aidan Chang

Added functionality for sending and accepting friend requests as well as seeing accepted friend requests
most just did stuff for friend requests

0
Aidan Chang

I started to flesh out the profile page, adding the basic stuff with fields from the database. i also added some functionality for other users and viewing their profile, but i haven’t added a way to search other users yet so i cant show that yet lol

0
Aidan Chang

for this update:

  • finished adding to the database after a game is finished
  • reorganized the frontend into the rough format that i want (still need to fix each page)
  • added matchmaking for ranked gamemode
  • added combo scoring during the game
0
Aidan Chang

Here’s what I have for this update:

  • finished a basic version of the actual gameplay, from start to finish (see video)
  • separated the game react page into 2 distinct components, the active game and custom lobby (the matchmaking will take place in the main lobby and not a game lobby)
  • implemented the scoring
  • TODO: combo scoring + update magnifiers for scoring (1000 looks a lot better than 1)
    - both game send at different times, so i have to fix that too
Attachment
0
Aidan Chang

Now that the deadline got extended, I might be able to finish this project!
This is mathblitz, a competitive mental math game that I plan on making. Here’s what I have so far:

  • websocketing
  • logins connected with Prisma
  • really bad UI
  • frontend-backend interaction that works
Attachment
Attachment
0