CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: unregistered on February 20, 2017, 05:12:35 PM

Title: Puzzle15 for TI-nspire CX (cas)
Post by: unregistered on February 20, 2017, 05:12:35 PM
Hi everyone!

I'm glad to propose you my very first 100% ARM assembly game : ➜ Puzzle15 (https://tiplanet.org/modules/archives/download.php?id=846417) (Ndless required)

(https://tiplanet.org/modules/archives/captures/1487609861taquin.gif)
(thx to Vogtinator for the video capture from Firebird Ti-nspire emulator ;) )

Here are the keys :
- [2], [8], [4] and [6] to move a bloc ;
- [shift] to mix automatically the puzzle ...any key to stop (I'm fond of  the animation!)
- NEW : [tab] to select an image amongst 15 availables
- [esc] to leave the game.

It runs on TI-nspire CX (cas), so please don't try to run it on classic monochrome TI-nspire models (or it will crash)

Voilà! I hope you have fun !
Title: Re: Taquin (puzzle-15) for TI-nspire CX
Post by: Dream of Omnimaga on February 20, 2017, 08:41:46 PM
Looks nice and smooth :). I'll give it a try later if I can get the game to run on my calc. :)
Title: Re: Taquin (puzzle-15) for TI-nspire CX
Post by: p2 on February 22, 2017, 09:50:20 AM
does that flickering on the screen happen on real calcs as well?
also I'm wondering if it's only while moving a block (screen updates) or always... ^^

besides that it looks really nice and indeed smooth  :thumbsup:
do you plan on adding more pictures to play with? :)
Title: Re: Taquin (puzzle-15) for TI-nspire CX
Post by: Dream of Omnimaga on February 23, 2017, 06:04:02 AM
The flickering is because animated GIFs cannot be more than 256 colors per frame, while the game uses 65536 at a time (since the Nspire CX LCD is 16 bits)
Title: Re: Taquin (puzzle-15) for TI-nspire CX
Post by: p2 on February 23, 2017, 10:47:57 AM
ah ok so it runs perfectly smooth on an actual calc? nice :)
still hoping for multiple pics//levels ^.^
Title: Re: Taquin (puzzle-15) for TI-nspire CX
Post by: unregistered on February 23, 2017, 09:41:05 PM
Yes, the option to choose different pictures would be cool (I'm thinkin' on it) .
But I would not add so many because each picture takes 150Kb (you were right, DJ Omnimaga : the default image I included in Taquin uses 16bit-colors ;) )
By the way, TI-nspire CX also allow 24bit-color images ;  see this mini-program I wrote as an example : PArrots24bpp (https://tiplanet.org/forum/archives_voir.php?id=841279)

(https://tiplanet.org/modules/archives/captures/1486841848parrots.png)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: unregistered on February 28, 2017, 05:18:31 PM
New version : now you can select an image amongst 15 availables ! (initial post updated)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: Dream of Omnimaga on February 28, 2017, 05:40:39 PM
Awesome. Something I am curious about is if in the future, support for mViewer images would be feasible (resized to fill the screen)


I also didn't know the Nspire CX supported 24 bpp. I thought your program just alternated rapidly between multiple color layers, like some SNES games did to have more than 256 colors and how grayscale was done on the older monochrome calculator models.
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: unregistered on February 28, 2017, 06:13:16 PM
Thanks ;) ...First, I wanted to include 24bpp images in Puzzle15...But I quickly noticed that several pictures would take so much memory !!
That's why I decided to choose 16bit-color-images ;)

Here are the 15 pictures availables :

(http://img11.hostingpics.net/pics/495077andrewpons57133.jpg)(http://img11.hostingpics.net/pics/553651roksolanazasiadko31346.jpg)(http://img11.hostingpics.net/pics/729036mattjones67226.jpg)(http://img11.hostingpics.net/pics/666982nasa43979.jpg)(http://img11.hostingpics.net/pics/300529lechonkirb25696.jpg)(http://img11.hostingpics.net/pics/764319mikewilson140883.jpg)(http://img11.hostingpics.net/pics/963634nasa43567.jpg)(http://img11.hostingpics.net/pics/734985matthewhenry115712.jpg)(http://img11.hostingpics.net/pics/752227hisulee38286.jpg)(http://img11.hostingpics.net/pics/848612samuelscrimshaw76649.jpg)(http://img11.hostingpics.net/pics/405388benjamincombs27619.jpg)(http://img11.hostingpics.net/pics/264552jonatanpie117073.jpg)(http://img11.hostingpics.net/pics/761687johncobb14128.jpg)(http://img11.hostingpics.net/pics/654290haraldhofer214964.jpg)(http://img11.hostingpics.net/pics/758473amosbarzeev.jpg)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: p2 on March 01, 2017, 04:45:06 PM
awww, none with a walrus or a sheep :'(
still it's really nice images, I like them :)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: Dream of Omnimaga on March 02, 2017, 09:27:22 PM
Those pics look nice. We definitively need walruses and foxes. :) ( Maybe custom packs?)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: unregistered on March 06, 2017, 05:29:45 PM
...Then  I wrote another version of Puzzle15 especially for codewalr.us : Walruzzle15  ;D

https://www.dropbox.com/s/2bfun32jaqhmjbb/Walruzzle15.prg.tns?dl=0

As you probably guessed, Walruzzle15 contains 15 pictures of walruses  ;)

(http://img4.hostingpics.net/pics/538985bellowingwalrus.jpg)(http://img4.hostingpics.net/pics/678125walruspair.jpg)(http://img4.hostingpics.net/pics/370551walrusmotherandcalf.jpg)(http://img4.hostingpics.net/pics/991300walruslookin.jpg)(http://img4.hostingpics.net/pics/232713walrushello.jpg)(http://img4.hostingpics.net/pics/132614walrus.jpg)(http://img4.hostingpics.net/pics/364375underwaterlook.jpg)(http://img4.hostingpics.net/pics/589736tusksunderwater.jpg)(http://img4.hostingpics.net/pics/710755splashing.jpg)(http://img4.hostingpics.net/pics/358645loungingwalrus.jpg)(http://img4.hostingpics.net/pics/770328lonewalrusicefloe.jpg)(http://img4.hostingpics.net/pics/700345graceful.jpg)(http://img4.hostingpics.net/pics/140244closeup.jpg)(http://img4.hostingpics.net/pics/944361closeunderwater.jpg)(http://img4.hostingpics.net/pics/730415Bluesky.jpg)
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: p2 on March 07, 2017, 09:11:12 PM
I'm loving it O.O
these pictures are perfect!! :love:
Title: Re: Puzzle15 for TI-nspire CX (cas)
Post by: Dream of Omnimaga on April 05, 2017, 05:21:12 AM
This new version is amazing. It needs one with a :walrii: in a corner or something :P