Author Topic: Color tetris  (Read 37147 times)

0 Members and 1 Guest are viewing this topic.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Color tetris
« Reply #30 on: November 09, 2011, 04:54:03 pm »
dude, why you guys know the game too xp

Ok then, it's nice to hear that speed isn't a problem here :) and i might change that levelup condition if it's not only you who thinks it goes to fast :)
but if i change it, it will take loooong to finally reach level 20, but if you agree, i do too
Since when were players required to get to level 20?  If you look at other tetrises, some take a long long time.  It isn't about how high level, but how long you live :)

PS, everyone knows the game.  Of which I just lost.
You just lost the game.



Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Color tetris
« Reply #31 on: November 09, 2011, 07:10:16 pm »
So, here is the moment everyone waited on (i hope so xp): The beta edition of ColorTetris has been completed!
some bugs are still in the game, eg. it's sometimes hard to place a block between two other blocks when coming from the side (as you can see in the screenshot with the yellow and the pink block), but they're not that significant (the one i told here is the most important).
I'll put the .tns file online tomorrow, but now, you already have the screenshot :)



oh and on the screenshot, the block sometimes doesnt fall that fluently, that's because i cut some parts to save space, i don't know why but i did. In the real game they fall 1 block down every time

now i'm trying to insert a hold function, and maybe the direct down button, but i'm afraid that won't succeed
« Last Edit: November 09, 2011, 07:14:41 pm by Nick »

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Color tetris
« Reply #32 on: November 09, 2011, 09:09:37 pm »
So, here is the moment everyone waited on (i hope so xp): The beta edition of ColorTetris has been completed!
some bugs are still in the game, eg. it's sometimes hard to place a block between two other blocks when coming from the side (as you can see in the screenshot with the yellow and the pink block), but they're not that significant (the one i told here is the most important).
I'll put the .tns file online tomorrow, but now, you already have the screenshot :)

oh and on the screenshot, the block sometimes doesnt fall that fluently, that's because i cut some parts to save space, i don't know why but i did. In the real game they fall 1 block down every time

now i'm trying to insert a hold function, and maybe the direct down button, but i'm afraid that won't succeed
the direct down button is what I was talking about :P. What do you mean by hold function?
You just lost the game.



Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Color tetris
« Reply #33 on: November 10, 2011, 01:44:53 am »
the direct down button is what I was talking about :P. What do you mean by hold function?
well, that's that instant down you told me :)
The hold function is when a block appears tht you can't use for the moment, you can 'save' it in the hold function and call it back later. It's used in the original one, and i think it's possible

--edit--
i think i found how to implement the dropdown button, woehoew xp i'll try it asap

--edit--
instant dorpdown button is implemented and works perfect

--edit--
hold function is implemented and works perfect
« Last Edit: November 10, 2011, 06:53:41 am by Nick »

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Color tetris
« Reply #34 on: November 10, 2011, 06:47:01 am »
Nice. Well I hope many people like it.(I don't have a nspire). :)


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Color tetris
« Reply #35 on: November 10, 2011, 07:11:23 am »
Good job Nick :)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Color tetris
« Reply #36 on: November 10, 2011, 02:18:06 pm »
Here it is: the first version of ColorTetris in lua.

THIS IS STILL A BETA VERSION, so do not expect it to be perfect, you will find some (small) bugs in it, but they surely won't crash your calc in any way...

Please report any bug to [email protected] or on this forum. Most likely to the email adres, so this forum will not be filled with stuff that's not that necessary.

I want to thank everyone who contibute(s/d) to this project, and of course omnimaga.org. Special thanks to AzNg0d1030, adriweb, jimbauwens, DJ_O and ralphdspam for their help.

Possibilities
-marathon (kind of ndless playing, score as many lines as possible without dying)
-hold function (tab key)
-instant dropdown button (enter key)
-multi line detection
-and of course COLOR  xp i've tested it with a real CX CAS, CX CAS emulator and CAS touchpad emulator. When the calc is a CAS (not cx), greyscale pictures a B/W background is used for a better overview.

