Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: wRieDen on February 06, 2011, 09:12:42 am

Title: nTris - Tetris for nSpire -
Post by: wRieDen on February 06, 2011, 09:12:42 am
nTris    - Tetris for nSpire -

Hey, after i searched for Tetris and getting no results, i decided to make one.
Up to now it doesn't look nice, but it works. There is a Todo-list below.
Depending on your comments i will expand it.

Controls are mapped to the numbers and the touch or dpad:
4-left, 6-right, 2-down, 8-rotate, 5-drop

Things left to do:
- improve controls
(http://nspforge.unsads.com/p/ntris/raw-attachment/wiki/WikiStart/nTris.png)

Thank you Ndless team for making this possible!
Also i want to thank compu for making the block graphics for me and squalyl for hosting the project.

Download (http://nspforge.unsads.com/p/ntris/downloader/download)
Title: Re: nTris - Tetris for nSpire -
Post by: apcalc on February 06, 2011, 09:18:23 am
This looks very nice!  Excellent work! :)
Title: Re: nTris - Tetris for nSpire -
Post by: JosJuice on February 06, 2011, 10:18:30 am
It's always nice to see new Nspire projects! There aren't many right now, so making just one is a huge addition to the Nspire. I don't have an Nspire, so I sadly can't try it out.
Title: Re: nTris - Tetris for nSpire -
Post by: qazz42 on February 06, 2011, 11:04:16 am
Epic work, nothing like tetris to waste some time :P

will you be adding things like levels and score counter?
Title: Re: nTris - Tetris for nSpire -
Post by: fb39ca4 on February 06, 2011, 12:42:33 pm
Cool!
Title: Re: nTris - Tetris for nSpire -
Post by: ztrumpet on February 06, 2011, 01:13:43 pm
Looks neat.  Good luck on it. :)
Title: Re: nTris - Tetris for nSpire -
Post by: Builderboy on February 06, 2011, 01:16:15 pm
Looking very nice! :D haven't seem too much development on the nSpire front, nice to see yet another project come to light :) good luck implementing all your other features!
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 06, 2011, 02:29:22 pm
Wow, thanks! I'm glad you like it. I will add a score counter and levels as soon as possible, maybe within the following week.
Title: Re: nTris - Tetris for nSpire -
Post by: Builderboy on February 06, 2011, 02:47:21 pm
With the screen of the nSpire at your command, you might even want to look into textured blocks like the original tetris :D
Title: Re: nTris - Tetris for nSpire -
Post by: compu on February 06, 2011, 02:51:04 pm
Nice work ;D
Title: Re: nTris - Tetris for nSpire -
Post by: Madskillz on February 06, 2011, 02:53:21 pm
I agree it looks great, I can't wait to see it once you update the graphics with some nice greyscale!. I love to see new nspire projects.
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 07, 2011, 12:56:01 pm
Here is a little update for you:
- check if rotation is possible
- changed control system (you can't hold a button anymore but they react normally now)

 
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on February 07, 2011, 01:53:10 pm
Heya and welcome on the forums!

Nice project as well, I'M glad to see a Tetris clone for the TI-Nspire finally. It would be nice if that one took full advantage of the 15 levels grayscale screen. Also I'm glad you're using the up number (8) to rotate. :P

By the way for how long have you been coding for calculators?
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 07, 2011, 03:33:16 pm
hey, thanks!
Actually i started prgramming for calculators with this game, before i just played around with Ti-Basic but it wasn't that great.
As you might have seen on the screenshot I updated the block graphics. Compu made them for for me.
Also i updated the download!


Title: Re: nTris - Tetris for nSpire -
Post by: squalyl on February 08, 2011, 04:32:49 am
Hello,

congrats for this great production.

would you like to get an official page at nspforge.unsads.com?

I'm a trac/svn/git provider for nspire and other calculator developers. The goals are to
* backup your project so you don't loose it if your computer crashes. I have daily backups on a remote secure ftp host.
* manage bugs and issues

I don't care if your project is not open source. private projects are possible. binary release hosting is also possible.

Don't hesitate to post a request on the trac meta project at http://nspforge.unsads.com/p/meta

HTH, squalyl
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 08, 2011, 11:02:26 am
Thats great squalyl i'll post a request later.
I plan to release the source, so svn is quite useful too :)
Title: Re: nTris - Tetris for nSpire -
Post by: squalyl on February 09, 2011, 04:25:47 am
I just installed your project. Welcome!

Edit: I also edited the wiki main page to make it more trac-friendly, while keeping your layout.

Please use the trac downloader system for releases, this is far more easier than an attachement. Keep attachements for pictures :)

