DEV Community

Cover image for What do you think of my HTML5 game?
Shubham Jain
Shubham Jain

Posted on

What do you think of my HTML5 game?

Past two weeks, I have been working on an HTML5 puzzle game: Eight Colors. The rules of the game are pretty simple but it does get a little challenging after the first few levels. It was super-fun to design and implement this game (not so fun though hacking around quirks of iOS Safari 😅)

Let me know what you folks think. Happy to answer any question if you have.

Top comments (48)

Collapse
 
diballesteros profile image
Diego (Relatable Code) •

The look and feel is nice! Especially the added sounds. Makes it feel "clicky" which is a good thing. Good job.

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • • Edited

Very hard to use on mobile as the screen scrolls when you swipe up and down - making it very hard to make vertical shifts. I also found that the page would sometimes go into a 'pull down to refresh' when trying to shift a column downwards.

On desktop, a better control system would probably be arrow keys to move and shift+arrow keys to shift the rows and columns

Collapse
 
shubhamjain profile image
Shubham Jain •

Screen shouldn't scroll. Can you tell me your mobile browser?

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • • Edited

Won't even load on Chrome right now - gets stuck in a redirect loop. Had this happen on Firefox too (desktop). Something seems amiss

Thread Thread
 
posandu profile image
Posandu •

Hmm. It works fine for me in Firefox

Thread Thread
 
jonrandy profile image
Jon Randy 🎖️ •

I've had the redirect loop thing a few times on both browsers. Hard to reproduce though

Thread Thread
 
posandu profile image
Posandu •

oh

Collapse
 
jonrandy profile image
Jon Randy 🎖️ •

Firefox

Thread Thread
 
shubhamjain profile image
Shubham Jain •

And your phone model?

Thread Thread
 
jonrandy profile image
Jon Randy 🎖️ •

Google Pixel 2

Collapse
 
kspeakman profile image
Kasey Speakman •

It looks great and is fun! Couple of UX suggestions:

On my window configuration (1 window in each corner, 4 total, on a 4k monitor), controls were below the view port and no scroll. Possible resolutions.

  • Allow vertical scroll, seems like this would be required for mobile anyway
  • Move controls to side if space available
  • Change layout to use less space

When it loads the next puzzle, there should be a transition. Some noticeable change on the puzzle area. Could be an quick animation or just resetting the highlighted row/col back to default. It took me a second to realize the puzzle was different after I hit next puzzle.

Touch/mouse controls. Example: when the mouse hovers over a piece, that should be the highlighted row/col. When they drag, that should be the direction the row or col moves. I'm sure I would get used to the keyboard controls if I played a lot, but they were awkward for me. Even up to the finish I was mistakenly shifting a row/col before I selected it. Even as a keyboard/mouse gamer. Once you get mouse controls working, there won't be a need to display the row/col highlights unless someone starts using the kb controls.

Make the timer optional. For me puzzles are relaxing. Nothing kills that like a timer. When the timer is off, use alternate scoring goals like minimum number of moves. It's probably a good idea to do multiple goals anyway to cover different kinds of players.

In all this is a great game with a lot of potential. I can imagine larger grids, wild card colors, fixed pieces that can't be moved. And other kinds of mechanics to keep the puzzles interesting. I'd probably spend too much time playing it.

Collapse
 
shubhamjain profile image
Shubham Jain •

I have made fixes that should address most of the issues you listed. Thank you for the feedback.

Regarding timer optional, I will look into it.

Collapse
 
auroratide profile image
Timothy Foster •

The game is fun and looks really good! I suggest adding the #showdev tag as well, as it's meant for showcasing cool things you've built.

My biggest feedback is it would be cool if you could manipulate the grid with the mouse kind of like how you can swipe on a phone.

Collapse