gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS homebrew announcements > LOCKJAW: An Accurate Tetris Simulator

#117154 - tepples - Thu Feb 01, 2007 11:49 pm

The Soviet Mind Game was invented by Russian programmer Alexey Pajitnov in the mid-1980s and sold under the name Tetris. From 1988 until 2000, various Tetris products had vastly different control feels and rotation systems. The Tetris Company standardized the games sold under the Tetris mark starting with Tetris Worlds (2001), but some of the changes proved controversial, especially the new infinite spin play mechanic.

LOCKJAW is a configurable implementation of the single-player Soviet Mind Game. Its 20 options can be configured to emulate at least Tengen Tetris, Sega's arcade Tetris, NES Tetris, Game Boy Tetris, The New Tetris, Quadra, Tetris The Absolute The Grand Master 2 PLUS, TOD (without the distortion effects), several modes of Tetris Worlds, and Tetris DS, along with various combinations not yet realized in a Tetris product. Don't like infinite spin or the T-spin triple? Turn them off. Think 8 next pieces are too many? Turn it down. Want faster or slower sideways motion? You can. Want to try the challenge of a low ceiling? You can.

LOCKJAW is available for Microsoft Windows, Mac OS X, Game Boy Advance (since 0.26), and Nintendo DS (since 0.30 by request from owners of SLOT-1 flash cards).

Learn more about LOCKJAW
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#117158 - dantheman - Fri Feb 02, 2007 12:35 am

Sweet! Until now, I wasn't even aware that a GBA version existed, and I thought that LJ: The Overdose was the only tetromino-based game you made for the GBA. Glad to see I was wrong, and it's good to see the NDS version appearing.

#117181 - Darkflame - Fri Feb 02, 2007 2:34 am

Nice.
My personal Tetris favorate was "TetrisDX" on the GBC.
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.

#117212 - 0xtob - Fri Feb 02, 2007 11:46 am

I thought you were kidding when your signature said you were merging Lockjaw GBA and AXE into the DS version.

I may be blind, but I had some trouble finding it on your page, until I realized that all versions are in the same zip file and that the list entitled "Previous Versions" also contains the current version.

I'll have a longer train trip today so I'll have some time to figure out how exactly I like my Tet ... erm, russian Tetromino mind game to behave.

Do you have any plans on a multiplayer version by the way?
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net

#117224 - tepples - Fri Feb 02, 2007 2:55 pm

0xtob wrote:
Do you have any plans on a multiplayer version by the way?

Depends on when sgstair gets some sort of Ni-Fi library out. Not everybody has a battery-powered access point.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#117271 - zzo38computer - Sat Feb 03, 2007 12:12 am

I like this game, it has many options to change, including things I didn't see in other games.

I think the GBA/NDS version needs a few more options, such as pausing at the end so that you can see your score, and the starting speed and how fast it can increase the speed.
_________________
Important: Please send messages about FWNITRO to the public forum, not privately to me.

#117320 - tepples - Sat Feb 03, 2007 8:25 pm

Updated.

zzo38computer: Your requests have been added to todo.txt.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#117443 - compacho - Sun Feb 04, 2007 10:03 pm

Flippin sweet! Bob knows I just can't get enough of tetris :)

#117544 - STAKED - Mon Feb 05, 2007 2:56 pm

Kudos, wonderful piece of homebrew. This one will be replacing Tetris DS on my M3 Simply from now on.

#117556 - Mrshlee - Mon Feb 05, 2007 6:26 pm

Fantastic work, I gave it a good few hours of play list night on my DS :)
_________________
MrShlee.com
Projects
Dev-Scene
MyTechpedia

#117592 - HyperHacker - Mon Feb 05, 2007 10:32 pm

STAKED, I sure hope you meant to say "my official Tetris DS game card".
_________________
I'm a PSP hacker now, but I still <3 DS.

#117700 - Dan2552 - Tue Feb 06, 2007 6:54 pm

HyperHacker wrote:
STAKED, I sure hope you meant to say "my official Tetris DS game card".


Of course he meant that! What else could he mean :rolleyes:

#117720 - bob_fossil - Tue Feb 06, 2007 10:40 pm

This may be a really bad idea in practice but could you feed the joypad input into the AXE code thats running on the bottom screen? The soundtrack gets a bit boring after a while. :)