Regards
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 09, 2011, 10:04:52 am
Thanks! I've never worked with Trac before, but tomorrow i've got enough time to figure it out  ;)
Title: Re: nTris - Tetris for nSpire -
Post by: squalyl on February 09, 2011, 10:08:25 am
I added your current release to the download system so that you get an overview on how it works. Don't hesitate to ask questions via email or the meta project tickets, my mailbox is opened 24/7
Title: Re: nTris - Tetris for nSpire -
Post by: critor on February 10, 2011, 07:18:14 am
Could you also test for arrow keys?

Using number keys is unpleasant on ClickPad keypads, because you have the higher alphabetical keys between them.
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 10, 2011, 09:24:43 am
Here you go!
This version also contains a simple score/line counter.
It doesn't look good but i'll update it soon.
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 10, 2011, 03:55:19 pm
updated first post:
Score system included, changed graphics, clickpad users can use the dpad now!

You can report bugs or make feature requests here: http://nspforge.unsads.com/p/ntris/wiki (http://nspforge.unsads.com/p/ntris/wiki)
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on February 14, 2011, 01:01:55 am
hey, thanks!
Actually i started prgramming for calculators with this game, before i just played around with Ti-Basic but it wasn't that great.
As you might have seen on the screenshot I updated the block graphics. Compu made them for for me.
Also i updated the download!



Yeah you witnessed the worst ever TI-BASIC for calcs (even more than the TI-81). 83+ BASIC was slow and a bit limited but at least we had getkey and that stuff. Also I love the new graphics. I hope you continue working on this. :)

Btw it would be nice if people continued to make requests on Omni too instead of just on the Wiki thing. We need to try not splitting the TI community too much.
Title: Re: nTris - Tetris for nSpire -
Post by: broooom on February 19, 2011, 09:51:08 am
Very nice! One thing I noticed is that to go down, you have to keep bashing the 2-button; I don't know how far this is possible, but it would be nice just being able to hold it. :)
Title: Re: nTris - Tetris for nSpire -
Post by: Ashbad on February 19, 2011, 10:47:29 am
I guess I didn't notice this project yet, shame on me!  this looks quite excellent!  :D

I'm guessing the different designs for blocks are just for aesthetics, or are you using them for point scoring/ shape recognizing?  Either way, awesome!
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 19, 2011, 06:22:45 pm
yes holding buttons would be nice, but at the moment I don't have enough time to work it out.  :-\
Anyway I plan to improve the controls, maybe this month, but I can't ensure it.
The desings are just for aesthetics. :)
Title: Re: nTris - Tetris for nSpire -
Post by: Ashbad on February 19, 2011, 06:44:17 pm
The desings are just for aesthetics. :)

cool
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on February 22, 2011, 01:29:30 am
Good luck wRieDen!
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on February 26, 2011, 06:27:17 pm
*update*

- level system included
- some minor bugfixes
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on February 28, 2011, 07:08:44 pm
Nice, was the downloadable file updated?
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on March 01, 2011, 10:03:37 am
yes, i updated it  ;)
Title: Re: nTris - Tetris for nSpire -
Post by: shrear on March 01, 2011, 04:44:06 pm
uhm there seems to be a bug in the current version
after I exit ntris my calc responds extremely slow to keys etc. (he behaves quasi like underclockt)
if you take the time to renter ntris or any other ndless program this effect seems to be gone, until you go back to normal "OS-mode"
other than reset I fund no way to fix it.

If you need some more information just say what exactly you need to know please.
btw. I'm using a Touchpad CAS with OS 2.1
Title: Re: nTris - Tetris for nSpire -
Post by: ExtendeD on March 02, 2011, 02:59:02 pm
wRieDen, 0x900D0000 (timer) doesn't seem to be restored on exit. The OS value needs unfortunately to be hard coded (32).

