20 comments

[ 4.4 ms ] story [ 47.8 ms ] thread
Yes sure it doesn't work on mobile devices. In 2018 A. D.
It’s a hobby project that was intended to be desktop only. Unnecessary negativity here.
Second sentence of the article: "Mobile is currently not supported, as it requires a keyboard to play."
It isn't necessarily a trivial problem to solve either. Retrofitting a touch interface on to a game designed to be played with physical buttons doesn't always work out well.
I haven't checked the App/Play stores for Tetris-like games, so I'm sure that my suggestion to override the volume button as the rotate button in Tetris is probably old-hat. If it's not, then perhaps this is the key (excuse the pun) to providing it to the mobile world. Note, that the touch screen would be required to move the blocks left-right and accelerate down.
How difficult it is to add the virtual keyboard with 4 keys
(comment deleted)
Absolutely on the money here. I finished it for Desktop and was thinking of making it Mobile friendly, so I started reading on it and realized I designed myself into a corner because of support for touch interfaces. Learned that lesson. The simple solution would have been 4 buttons at the bottom of the page, but just wasn't as nice playing on mobile that way.
That's a desperately uncharitable comment to make. The project is open source, perhaps you could throw a few pull requests his way to assist in making it mobile friendly, or y'know fork:

https://github.com/ivailop7/IvoTetris

This comment breaks the site guidelines, which ask: "Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something."

If you would please review https://news.ycombinator.com/newsguidelines.html and follow the rules when posting here, we'd appreciate it.

Where did u find dismissal in my post? It has ZERO negative words.
(comment deleted)
Very inspiring. I am currently building a card game with Angular and socket.io.
I'm very happy to read your comment. It's the reason I decided to share the post. Good luck with the game, looking forward to playing it.
The game area is rendering off screen[0] for me in Firefox Nightly (63.0a1 (2018-08-27)) on macOS. Looks fine in Chrome and Safari.

Fun project. Watch out for TTC lawyers if it gets popular (:

[0] https://i.imgur.com/IdNUZVW.png

Hey! Thanks. I'll look into fixing it. When I was building the game, focus on the logic. Didn't give much thought on browser compatibility and mobile.
Same bug for Firefox 61.0.1 on Ubuntu 18.04
as an aside two player puzzle fighter was so addictive!
A lot of the same pieces falling after one another, sometimes 4 in a row. For deciding which pieces should appear, you should create an array with the 7 unique possibilites for pieces and then shuffle the array and go through all the 7 randomly-ordered pieces before doing the same process again. This guarantees all pieces appear consistently.