NintendoAge http://nintendoage.com/forum/ -Sqooner [Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-16T00:31:13 -05.00 KittyFae 7
You'd be surprised how many people I've helped on various forums, who didn't say 'thanks'. To me, it was like you gave me a little Sudoku puzzle, it kept my mind occupied for a little while, and I love Tetris, btw. ]]>
[Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T23:42:39 -05.00 KittyFae 7 [Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T23:20:14 -05.00 KittyFae 7
TEOPPIPI
TKXPLIPY

Replaces the first 0 of 'Lines' with 0x46, listed above as 'DAS' ]]>
[Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T23:10:34 -05.00 KittyFae 7
TEVOAIIZ
TGEPPVEZ

Replaces the 'Level' with 0x46, listed in the code above as 'DAS'
Best I could do in a half an hour. ]]>
[Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T23:03:57 -05.00 KittyFae 7 [Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T21:24:54 -05.00 KittyFae 7
Which would you prefer? ]]>
[Hack] Request: Tetris + DAS Meter http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=159672 2016-03-15T19:54:10 -05.00 KittyFae 7
This code wasn't written by me and taken from this youtube video: https://www.youtube.com/watch?v=Aew60kovOgw
Code:
local cnt = {};
for i=0,18 do
	cnt[i] = 0;
end;

local prev;
local pieces;

while (true) do
	local das = memory.readbyte(0x0046);
	--delay is gravity and ARE counter
	local delay = memory.readbyte(0x0045);
	prev = pieces;
	pieces = memory.readbyte(0x001A);
	local test = memory.readbyte(0x0019);
	
	if(pieces ~= prev) then
		cnt[test] = cnt[test] + 1;
	end;
	
	gui.text(100,16,"Gravity/ARE: "..delay.."");
	gui.text(100,8,"Next Piece: "..test.."");
	gui.text(200,0,"Pieces: "..pieces.."");
	
	for i=0,18 do
		gui.text(220,(i+1)*8,i..": "..cnt[i].."");
	end;
	
	gui.drawbox(5, 0, 7+4*16, 5, "magenta");
	
	for i=1,4 do
		gui.drawbox(6, i, 6+4*das, i, "green");
	end;
	
	gui.drawbox(5+4*10, 1, 5+4*10, 4, "white");

	local inp1 = joypad.read(1);
	if(inp1.left) then
		gui.text(5,8,"<L");
	elseif(inp1.right) then
		gui.text(5,8,"R>");
	else
		gui.text(5,8,"--");
	end;
	
	FCEU.frameadvance();
end;

  ]]>