JavaScript TAP clone

Started by Xenogenesis, September 10, 2011, 09:06:34 PM

Previous topic - Next topic

Xenogenesis

Hi,

I'm working an a JavaScript (HTML5) TAP game thats playable at http://blocks.solitairey.com. Right now its suuuuper prototypical (ugly interface that doesn't even display right in IE9, no win or lose animations, other ish) but the core gameplay should be solid. It's frame based, so its likely to run slower than actual TAP. (Originally it was time based, but replays were too annoying to get right without becoming gigantic files). There's also a halfassed Time Attack mode with SRS rotation, random generator and 0 lock delay, as well a couple "hidden" features (and I don't have the versus server running, so don't even try it you view-sourcers ) Anyway, I'm more than open to suggestions, criticism, or praise

About myself, I actually don't play much Tetris (only Rank 2 at TAP), but I am slowly trying to get better. Gaming wise I go out to fighting game tourneys whenever I can and play the DMC series. Besides that I just go in with coding and baking. So um... hi everyone I hope to have fun here!

DarthDuck

Hey your game is fun but how do I rotate the pieces?
Pyrrhonian disclaimer: If I use assertive language, then I only do so as a manner of speaking. I might say "the sun will rise tomorrow", but deep down, like anything else, I can never really know that. So if I

Xenogenesis

Quote from: DarthDuck
Hey your game is fun but how do I rotate the pieces?
Z/X are rotate clockwise/counterclockwise; you can also set the controls in the Controls menu.

DarthDuck

#3
Quote from: Xenogenesis
Z/X are rotate clockwise/counterclockwise; you can also set the controls in the Controls menu.

Ah that works now. But I would suggest making the up arrow double as right rotate for those of us who mostly use TetrisFriends. Welcome to the forums!

Edit: also control as left rotate if that doesn't interfere with any of the code, idk. But I find Control to be much easier to use although some disagree.
Pyrrhonian disclaimer: If I use assertive language, then I only do so as a manner of speaking. I might say "the sun will rise tomorrow", but deep down, like anything else, I can never really know that. So if I

randomtetrisnoob

If I am holding a key during the line clear delay (e.g. trying to DAS or rotate the next piece, or I just absent-mindedly forgot to let go of hard/soft drop), ALL of the following pieces will glitch (i.e. continuously harddrop, or rotate really quickly and continuously softdrop), effectively ending my game.

Xenogenesis

Quote from: DarthDuck
Ah that works now. But I would suggest making the up arrow double as right rotate for those of us who mostly use TetrisFriends. Welcome to the forums!

Edit: also control as left rotate if that doesn't interfere with any of the code, idk. But I find Control to be much easier to use although some disagree.
I'll add multiple buttons/control support.

Quote from: randomtetrisnoob
If I am holding a key during the line clear delay (e.g. trying to DAS or rotate the next piece, or I just absent-mindedly forgot to let go of hard/soft drop), ALL of the following pieces will glitch (i.e. continuously harddrop, or rotate really quickly and continuously softdrop), effectively ending my game.
Whats your browser/OS?

randomtetrisnoob


Xenogenesis

Oh haha I never planned to support FF < 4 since I figured anyone with FF would just autoupdate... I'll give it a whirl tomorrow though, I think I know what the issue is.

Kitaru

Quote from: DarthDuckAh that works now. But I would suggest making the up arrow double as right rotate for those of us who mostly use TetrisFriends. Welcome to the forums!

Edit: also control as left rotate if that doesn't interfere with any of the code, idk. But I find Control to be much easier to use although some disagree.
If you're trying to play a TGM-style game with an Up-to-rotate control scheme, you're probably going to have some difficulties. Anyway, the default role for Up would typically be a Sonic Drop.

@Xeno: I can't check your clone out right now since I'm on my phone, but does it also support the alt. CCW button?
<a href=http://backloggery.com/kitaru><img src="http://backloggery.com/kitaru/sig.gif" border='0' alt="My Backloggery" /></a>

Wojtek

#9
very cool. i like those hires graphics, and it runs smoothly.

about hidden features, only death mode works for me, and two other codes do not seem to work correctly.

sorry for offtopic but could you tell me how i control (view/remove/etc) information in dom storage? i use firefox, and don't see this anywhere in ui.

btw, you should post in on tetrisconcept too, more people interested in tgm there.

what would i like to changed/added:
-currently it blocks all browser shortcuts (including f11 to go to fullscreen), i hope this can be changed
-online leaderboard would be cool
-sounds
Recommended games:
NullpoMino
Tetris Online Poland

Xenogenesis

Quote from: Kitaru
If you're trying to play a TGM-style game with an Up-to-rotate control scheme, you're probably going to have some difficulties. Anyway, the default role for Up would typically be a Sonic Drop.

@Xeno: I can't check your clone out right now since I'm on my phone, but does it also support the alt. CCW button?

It supports Alt CCW now. You also remind me that I haven't implemented the secret grades.

Quote from: Wojtek
very cool. i like those hires graphics, and it runs smoothly.

about hidden features, only death mode works for me, and two other codes do not seem to work.

sorry for offtopic but could you tell me how i control (view/remove/etc) information in dom storage? i use firefox, and don't see this anywhere in ui.

btw, you should post in on tetrisconcept too, more people interested in tgm there.

what would i like to changed/added:
-currently it blocks all browser shortcuts (including f11 to go to fullscreen), i hpe this can be changed
-online leaderboard would be cool
-sounds
AI works now, I was doing something stupid. Versus.... won't be hidden when I have it running.

In FF I don't know if there's a builtin way of dealing with DOM storage, but with Firebug go to DOM tab, then localStorage.

Now it only blocks browser keys in game if you've mapped said key to a button.

I'm planning on online leaderboard, probably when I get the high scores menu not looking/working like a**. Sounds... maybe. I know its important in TGM, but HTML5 audio is still a terrible thing. I guess I could just use Flash for audio.

Thanks for all your suggestions. Keep them coming!

Rosti_LFC

The game feels pretty slick (probably due to lack of MAME input lag). If you added Death mode (publicly) and global leaderboards I'd definitely play it quite a lot.

As Wojtek said, I'd recommend crossposting this on TetrisConcept. There should be a fair few people there who will have comments.

Barneey

#12
Hey, thanks a lot for this great tetris game, i really like it, but i would really appriciate it if you swapped the colors on the L and J pieces, they seem to be reverse, causing me to mistake one from the other!!


edit: would also like to add that the game is awesome, keep it up!!!!!!

Boingloing

Barneey doesn't TGM have the opposite colors for L and J from srs?

g u r l g a m e r

Xenogenesis

#14
Pretttttttty sure L is orange and J is blue in TGM and guideline. But thanks for the complement!

What would you guys like from a versus mode? I'm just throwing this out as I honestly haven't given it any thought at all yet.

E: randomtetrisnoob, the line clear bug is fixed, at least in FF 3.6.22.