#117735 - Lick - Wed Feb 07, 2007 12:35 am

STAKED wrote:
Kudos, wonderful piece of homebrew. This one will be replacing Tetris DS [on] and my M3 Simply from now on.

_________________
http://licklick.wordpress.com

#119955 - zzo38computer - Tue Feb 27, 2007 10:11 pm

Maybe you should add a Bastet option to the randomizer option.
_________________
Important: Please send messages about FWNITRO to the public forum, not privately to me.

#119970 - tepples - Wed Feb 28, 2007 12:25 am

zzo38computer wrote:
Maybe you should add a Bastet option to the randomizer option.

Show me the algorithm for Bastet, and I'll consider it.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#119978 - Zed0 - Wed Feb 28, 2007 1:10 am

Any chance of intigrating a tetriNET client into this?
_________________
__Zed0__
FlasheMe'd Silver DS - GBAMP-CF - 512MB CF Card - R4DS - 2GB Micro SD Card

#119990 - zzo38computer - Wed Feb 28, 2007 2:51 am

tepples wrote:
zzo38computer wrote:
Maybe you should add a Bastet option to the randomizer option.

Show me the algorithm for Bastet, and I'll consider it.

http://fph.altervista.org/prog/bastet.shtml

Of course, since you can hold pieces in Lockjaw, you will have more options than normal Bastet because you can save pieces for when is better. Of course, you can also play without holding the pieces if you want to play like older games.
_________________
Important: Please send messages about FWNITRO to the public forum, not privately to me.

#119998 - tepples - Wed Feb 28, 2007 5:41 am

Zed0 wrote:
Any chance of intigrating a tetriNET client into this?

Probably not yet. Supporting the powerups, the wider playfield, and other differences between tnet and Tetris would take a lot of coding. I also wouldn't be able to get in much testing on the bus like I normally do.

zzo38computer: I have reduced the Bastet randomizer to pseudocode and added it to TODO.txt. Right now implementing Bastet isn't exactly high priority, but patches against the LJ source are welcome.
Code:

Evaluate a well:
  Set score to 0
  Clear lines and add 5000 to score for each line cleared
  For each column, find the height of the highest block
  For each column, subtract 5 times the height of the highest block from score
  Return the score

Evaluate all hard drops:
  Make a list of scores per tetromino shape
  For each tetromino shape:
    Set tetromino's score to -inf
    For each orientation:
      For each horizontal position:
        Make a copy of the current well, called temp
        Hard-drop the tetromino at this place in temp
        Evaluate temp
        If evaluation is best so far for this tetromino:
          Set tetromino's score to evaluation
  Return the list

Choose tetromino:
  Evaluate all positions
  Break ties randomly by adding a perturbation, chosen uniformly in [-2..+2], to each score
  Sort (tetromino, score) pairs by their score, lowest first
  Choose a random number in a geometric distribution
  ([0] prob 3/4, [1] prob 3/16, [2] prob 3/64, etc.)
  Return the tetromino at this point in the list

_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#121531 - TheChuckster - Mon Mar 12, 2007 10:35 pm

Can it simulate Ti calculator ZTris? That's the most fun Tetris clone I've played.

#121537 - tepples - Tue Mar 13, 2007 12:09 am

It depends. What kind of ceiling height, speed curve, entry delay, rotation system, lock delay, movement speed, etc. does that version use?

But I have updated LJ with an option that allows for the wider 12-column playfield familiar to tnet players.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#122102 - zzo38computer - Sat Mar 17, 2007 12:56 am

I have 2 new ideas for DS version:

  • You can push the buttons to change the drum patterns
  • You can play with one field on each screen and the buttons control both at same time, either you can do independent or versus mode

_________________
Important: Please send messages about FWNITRO to the public forum, not privately to me.

#129577 - tepples - Wed May 23, 2007 9:45 pm

Version 0.36 is out now, from the same place.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143665 - tepples - Thu Oct 25, 2007 1:57 am

As is version 0.39.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143670 - AXYPB - Thu Oct 25, 2007 3:23 am

I suggest that explanations of options are displayed in the touch screen as the user is changing them. I imagine they would be confusing to casual players who aren't privy to every single nuance of Tetris. Also, the touch screen and music don't turn off when the screen is closed.
_________________
I don't know what it stands for either

#143674 - Dood77 - Thu Oct 25, 2007 5:58 am

