Log In  

Latest version:

Cart [#51925#] | Code | 2018-04-23 | No License | Embed
6

Working on a Tetris clone... Getting closer...

Still to do:

  • Special blocks (ideas: bombs, arrow bumps (shifts board left/right/up clearing space))

Title screen progress:

Cart [#51790#] | Code | 2018-04-19 | No License | Embed
6

Potential song for the game:

Cart [#51740#] | Code | 2018-04-18 | No License | Embed
6

Older versions:

Cart [#51847#] | Code | 2018-04-21 | No License | Embed
6

Cart [#51825#] | Code | 2018-04-21 | No License | Embed
6

Cart [#51774#] | Code | 2018-04-19 | No License | Embed
6

Cart [#51753#] | Code | 2018-04-18 | No License | Embed
6

Cart [#51723#] | Code | 2018-04-17 | No License | Embed
6

P#51619 2018-04-15 00:50 ( Edited 2018-04-15 04:50)

Nice!

I tried to give up and stack a giant tower just to see the lose condition and instead of losing it just rapidly started placing blocks at the top, racking up the stats. :)

Tiny request: I'm used to the up arrow being another rotate key. Would be easy to accept both.

P#51620 2018-04-15 02:02 ( Edited 2018-04-15 06:02)

This is great! I love the control scheme, please don't get rid of the instant drop for up key, or at least give an option to change it for others who don't like that.

My only complaint is the drop speed when holding the DOWN key. It's too fast and when you release the downkey it continues for just a moment longer than one would expect. My theory is that you are prioritizing DOWN movement over left and right movement. So I believe the game is probably checking to move DOWN first and then any left or right movement. Simply reverse the order so the player's left and right movements are checked before down is and also make sure to remove the extra speed from holding down the downkey sooner, either by slowing it or bringing it to a momentary halt after the key is released.

P#51653 2018-04-15 20:40 ( Edited 2018-04-16 00:40)

Thanks guys :)

Checkout the new update. Still more improvements to come... score is next.

So I think I've appeased both of you. Press start to adjust the UP button behavior. It defaults to hard drop but can be configured to rotate.

Yeah, the soft drop speed is a bit fast. Compare it to the original Tetris (this may run a tad fast):
https://jsnes.org/run/Tetris%20(U)%20%5B!%5D.nes

It's kind of fast in the original as well. If you look at the code, I apply LEFT and RIGHT first and will also apply DOWN if pressed at the same time. Anyways, see if you get used to the soft drop. I've just learned to push it a little gingerly. I could make it move the piece up one once you let go of DOWN.

P#51661 2018-04-16 00:31 ( Edited 2018-04-16 04:31)

In the one you posted, the block STOPS when you release the softdrop key and sort of hovers there for a moment. That's the sort of behavior I was expecting.

P#51670 2018-04-16 04:25 ( Edited 2018-04-16 08:25)

I see no problem at all with the fast drop when pressing down, this feels like Game Boy Tetris a lot, which is great.

Looking forward to see how you finish it!

P#51684 2018-04-16 09:41 ( Edited 2018-04-16 13:41)

Lots of updates!

  • Implemented the soft-drop pause after releasing (depends on current fall speed)
  • Press START to toggle UP behavior (enable UP to rotate or switch back to UP to hard drop). This setting persists across sessions.
  • Press START to toggle music. Setting persists.
  • Implemented score and high score. Uses the original NES scoring system (no T-spin bonuses, sorry). High score persists.
  • Implemented levels with different background per level
  • Implemented Game Over with restart
  • Implemented crazy Tetris animation

Have fun!

I'm going to start messing around with some different effects next. Title screen will come after that. Then, eventually, I'll implement P-TYPE where hopefully I'll begin to diverge from the standard Tetris format...

P#51775 2018-04-18 23:32 ( Edited 2018-04-19 03:32)

Suggestion: disable soft-drop after tile fell and new one appears, until I press "down" again.
As it is, the new tile can accidentally get dragged down and cause havoc.

For reference, look at the Game Boy version!

P#51813 2018-04-20 12:46 ( Edited 2018-04-20 16:46)

> Suggestion: disable soft-drop after tile fell and new one appears, until I press "down" again.

Thanks for the suggestion! I actually like the soft-drop to immediately re-engage :) I compromised and added a 1/3 second pause until the soft-drop re-engages. How's that feel? (See cart at the very top)

P#51823 2018-04-20 22:17 ( Edited 2018-04-21 02:17)

FYI: I've started working on "P-Type" but there's currently no difference between P and A types.

P#51926 2018-04-23 00:28 ( Edited 2018-04-23 04:28)

I compromised and added a 1/3 second pause until the soft-drop re-engages. How's that feel?

That's just perfect, works as good. I just needed time to release the drop key in case I didn't want to drop!

P#51935 2018-04-23 12:40 ( Edited 2018-04-23 16:41)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-08-19 09:35 | 0.042s | 2097k | Q:96