Couldn't Ndless's sleep(ms) function have been used in your case by the way, to make things easier?
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on March 02, 2011, 03:48:35 pm
Whoops, yes i tested the current version just on the emulator  :-[ , now the timer is retored properly.
The sleep funktion would block the whole controls, at the moment the timer is used for the falling blocks.
Title: Re: nTris - Tetris for nSpire -
Post by: Lemmy on March 03, 2011, 04:27:58 pm
I'd like it if you added a hold feature.
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on March 03, 2011, 11:12:24 pm
Hi and welcome to the forums. Also what is a hold feature? Is it just making everything stop moving until you release a certain key so you think about where to put the block? That might be an interesting feature, although it would be nice to have an hard mode where it can't be used too.
Title: Re: nTris - Tetris for nSpire -
Post by: Lemmy on March 04, 2011, 06:40:44 am
Hi and welcome to the forums. Also what is a hold feature? Is it just making everything stop moving until you release a certain key so you think about where to put the block? That might be an interesting feature, although it would be nice to have an hard mode where it can't be used too.
It's actually when you can press a button to put the current falling block in a "hold chamber" where you can then substitute it out later to get combos more easily. Almost all tetris games have this so I'm surprised you've never heard of it.

(http://www.gamejudgment.com/wp-content/uploads/2010/10/Tetrispartyreview100410-6.jpg)
See that box with the N piece? That's where the hold block goes.
Title: Re: nTris - Tetris for nSpire -
Post by: Stefan Bauwens on March 04, 2011, 07:27:29 am
Hi and welcome to the forums. Also what is a hold feature? Is it just making everything stop moving until you release a certain key so you think about where to put the block? That might be an interesting feature, although it would be nice to have an hard mode where it can't be used too.
It's actually when you can press a button to put the current falling block in a "hold chamber" where you can then substitute it out later to get combos more easily. Almost all tetris games have this so I'm surprised you've never heard of it.

(http://www.gamejudgment.com/wp-content/uploads/2010/10/Tetrispartyreview100410-6.jpg)
See that box with the N piece? That's where the hold block goes.
Hmm, I never heard of that 'hold chamber'. I think that box with the 'N' peace is the box that shows witch block's going to be next.
Title: Re: nTris - Tetris for nSpire -
Post by: TIfanx1999 on March 04, 2011, 08:44:02 am
@Lemmy: I've never heard of a "hold" feature either, but to be fair, I've only played the gameboy versions(original and gamboy color) of Tetris. As Stefan pointed out in the above screenshot, that box in the lower right hand corner show the next piece that is going to fall. Oh, and welcome to the forums! ;)
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on March 04, 2011, 10:01:16 am
I guess he means that feature: http://www.tetrisfriends.com/help/tips_intermediate.php (http://www.tetrisfriends.com/help/tips_intermediate.php)
Well, i have to say that I didn't know about this hold queue before, but it seems to be quite useful.
Maybe i'll add it in further versions.

@DJ_O: I've already included this, but it's more a bug than a feature  8)
Just try to hold one of controls.
Title: Re: nTris - Tetris for nSpire -
Post by: Stefan Bauwens on March 04, 2011, 10:04:59 am
Oh I see, but than its wrong to say: 'Almost all tetris games have this.'
Title: Re: nTris - Tetris for nSpire -
Post by: Lemmy on March 04, 2011, 02:14:36 pm
Oh I see, but than its wrong to say: 'Almost all tetris games have this.'

There hasn't been a single version of tetris that I've played that didn't have hold. Even the ti-84 versions (at least the ones I tried) have hold
Title: Re: nTris - Tetris for nSpire -
Post by: compu on March 04, 2011, 02:32:31 pm
Oh I see, but than its wrong to say: 'Almost all tetris games have this.'

There hasn't been a single version of tetris that I've played that didn't have hold. Even the ti-84 versions (at least the ones I tried) have hold
Then it looks like you haven't played the original gameboy one :P
Title: Re: nTris - Tetris for nSpire -
Post by: Lemmy on March 04, 2011, 02:42:08 pm
Then it looks like you haven't played the original gameboy one :P
I admit to this
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on March 04, 2011, 04:22:05 pm
Hi and welcome to the forums. Also what is a hold feature? Is it just making everything stop moving until you release a certain key so you think about where to put the block? That might be an interesting feature, although it would be nice to have an hard mode where it can't be used too.
It's actually when you can press a button to put the current falling block in a "hold chamber" where you can then substitute it out later to get combos more easily. Almost all tetris games have this so I'm surprised you've never heard of it.

(http://www.gamejudgment.com/wp-content/uploads/2010/10/Tetrispartyreview100410-6.jpg)
See that box with the N piece? That's where the hold block goes.
Well I didn't play the 84+ version very much and that was in 2001. The last time I played Tetris before was on a 40 MHz computer at school and it was a limited version with many removed features (eg: blocks felt instantly when hitting the down arrow and there was no way to make them go down one spot like in other Tetris games.). Besides that I only played the NES version around 1992.

Note, I'M not a big puzzle game fan, so I never got into Tetris as much as some other people.
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on March 24, 2011, 05:08:05 pm
Just a tiny update for those, who use the Touchpad. Now you can use it to control the game.
Also i fixed some timer issues.
Nothing else changed, as soon as i get some more free time i'll start working on nTris again.
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on March 26, 2011, 03:14:08 am
Good to hear, and nice to see you still around. I hope you get more free time soon.
Title: Re: nTris - Tetris for nSpire -
Post by: wRieDen on April 23, 2011, 09:00:18 am
Here's another update for you !
Next piece display added and the randomness of the Tetrimino improved.
The levels are not limited to 10 anymore and the gameplay should be a little faster now.


Title: Re: nTris - Tetris for nSpire -
Post by: GB on May 01, 2011, 05:44:32 pm
Do you have plans on adding a high score system into this game?
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on June 06, 2011, 05:35:01 pm
Is that still being developed by the way?
Title: Re: nTris - Tetris for nSpire -
Post by: ExtendeD on June 07, 2011, 04:47:48 am
Did anyone try TI's version of the game in Lua (not officially released)? Is nTris much better?
Title: Re: nTris - Tetris for nSpire -
Post by: compu on June 07, 2011, 06:22:25 am
I will work on the highscore and maybe a menu today, and wrieden will continue developing nTris in the summer holidays (in 4 weeks).
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on June 07, 2011, 12:25:53 pm
ExtendeD Nope, I never could download it nor find it anywhere else :(. I guess nTris could be better since it was made in C/ASM instead of Lua, but sometimes we get surprised by some lower speed language games (See some 83+ BASIC games for example).

Compu: Ah ok, I am glad it is still alive, and I wasn't sure if he worked on it in solo or not.
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on October 28, 2011, 09:59:21 pm
Can one be made for the CX or the 3.1 update?
I would really enjoy this on my nspire, black and white is fine too!
Title: Re: nTris - Tetris for nSpire -
Post by: Jim Bauwens on October 29, 2011, 03:53:43 am
There is a tetris game made by TI in Lua, but I don't know if I may give it to you. I should check it.
Title: Re: nTris - Tetris for nSpire -
Post by: critor on October 29, 2011, 08:22:31 am
There is a tetris game made by TI in Lua, but I don't know if I may give it to you. I should check it.

I've allready asked. The answer was no because of the "Tetris Company".
Check here:
http://tiplanet.org/forum/viewtopic.php?t=7773
Title: Re: nTris - Tetris for nSpire -
Post by: Stefan Bauwens on October 29, 2011, 08:55:14 am
So they actually would maybe even sue some authors who made tetris for any calc?
If that be the case, we should have some kind of hidden database for those kind of games. :D
Title: Re: nTris - Tetris for nSpire -
Post by: ExtendeD on October 29, 2011, 09:05:50 am
Here it is anyway: http://www.compasstech.com.au/TNS_Authoring/Scripting/
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on October 30, 2011, 11:23:15 pm
It's weird they disallow giving it away when many Tetris clones are available on ticalc.org and the Tetris company took no action O.O
Title: Re: nTris - Tetris for nSpire -
Post by: JosJuice on October 31, 2011, 03:52:14 am
That the Tetris Company doesn't notice doesn't mean that it isn't trademark infringement. Since TI is a company, they're probably trying to do everything they can to stay out of trouble.
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on November 01, 2011, 03:27:10 pm
Ah ok. Also I saw two people post the link above in the last month or so and one of them said Tetris is available at the bottom of that page, but when I check myself, it's not. ??? Is the link just posted so we check Wayback Archive or something? ???
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on November 01, 2011, 03:31:11 pm
Compasstech removed the link on the day we linked to it >.>

the direct link to the archive should still work, though
Title: Re: nTris - Tetris for nSpire -
Post by: critor on November 01, 2011, 05:34:46 pm
Yes, the direct link used on TI-Planet still does work.
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on November 01, 2011, 06:10:35 pm
Oh ok. I'Ll try to find it again then :P
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on November 03, 2011, 09:55:45 pm
Well okay, if there isn't one since Tetris company is being selfish (;_;) then can someone make one?  :angel:

That would be AWESOME and greatly appreciated!!!

On the Sample Scripting site they took down the link to dl the periodic table.  Any ideas why or where else to get it?
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on November 04, 2011, 06:22:12 pm
Never mind, the one on TIplanet is there now.  Though I'd say it isn't that amazing O.o
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on November 05, 2011, 06:32:09 pm
Never mind, the one on TIplanet is there now.  Though I'd say it isn't that amazing O.o
Hmm... It is also very easy and it doesn't speed up or anything, so as long as you know how to play, you could get scores over 1000 since the score is the number of lines completed.  I got so bored at 200 I committed suicide.  It's literally way to easy... :(
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on December 25, 2011, 11:47:50 pm
Erm you shouldn't double-post within short periods of time... oh wait you triple-posted! O.O

However yeah I tried the game from TI and it wasn't great. It seems like it was made just so there's a Tetris game available on the CX, without worrying about quality. <_<
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on December 26, 2011, 05:08:25 am
It seems like it was made just so there's a Tetris game available on the CX, without worrying about quality. <_<

At that time, it rather was to demonstrate the poure possibilities. Good graphics were not the main point. This was something they know it can be done. They were focusing more on the 'algorithm' behind it and user interactino with keypresses etc., as a demo

Well, that's what I think
Title: Re: nTris - Tetris for nSpire -
Post by: annoyingcalc on December 26, 2011, 01:27:37 pm
Erm you shouldn't double-post within short periods of time... oh wait you triple-posted! O.O

However yeah I tried the game from TI and it wasn't great. It seems like it was made just so there's a Tetris game available on the CX, without worrying about quality. <_<
that wasnt a double post he waited one day
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on December 27, 2011, 01:18:39 am
Oh I thought it was 24 hours now :P
It seems like it was made just so there's a Tetris game available on the CX, without worrying about quality. <_<

At that time, it rather was to demonstrate the poure possibilities. Good graphics were not the main point. This was something they know it can be done. They were focusing more on the 'algorithm' behind it and user interactino with keypresses etc., as a demo

Well, that's what I think
Yeah I know, although I noticed it took quite a while before any Lua and Prizm game gets any good graphics. Even early Ndless games had very basic graphics compared to nDoom, for example. At one point it's always good to push graphics a bit further, else people all think that's all we can do in the language. X.x
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on December 27, 2011, 07:38:36 pm
Sorry :)
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on December 30, 2011, 06:33:54 pm
No problem, just pointing out in case :P
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on January 03, 2012, 05:18:41 pm
Don't worry that was when I first joined so I didn't really know. :P Long time ago!
Title: Re: nTris - Tetris for nSpire - Update for CX
Post by: SpiroH on September 20, 2012, 05:42:13 am
Continuing with my ndless explorations, i've decided to ressurrect this popular and funny project, because it brings me back some of my almost forgotten memories. I guess the author 'wRieden' has gone on vacation. Hope he doesn't mind. :) So, i've updated to make it ready for Nspire CX (gray-color!). I think i did it in some way. Try it out and tell if it works and if you can manage to make some points (cx is a bit faster). Please find attached the source and .tns. Maybe some game experts want to add some color. The cx 'pain' was mostly due to the timers having different addresses. nTrisCX should also run in non-cx systems. Have fun.
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on September 20, 2012, 06:23:23 pm
Continuing with my ndless explorations, i've decided to ressurrect this popular and funny project, because it brings me back some of my almost forgotten memories. I guess the author 'wRieden' has gone on vacation. Hope he doesn't mind. :)
So, i've decided to try to make it ready for Nspire CX (gray-color!). I think i did it in some way. Try it out and tell if it works and if you can manage to make some points (cx is a bit faster). Please find attached the source and .tns. Maybe some game experts want to add some color. The cx 'pain' was mostly due to the timers having different addresses. nTrisCX should also run in non-cx systems. Have fun.
Could you make it a zip file by any chance? I'm having trouble opening it on a Mac
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 20, 2012, 06:31:49 pm
Could you make it a zip file by any chance? I'm having trouble opening it on a Mac
Sure!
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on September 21, 2012, 09:44:39 am
The author might actually have quit the community. This happens more often with Nspire coders since 2011 due to what TI did to Ndless a few times. Glad someone is picking this up again, though. :D
Title: Re: nTris - Tetris for nSpire - SDL implementation
Post by: SpiroH on September 22, 2012, 11:45:04 am
The author might actually have quit the community. This happens more often with Nspire coders since 2011 due to what TI did to Ndless a few times. Glad someone is picking this up again, though. :D
Thanks DJ_O. Yeah, i was following the hardware clues. Of course, nowadays we have the abstract software overlays all around the place (some are quite slow mind you, does .net ring the bell?). OTOH, some are quite cute and really ease the programmer's life after the initial jargon overhead. Short, i'm changing the initial project almost completely, i'm keeping the name tho. :P Have been reading a little about hoffa's SDL port effort, and decided to port yet another simple tetris clone from here: http://code.google.com/p/simple-tetris-clone/. I dunno if we can motivate young students to do some programming, but this is the basic idea. ndless is a good opportunity and i'm positive ExtendeD will find some fix someday to TI's nag!
Here is the simple sdl example:
   (http://imageshack.us/a/img11/9876/nspiretetrisclone.png)
For the moment, i'm just showing it off. Next i'll provide the source code after i've removed some ugly comments. ;)
Limitation: atm the program's 3 bitmaps MUST be installed at a fixed location: "ndless/nTris" folder. So, make sure all 3 bitmaps files are transferred to that folder. This is due to the fact that, to my surprise, the SDL_loadBMP nspire implementation appears to take only absolute paths. The program itself ('nTris-sdl.tns') can be placed anywhere. I know we can later replace the smaller bitmaps by a bitmap description in software. Maybe i'll do it later... Oh, this only works on the CX models! Please visit the original site for instructions, but they're trivial as usual. Have fun.
Title: Re: nTris - Tetris for nSpire -
Post by: Hayleia on September 22, 2012, 12:11:56 pm
Awesome, I really like those graphics :D
However, could you add the 8,4,5,6 keys as arrow keys ? I really don't like to use the touchpad as buttons (if I put more than one finger on the touchpad, it detects a random direction) :)

edit I noticed that those bmps are real bmps, so if I don't like graphics, I can change them ? O.O
Title: Re: nTris - Tetris for nSpire -
Post by: Wayne on September 22, 2012, 02:58:48 pm
Nice work.
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on September 22, 2012, 03:01:18 pm
Nice I like the graphics too. :)
Title: Re: nTris - Tetris for nSpire -
Post by: cyanophycean314 on September 22, 2012, 05:21:38 pm
It looks pretty nice, but now the screenie disappeared.  D:
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 22, 2012, 05:35:29 pm
I noticed that those bmps are real bmps, so if I don't like graphics, I can change them ? O.O
Yeah! Well, shortly (tomorrow?) you'll be able to change a lot of things.

Nice work.
Thanks! Btw, you should remove the double post. That's the reason (i think?) someone has given you a negative point.

It looks pretty nice, but now the screenie disappeared.  D:
What do you mean by screenie? I'm not sure i understand what you mean. Is it screenshot (F7)? If it is, well it works fine by me!?
Title: Re: nTris - Tetris for nSpire -
Post by: lkj on September 22, 2012, 06:28:52 pm
Limitation: atm the program's 3 bitmaps MUST be installed at a fixed location: "ndless/nTris" folder. So, make sure all 3 bitmaps files are transferred to that folder. This is due to the fact that, to my surprise, the SDL_loadBMP nspire implementation appears to take only absolute paths. The program itself ('nTris-sdl.tns') can be placed anywhere. I know we can later replace the smaller bitmaps by a bitmap description in software. Maybe i'll do it later... Oh, this only works on the CX models! Please visit the original site for instructions, but they're trivial as usual. Have fun.
Couldn't you just use argv for relative paths?

It looks nice, but I hope you will make it work also on non-CX.
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 22, 2012, 06:51:12 pm
Couldn't you just use argv for relative paths?
Thanks for your comments. I think so, possibly using argv[0] and getcwd() we could work it out. I simply didn't bother yet. I'll see it.
Quote
It looks nice, but I hope you will make it work also on non-CX.
Well, in non-CX certainly it will loose a lot of color(s) but for the sake of completeness it would be nice to try it out and see how the colors scale into gray levels.

Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 23, 2012, 01:02:58 pm
Here goes another take on nTris-sdl with the following improvements:
1. Reduced the nbr of bitmap files to only one: the background bitmap. The other two were converted into data (thanks hoffa!).
2. Now we can place both files: 'nTri-sdl.tns' and 'back.bmp.tns' anywhere inside the same folder.
3. Non-cx models are also supported although a bit crippled atm, because the functions 'srand() and 'rand' work fine in CX models but cause a reset in non-cx models ??? ? I guess it will be easy to sort out at a later stage.
I've implemented some work around 'randomn' function. I guess it's ok, but not optimal.
4. Have added also the keys: 8, 4, 6 and 2 to move the pieces, as requested by Hayleia, what makes perfect sense to me too. :)
5. Have added some keys to replace the function keys, as follows: key 'p' - pause/continue; key 'n' - toggle 'show next piece'.
6. Finally, i'm also adding the source. Here, i didn't have (yet) enough time to make it clean. well, you can do it.
BW view:
 (http://imageshack.us/a/img39/3290/ntrissdlbw.png)
Hope is more functional this time and that it will motivate some todo likewise porting other nice sdl-games/demos to the calc. Please keep me informed of bugs or corrections.
 
Cheers,
Title: Re: nTris - Tetris for nSpire -
Post by: cyanophycean314 on September 23, 2012, 04:59:27 pm
It looks pretty nice, but now the screenie disappeared.  D:
What do you mean by screenie? I'm not sure i understand what you mean. Is it screenshot (F7)? If it is, well it works fine by me!?
Yeah, the screenshot disappeared when I saw it, but now it's back. Nice progress!
Title: Re: nTris - Tetris for nSpire -
Post by: Sorunome on September 23, 2012, 10:51:46 pm
Looking cool! Is there then also color on the cx, coz that would be awesome :D
Title: Re: nTris - Tetris for nSpire -
Post by: Hayleia on September 24, 2012, 01:57:31 am
2. Now we can place both files: 'nTri-sdl.tns' and 'back.bmp.tns' anywhere inside the same folder.
3. Non-cx models are also supported although a bit crippled atm, because the functions 'srand() and 'rand' work fine in CX models but cause a reset in non-cx models ??? ? I guess it will be easy to sort out at a later stage.
I've implemented some work around 'randomn' function. I guess it's ok, but not optimal.
4. Have added also the keys: 8, 4, 6 and 2 to move the pieces, as requested by Hayleia, what makes perfect sense to me too. :)
5. Have added some keys to replace the function keys, as follows: key 'p' - pause/continue; key 'n' - toggle 'show next piece'.
6. Finally, i'm also adding the source. Here, i didn't have (yet) enough time to make it clean. well, you can do it.
Those changes are great, and thanks for the keys :D