You know, what would be really cool is ?ber-customization with LJ. Like being able to make your own themes for the tetriminoes and backgrounds and such, so as to make it like your favorite tetris game. And even cooler would be the customization of pieces, like adding in some or all of the pentominoes. These configurations could be saved in a single standardized filetype, so we could trade 'em around. Gotta catch 'em all!
But, thats why you're only on version 0.39, right?

And while you're at it, hows about giving me all 63 of Jupiter's moons on a stick? :P
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#143766 - tepples - Thu Oct 25, 2007 10:00 pm

AXYPB wrote:
I suggest that explanations of options are displayed in the touch screen as the user is changing them.

Good idea, but where would they fit on a GBA screen?

Quote:
Also, the touch screen and music don't turn off when the screen is closed.

Noted in todo.txt.

Dood77 wrote:
You know, what would be really cool is ?ber-customization with LJ. Like being able to make your own themes for the tetriminoes and backgrounds and such, so as to make it like your favorite tetris game.

You mean like the skins in the PC version?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143774 - GoopyMonkey - Thu Oct 25, 2007 10:35 pm

tepples wrote:
Good idea, but where would they fit on a GBA screen?


Perhaps take a leaf out of DragonMinded's book and have the explanations shown fullscreen when Select is held?
_________________
My favourite DS apps:
GBAMP Multiboot
Colors!
jEnesis

#143806 - HyperHacker - Fri Oct 26, 2007 6:47 am

zzo38computer wrote:
You can play with one field on each screen and the buttons control both at same time, either you can do independent or versus mode
Interesting. You could move both falling pieces at once, or separately:
#1: Left/right move, Down drops, A/B rotate.
#2: L/R move, Up (or touch, Start, mic tap, whatever) drops, X/Y rotate.

It'd be interesting to see how well people do at that. Actually that just gave me another fun idea; save replays like Mario Kart games do. AFAIK they record the random seed and which buttons were held on each frame, just like emulator movies. A more memory-efficient method might be to record which buttons were held and for how many frames (so 60 frames of not holding anything generates 0,60, not 0,0,0...). Feeding that back into the input handler with the same random seed should replay the game. Then you save the files to disk and people can trade them.
_________________
I'm a PSP hacker now, but I still <3 DS.

#143822 - Darkflame - Fri Oct 26, 2007 11:25 am

Sounds interesting.

Kinda does for Tetris what "Superstar Saga" did for platforming.
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.

#143828 - tepples - Fri Oct 26, 2007 1:03 pm

HyperHacker wrote:
Actually that just gave me another fun idea; save replays like Mario Kart games do.

Have you tried the PC version?

Quote:
Then you save the files to disk

Would this also be a PC/DS exclusive feature not made available on GBA, like the explanations of the options?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143838 - AXYPB - Fri Oct 26, 2007 4:48 pm

There doesn't seem to be a way to reset the game to the options menu or set the initial drop speed. I like to play 20G at the start once in a while.
_________________
I don't know what it stands for either

#143847 - tepples - Fri Oct 26, 2007 7:59 pm

AXYPB wrote:
There doesn't seem to be a way to reset the game to the options menu

Press up several times. But the next version will have a button to cause instant game over from within the pause menu, like holding Esc on the PC version.

Quote:
or set the initial drop speed. I like to play 20G at the start once in a while.

For 20G at the start, set the speed curve to "Death".
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143858 - HyperHacker - Fri Oct 26, 2007 9:15 pm

tepples wrote:
HyperHacker wrote:
Actually that just gave me another fun idea; save replays like Mario Kart games do.

Have you tried the PC version?
Nope.

Quote:
Quote:
Then you save the files to disk

Would this also be a PC/DS exclusive feature not made available on GBA, like the explanations of the options?
It doesn't have to be if the game is run on a GBA-slot device with a memory card slot.
_________________
I'm a PSP hacker now, but I still <3 DS.

#143865 - tepples - Fri Oct 26, 2007 10:16 pm

HyperHacker wrote:
tepples wrote:
Would [features involving save to disk] also be a PC/DS exclusive feature not made available on GBA, like the explanations of the options?

It doesn't have to be if the game is run on a GBA-slot device with a memory card slot.

