0 Members and 2 Guests are viewing this topic.
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
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.
I noticed that those bmps are real bmps, so if I don't like graphics, I can change them ?
Nice work.
It looks pretty nice, but now the screenie disappeared.
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.
Quote from: cyanophycean314 on September 22, 2012, 05:21:38 pmIt looks pretty nice, but now the screenie disappeared. 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!?
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.
1. Reduced the nbr of bitmap files to only one: the background bitmap. The other two were converted into data (thanks hoffa!).
Looking cool! Is there then also color on the cx, coz that would be awesome