Author Topic: Tetris in TI basic  (Read 19554 times)

0 Members and 3 Guests are viewing this topic.

Offline theUnnamed

  • LV3 Member (Next: 100)
  • ***
  • Posts: 63
  • Rating: +3/-3
    • View Profile
Re: Tetris in TI basic
« Reply #15 on: April 14, 2010, 03:40:02 pm »
Woot so i already have the entire engine finished, what was the dimnensions that you required?  Traditional 10 wide and about 15 hight?
I'm doing is as a 16 wide by 32 high board because that's what looks about right to me on the screen.  How much time did you have to devote to this.  I have only had like 15 min to work because of high school. I honestly didn't expect anyone to do it this fast.
So here's the question does your program use anything that doesn't come on the calculator when it was sold because that's what I meant by in TI basic (no faster OS or interpreters allowed) and how quick does it run? and finally how did you code it. here's my interface designs 2x2 pixels to tetris block

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tetris in TI basic
« Reply #16 on: April 14, 2010, 06:48:43 pm »
Builderboy is god of TI-Basic, while Calc84maniac is god of asm. ;D

Anyways, I also am curious of the speed and design for both theUnnamed and Builderboy's tetris. I can't seem to think of a fast way to do it top of my head :(


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Tetris in TI basic
« Reply #17 on: April 14, 2010, 08:12:46 pm »
* meishe91 bows down to the "gods" :P

Nice, Builderboy.

And ya, school can really put a halt on things especially depending what classes and such. I'm sorry to hear you've only had about fifteen minutes.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tetris in TI basic
« Reply #18 on: April 14, 2010, 11:21:07 pm »
* DJ Omnimaga wonders when the games will be available for download.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Tetris in TI basic
« Reply #19 on: April 15, 2010, 02:23:43 pm »
Alrighty, i was away for yesterday so i couldn't upload as soon as i wanted, but im on now ^^ I spent about 4-5 hours on this on Tuesday before it was all finished up.  It helped that i have make tetris clones for BBCBasic and in Java, so i know the basic way that i like to code it.  I used 3x3 blocks to build the Tetris pieces, as the Pt-On alternate arguments provide fast and easy ways to turn on and off 3x3 boxes.  I didnt add anything fancy like highscores or things like that, after all its only a demo :P

I have attached the screenshot, which is running on an 84SE (anything else will probably be too slow to be playable) and the source file, which is only about 1500 bytes.

Controls:
Arrow Keys to move piece
[Down] to move piece down
[2nd] to rotate
[Mode] to Quit
[Del] to Drop

« Last Edit: April 15, 2010, 02:39:13 pm by Builderboy »

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Tetris in TI basic
« Reply #20 on: April 15, 2010, 02:28:51 pm »
Wow, nice! The speed seems reasonable. Does it get faster as you play the game?
One thing though, is that I don't like how there's a blank line right next to the border. Wouldn't it be better of there were no gaps between the blocks and the border line? Just my thought...
btw, I like how the block solidifies when it hits bottom^^
It would be cool if we can add items. that would be awesome O.o

Oh, and looking at the key, I think [Alpha] is a better key for the drop than [Del]. You might make a mistake and press [mode] and accidentally quit the game.
« Last Edit: April 15, 2010, 02:30:50 pm by jsj795 »


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Tetris in TI basic
« Reply #21 on: April 15, 2010, 02:31:37 pm »
Hah, yeah i did that on purpose :P It does get a lot faster as the game progresses, and now hat you mention it, i think i'll upload a screenshot of full speed so you can see what it looks like, as its running at about 1/5 the speed right now i think.

Haha and what items are in tetris? o.O Never heard of any :P

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Tetris in TI basic
« Reply #22 on: April 15, 2010, 02:32:46 pm »
You haven't heard of the bomb?

:O
« Last Edit: April 15, 2010, 02:32:54 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: Tetris in TI basic
« Reply #23 on: April 15, 2010, 02:35:52 pm »
Alrighty, i was away for yesterday so i couldn't upload as soon as i wanted, but im on now ^^ I spent about 4-5 hours on this on Tuesday before it was all finished up.  It helped that i have make tetris clones for BBCBasic and in Java, so i know the basic way that i like to code it.  I used 3x3 blocks to build the Tetris pieces, as the Pt-On alternate arguments provide fast and easy ways to turn on and off 3x3 boxes.  I didnt add anything fancy like highscores or things like that, after all its only a demo :P

I have attached the screenshot, which is running on an 84SE (anything else will probably be too slow to be playable) and the source file, which is only about 1500 bytes.

Controls:
Arrow Keys to move piece
[Down] to move piece down
[2nd] to rotate
[Mode] to Quit
[Del] to Drop



hmm.. I should toss this on my 83+SE, see how much faster it is on it, since the 83+SE is just a touch faster than the 84+SE.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Tetris in TI basic
« Reply #24 on: April 15, 2010, 02:40:15 pm »
Woot, uploaded a new screenshot that runs at full speed.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tetris in TI basic
« Reply #25 on: April 15, 2010, 05:04:32 pm »
wow pretty nice. the falling speed is as fast as LV10 on the old Windows 3.1 Tetris. Pretty reasonable if you ask me. It would be very playable on regular 83+ but maybe a bit too easy. At the SE speed it's definitively almost as fast as a real Tetris game. Very nice job on this :)

Offline theUnnamed

  • LV3 Member (Next: 100)
  • ***
  • Posts: 63
  • Rating: +3/-3
    • View Profile
Re: Tetris in TI basic
« Reply #26 on: April 17, 2010, 05:54:47 pm »
Ok I guess I continue my development of my tetris Unfortunately life decided to chop up the coding time I expected to have I like you tetris design.  and what augments of point-on give u 3x3 block manipulation? I didn't no such a thing existed

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Tetris in TI basic
« Reply #27 on: April 17, 2010, 05:57:57 pm »
Yeah, its not very well documented.  Try this

Pt-On(0,0,2

or

Pt-On(0,0,3

and you can get a block and a plus :)

Offline theUnnamed

  • LV3 Member (Next: 100)
  • ***
  • Posts: 63
  • Rating: +3/-3
    • View Profile
Re: Tetris in TI basic
« Reply #28 on: April 17, 2010, 06:32:36 pm »
That's really neat That's better way then line(0,0,1,1

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Tetris in TI basic
« Reply #29 on: April 17, 2010, 06:34:56 pm »
Or if you just want the black block do Pt-On(0,0,2:Pt-On(0,0 instead of Pt-On(0,0,2:Pt-On(0,0,3 :P