I'd have to keep the game small enough to multiboot, so that 1. it can run on GBA Movie Player and 2. the ASICs won't get confused when trying to access the program from NOR/RAM and the memory card at once. More importantly, as I understand it, people expect GBA homebrew programs to be able to run on a pure NOR device such as F2A, EFA, SZCard, or the EZFlash V 3-in-1 expansion that a lot of SLOT-1 card owners buy to add GBA capabilities. Is there a guide to making sure that GBA SRAM using the FCSR driver is properly backed up on each major card?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#146050 - tepples - Wed Nov 28, 2007 12:19 am

LOCKJAW 0.40 is out with several GBA- and DS-specific changes. Notably, I've ditched that questionably-readable Precious Mono (the mbmenu font) for Picken Sans (the RAC font) in the options, and the DS version has sound effects.

Full change log and download link
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#146325 - AXYPB - Sun Dec 02, 2007 8:23 pm

Link seems to be broken at the moment.
_________________
I don't know what it stands for either

#146330 - tepples - Sun Dec 02, 2007 9:31 pm

Yes, tetrisconcept.com is down for an upgrade, but the program is still available from my web site.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#150385 - tepples - Sun Feb 03, 2008 3:42 pm

0.42 is out (download, changelog)

zzo38computer wrote:
I think the GBA/NDS version needs a few more options, such as pausing at the end so that you can see your score, and the starting speed and how fast it can increase the speed.

As of 0.42, the DS version has a result screen after Game Over. To get this onto the GBA, we'd have to eliminate three lines of text from the result screen.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#150410 - El_Posible - Sun Feb 03, 2008 11:26 pm

Just tried this out for the first time ever (DS version), and I really like it. Whenever I think of Tetris, I usually imagine the GB version and the accompanying Russian music... so this is very nostalgic. All the customization is nice.

Thanks tepples.

#164922 - Icehawk78 - Mon Dec 01, 2008 8:41 pm

Not sure if you still check out this place, or just the Tetris Concept board. I had a few additional ideas. Many of these ideas have been gratuitously stolen from StillAliveDS, so if needed, you could probably look there to see how they work.

1) Count me as a vote for DS Skin Support. Custom skins could be loaded from a folder, similar to how I assume you do it for the PC.

2) Another vote for button configurations. Assuming that's added, it'd ideally be stored in an external config file, so that it was remembered.

3) Vote for saving a game configuration as a custom gimmick, with the ability to name it. Design could be an option under the Game menu for "Save current options" and then display a naming dialog? Backend would be another folder that stores all Gimmicks (including built-in ones).

4) DS Specifics:

A) Allow stylus use in menu. (Not major, but would be nice.)
B) L/R to change pages in options, rather than A/B - allow A/B to change current selected option. Wraparound up on topmost menu option/down on bottommost menu option, rather than shifting to the next page.
C) Display more detailed info of selected option on top screen.
D) Option to select which screen to play on, when playing.
E) Ability to have a double-height well, spanning both screens.


5) (Less likely to be done, but would be awesome) Implementation of extra features available in the game "Kevtris" for Windows Mobile phones.

These consist of four things, mostly:

A) Pentominos can be optionally used.
B) New garbage mode - garbage spawns a random number (3-8, I think?) of garbage blocks
C) Different scoring mode which allows for garbage blocks to count as "bonus" points (I can check, but I think it's something like 100pts per garbage block cleared, in addition to whatever the line itself would be worth).
D) An extra "slider" block, which is a 1x1 block with an arrow that can be rotated to point all four directions. When it lands or is pushed into a block, it moves all contiguous individual blocks one in the direction the arrow was pointing. (Obviously, optional)

Falling example:
Code:

......t.<.. ......t<... ......t....
.llllttt... .llllttt... llllttt....


Push example:
Code:

......t.<.. ......t<... .....t.....
.llllttt... .llllttt... .llllttt...


==========

I'm aware this is a huge list - not complaining at all, and I'm very impressed with what's already there. This is just a list of every possible thing I could think of to add. If these were all added, I'd have literally nothing else to add, other than a hearty "Thanks", which you very much deserve.

#164923 - Darkflame - Mon Dec 01, 2008 10:51 pm

Some nice ideas there, its already excelent though.
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.

#164924 - Icehawk78 - Mon Dec 01, 2008 11:22 pm

Darkflame wrote:
Some nice ideas there, its already excelent though.


Oh, certainly. Just listing out my initial thoughts past the general "Wow, awesome."