1. Reduced the nbr of bitmap files to only one: the background bitmap. The other two were converted into data (thanks hoffa!).
This one is less great, I liked how the game was customizable by the user :(
There was something too that I found annoying with the game: pressing the down key makes the piece fall but holding down the key does nothing (I mean it gets down by one case then stops instead of keeping falling)

Looking cool! Is there then also color on the cx, coz that would be awesome :D
Yes, there is color on CX as this post (http://ourl.ca/9087/317504) shows :)
And you have 1000 posts *.*
(only 24 more posts to a round number, would say Eiyeron :P)
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 24, 2012, 03:48:47 am
Those changes are great, and thanks for the keys  :D
Thanks!
This one is less great, I liked how the game was customizable by the user :(
Well, now that you have the source code, you can always revert it back.  It's so easy, you so should give it a try. ;)
Quote
There was something too that I found annoying with the game: pressing the down key makes the piece fall but holding down the key does nothing (I mean it gets down by one case then stops instead of keeping falling)
Me too, but just a little. One thing i forgot to mention in the "instructions" above, is that the user can always press the 'space-bar' to force the piece to fall to the bottom at once. Hope it helps.
Title: Re: nTris - Tetris for nSpire -
Post by: hoffa on September 24, 2012, 04:00:26 am
Quote
There was something too that I found annoying with the game: pressing the down key makes the piece fall but holding down the key does nothing (I mean it gets down by one case then stops instead of keeping falling)
Me too, but just a little. One thing i forgot to mention in the "instructions" above, is that the user can always press the 'space-bar' to force the piece to fall to the bottom at once. Hope it helps.
You could just add something like SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL) during initialization and remove any dirty hacks that do exactly that but manually (I had a very quick look at the code, I think it's when pressing the horizontal arrow keys that it's done manually).
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on September 24, 2012, 09:42:55 am
You could just add something like SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL) during initialization and remove any dirty hacks that do exactly that but manually (I had a very quick look at the code, I think it's when pressing the horizontal arrow keys that it's done manually).
Thanks for the tip! I haven't tried it yet but i will as soon as i can. I really need to have a second look at the code and get rid of a lot of useless lines. In the meantime, i hope the 'rand()' crash-thing gets sorted.
Title: Re: nTris - Tetris for nSpire -
Post by: Hayleia on September 24, 2012, 11:03:31 am
This one is less great, I liked how the game was customizable by the user :(
Well, now that you have the source code, you can always revert it back.  It's so easy, you so should give it a try. ;)
Because you think I am able to set up the SDK ? :P
Don't you remember that I even had problems to start karmTI which is supposed to be easy to set up ? So even the new graphical sdk for Ndless would cause problems to me :P
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on September 25, 2012, 10:31:57 pm
Omg the graphics of nTris is AMAZING.  Absolutely beautiful. Can't wait for a high score implementation >:D
Title: Re: nTris - Tetris for nSpire -
Post by: AaroneusTheGreat on September 25, 2012, 10:52:44 pm
Yay Tetris! Finally!
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on September 25, 2012, 11:03:15 pm
Haha high score of 809,713, on level 14, with 146 lines :D
Panic started kicking in and I started pressing the wrong buttons...

Btw, can the button that auto drops them to the bottom be a bit closer, like a button around the numbers? The space bar is kind of far... D:
Title: Re: nTris - Tetris for nSpire -
Post by: Chockosta on September 26, 2012, 07:44:09 am
Awesome work !
The graphics are really beautiful, I think this is the best tetris for the Nspire yet...
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on September 26, 2012, 07:47:57 am
Indeed the graphics are beautiful, but you may have not heard of this on , which is pretty nice too graphics-wise :D
(well, it's based of the official one)

(http://tiplanet.org/modules/archives/captures/1321382261Screen2.jpg) (http://tiplanet.org/forum/archives_voir.php?id=3775)
Title: Re: nTris - Tetris for nSpire -
Post by: Chockosta on September 26, 2012, 08:02:49 am
Yes, I know this one, I even have it on my calculator.
The graphics are awesome too, but there are several problems :
-sometimes you loose without any reason
-the feature to "hold" blocks is really buggy.

(maybe there is a new version whith bugfixes, I would be happy to download it)
Title: Re: nTris - Tetris for nSpire -
Post by: Hayleia on September 26, 2012, 11:46:13 am
Indeed the graphics are beautiful, but you may have not heard of this on , which is pretty nice too graphics-wise :D
(well, it's based of the official one)

(http://tiplanet.org/modules/archives/captures/1321382261Screen2.jpg) (http://tiplanet.org/forum/archives_voir.php?id=3775)
Well you may not have noticed that the background of nTris is customisable ;)

Also, why do you link to the TI-Planet archive of an Omnimaga project which has a topic here ? :P
You did the same with Gossamer on Cemetech too :P
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on September 26, 2012, 01:39:58 pm
Quote
Well you may not have noticed that the background of nTris is customisable ;)
Indeed I didn't know.

Quote
Also, why do you link to the TI-Planet archive of an Omnimaga project which has a topic here ? :P
Because I knew how to find it quickly there, not here :)

Quote
You did the same with Gossamer on Cemetech too :P
Indeed, since it was a copy/paste of the english news on TI-Planet.
Title: Re: nTris - Tetris for nSpire -
Post by: ExtendeD on September 26, 2012, 02:08:36 pm
Well, as a Omnimaga newser care should be taken for not making Omnimaga.org as a bare redirection to TI-Planet by editing the links in the posts. It would  help to miss-interpreting your posts as being mainly advertisements for TI-Planet.
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on September 26, 2012, 02:39:52 pm
Well, as a Omnimaga newser care should be taken for not making Omnimaga.org as a bare redirection to TI-Planet by editing the links in the posts. It would  help to miss-interpreting your posts as being mainly advertisements for TI-Planet.
Sure. In important posts tho, I take the required time to make it as good as possible, here, is was just a reference to another program I had in mind, obviously not an ad.
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on September 26, 2012, 05:12:10 pm
Ah yes, Nick's version of Tetris in Lua. I helped test his, although I haven't seen him on the forums in awhile...
Title: Re: nTris - Tetris for nSpire -
Post by: SpiroH on October 02, 2012, 06:30:50 pm
Here is an update to nTris-sdl with the following features:
 1. sdl key auto-repeat as suggested by hoffa in a previous post.
 2. support for dynamically changing the background. Use the 'key_b' to get something like shown below:
 (http://imageshack.us/a/img163/8459/1ntrisbackgreen.png)  (http://imageshack.us/a/img543/6284/2ntrisbackblue.png)
In principle, you can add as many backgrounds as you like. I provide 4 samples. Make sure they are transferred to the same folder as the executable.
3. LBNL, i've also cleaned up the source code. So it should be more readable now.

That's it. Cheers,
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on October 02, 2012, 07:00:13 pm
Could you post a zip file again? Or a .tns file? Sorry mac :P
Title: Re: nTris - Tetris for nSpire -
Post by: Adriweb on October 02, 2012, 07:03:56 pm
Could you post a zip file again? Or a .tns file? Sorry mac :P
For Mac, http://www.unrarx.com/ is great ;-)
Title: Re: nTris - Tetris for nSpire -
Post by: AzNg0d1030 on October 02, 2012, 10:14:52 pm
Could you post a zip file again? Or a .tns file? Sorry mac :P
For Mac, http://www.unrarx.com/ is great ;-)
Ah! Thanks!

edit: no installation needed either WOW
Title: Re: nTris - Tetris for nSpire -
Post by: DJ Omnimaga on November 11, 2012, 05:34:39 am
That game looks so old school that just that seems to make it even better. ;D I wonder if there has been any updates recently? (I haven't gotten time to check the topic until now. I might try it later if I have more free time)