Known bugs:
-hard to insert blocks from beside (it works sometimes)
-at the end (when reached the above line), a 2nd block is placed over the already standing block
-I think this is it, but that's why i need you; to find them (if there are any)

Future plans:
-improve coding (it's really a mess, but i can still follow it :) )
-increase speed a little bit, cause it has to be really hard on level 20
-implement more gametypes (timerace, clear 40 lines, .. any ideas.? )
-improve graphics
-insert a guideblock that shows where the block is gonna fall (but it will be possible to switch it off of it works)

a screenshot can be found at this page, a little more above

--edit--
The hold block is the rectanglecombination beneath the next-block-box, for those who didn't get it..

--edit--
redesign: comment if you want to
for the newest version of ColorTetris, go to page 4 and download it there, to avoid bugposts that are already fixed

« Last Edit: November 11, 2011, 09:05:57 pm by Nick »

Offline BalancedFury

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 722
  • Rating: +29/-2
    • View Profile
Re: Color tetris
« Reply #37 on: November 10, 2011, 05:08:04 pm »
Color Tetris on a calculator...
The best invention since sliced bread :D
Antonio Nam = DualBLDR = Tony Arthur... U choose!





JOIN THE PETITION TO ADD THIS EMOTICON!!
[|:{P ------->


Yo dawg I herd u lost the game game so I coded the game game in your calc so you can lose the game game while you code your code about losing the game game.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Color tetris
« Reply #38 on: November 10, 2011, 06:10:59 pm »
I feel so proud for slightly helping such an amazing tetris!!!!!!!!

GOOD JOB NICK :'(
You just lost the game.



Offline BalancedFury

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 722
  • Rating: +29/-2
    • View Profile
Re: Color tetris
« Reply #39 on: November 10, 2011, 06:52:44 pm »
Lol i got +1 for modifying a famous quote :D
Antonio Nam = DualBLDR = Tony Arthur... U choose!





JOIN THE PETITION TO ADD THIS EMOTICON!!
[|:{P ------->


Yo dawg I herd u lost the game game so I coded the game game in your calc so you can lose the game game while you code your code about losing the game game.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Color tetris
« Reply #40 on: November 10, 2011, 07:36:33 pm »
Lol i got +1 for modifying a famous quote :D
LOL

Nick: I found 3 problems.  
1-The red "S" block (remember, the one with the blue outlining) is missing :O
2-The speed may be messed up.  I was playing and I noticed my speed was at 7, and i decided to test the + and - button to see if they worked still.  When I went down, I went back up to 7 as to not cheat and I noticed I suddenly sped up compared to the speed I was at before.  This means even though it says the level is going up, it may not actually be getting faster until one fiddles with the + and -
3-When you hold a piece for a long enough time (i think theres like a certain time held or something for this bug) and try to get it back by pressing TAB, the held piece disappears and your current piece is still coming (or something like that, either way the held piece disappears)

Hope you can fix these! (Your tester still going strong and finding stuff for ya ;)  )
« Last Edit: November 10, 2011, 07:38:07 pm by AzNg0d1030 »
You just lost the game.



Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Color tetris
« Reply #41 on: November 10, 2011, 08:11:30 pm »
thanks :)

1. math.random(1,7) changed into math.random(1,6), strange, but it did.. and nr 7 is the red block, so it couldn't be chosen anymore
          -Fixed
2. never saw that one, found it too, i used timer.start(2/level) instead of timer.start(1/level), and on the initialisation of the game it was timer.start(1/level), understood? xp
shouldn't i remove the '-' function? cause in most games you can't change to easy while playing, but changing to hard must be possible i think, or not?
          -Fixed
3. serious? never encountered that problem, but i never played really long.. but as i watch the code, there couldn't be any interference with the timer, as it is a total different function xs here's the code (for those who understand it):
Code: [Select]
function on.tabKey()
if holdfull==false then
hold = fallingblock
hold[5]=5
hold[6]=1
holdfull=true
on.newBlock()
else
nextblock = fallingblock
fallingblock = hold
holdfull = false
end
end

function on.newBlock()
for i=1,10 do
if blocks[1][i]==1 then
done = true
end
end
if done == false and pause == false then
lastchoice = chooseblock
repeat
chooseblock = math.random(1,7)
until chooseblock ~= lastchoice

fallingblock = nextblock
if chooseblock == 1 then
nextblock = Tblock
elseif chooseblock == 2 then
nextblock = Lblock
elseif chooseblock == 3 then
nextblock = LLblock
elseif chooseblock == 4 then
nextblock = Iblock
elseif chooseblock == 5 then
nextblock = cublock
elseif chooseblock == 6 then
nextblock = Lstairblock
elseif chooseblock == 7 then
nextblock = Rstairblock
end
fallingblock[5] = 6-math.floor(fallingblock[8]/2)
fallingblock[6] = 1
platform.window:invalidate()
end
end

i'll try to find out, hope you don't have to give me too much work :)

btw, there goes my idea of a perfect working function like the hold function... the unexpected can always happen it seems


--edit--
sorry, id didn't update the program, how can id do this instead of reposting it?

--edit--
I updated the zip file, so no the right one is there
and no sorry, i'm happy you're wanting to help

--edit--
Highscore works, with var.recall(), not with on.save(), cause it seems to not be working with me :)
bon, anyway, it works...
« Last Edit: November 11, 2011, 03:28:24 am by Nick »

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Color tetris
« Reply #42 on: November 10, 2011, 08:33:15 pm »
UPDATE: though you prob fixed this, the missing s block (which is actually blue not red) appears only in te first two or three pieces and even then, still rarely. Hopefully this is fixed.

The held piece disappearing seems to disappear about after the player puts down 4 or more pieces when the player presses tab.

Speed bug: after one pushes pause while on level one and resumes, nothing seems to have changed, though if you go up one level then come back down, suddenly level 1 is ultra slow. If you pause on 2 or above, then resume, it speeds up the level (somehow) until you change level then change back. If you scroll between levels then go back to 1 (I scrolled to level 9 then back several times testing this) level 1 will also be ultra slow.

Maybe the speed not changing bug I mentioned on the previous post was why you thought it sped too slowly :P

Suggestion: Highscores?
Sorry for overloading you!

EDIT: Just wondering, what bugs did you fix :O ?  I see that the blue S piece is back!  I think the speed not changing is still screwed over... :( (but it seems that after the pause everything would speed up since it was speeding up to the supposed level speed, so basically, the pause was correcting the speed!  It still does that.  So every time I level up, I pause or change level then change back so it's fair) The scrolling up to nine and back making level 1 ultraslow is fixed!  Held piece disappearing bug is fixed.
« Last Edit: November 10, 2011, 09:55:09 pm by AzNg0d1030 »
You just lost the game.



Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Color tetris
« Reply #43 on: November 11, 2011, 09:06:07 am »
i've found a picture on the internet from the android tetris app, and it looks really nice. Should i try to make the graphics more like this one, or is that too riscy for tetris himself to do it? otherwise, i think i would love to, but i don't want to do something completely illegal :) does someone has any idea if it is allowed or not?



for now i'm cleaning up the code, cause that was necessary, so if you'd like i'll post it tonight or tomorrow or something, so you can have a look at it and maybe even try to help the debugging :)

I'm also trying to insert a ghostblock (like i like to call it) the one that shows you where it is gonna fall, but it's kinda hard xs so you'll have to wait a while
btw, you can see one at the picture in the right bottom corner

--edit--
got the code from 15.2 Kb to 13.1 Kb :)
started on the re-designing
« Last Edit: November 11, 2011, 10:51:23 am by Nick »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Color tetris
« Reply #44 on: November 11, 2011, 09:21:44 am »
For a clone on a calculator I doubt it will be an issue. It certainly does look pretty. :)