Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Levak on August 13, 2011, 07:07:18 am

Title: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 13, 2011, 07:07:18 am
I'm going to particpate to the Contest #2 with a random troll game :D

NYAN CAT GAME !

I've done it in 1.5 days, I understood why games are pretty fast to program :D

The beautiful psychedelic title screen :
(http://levak.free.fr/ftp/nspire/NyanCat/screens/title_screen.JPG)
you have to avoid vegetables ....
(http://levak.free.fr/ftp/nspire/NyanCat/screens/in_game_1.JPG)
... and eat candy ...
(http://levak.free.fr/ftp/nspire/NyanCat/screens/in_game_2.JPG)(http://levak.free.fr/ftp/nspire/NyanCat/screens/in_game_3.JPG)
... without dying ...
(http://levak.free.fr/ftp/nspire/NyanCat/screens/high_score.JPG)

On-calc it has a better render but it is slower, since it was coded in 1.5 days I haven't searched to be extensible.

As you can see, I'm using a bug of the TI-Nspire API to put the Lua Game in FullScreen :D
http://levak.free.fr/ftp/nspire/NyanCat/screens/P13-08-11_02.13.JPG
http://levak.free.fr/ftp/nspire/NyanCat/screens/P13-08-11_08.18.JPG
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Jim Bauwens on August 13, 2011, 08:19:01 am
It looks *great*!

We really got some competition :)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: mrmprog on August 13, 2011, 11:37:52 am
Wow! That is really nice. It looks professionally done for a game made in 1.5 days.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 13, 2011, 11:44:11 am
:w00t: THAT is AWESOME this is lua right can you run this on a computer? or does it have to be a ti-nspire either way is cool I am getting a ti-nspire (maybe CX) today from birthday money :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 13, 2011, 11:50:13 am
It can run on the Ti-Nspire Computer Software, but it isn't really as cool as on the CX, because the timer is so fast that you miss everything =( (I can't make difference between the computer software in calc mode which is the default mode and the calculator itself, in Lua ...)

I'm compiling a video demo =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 13, 2011, 12:03:04 pm
thats ok I will get an nspire
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: fb39ca4 on August 13, 2011, 01:43:00 pm
Lol nice! :D

I noticed you used the "toast" and not the "pop-tart" version of Nyan, though.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Adriweb on August 13, 2011, 01:53:47 pm
Nice ! ;-)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: DJ Omnimaga on August 13, 2011, 02:30:25 pm
Lol nice. It looks pretty sweet and I like how you use the full screen glitch.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Juju on August 13, 2011, 03:16:10 pm
Nice :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Deep Toaster on August 13, 2011, 08:39:50 pm
That is fast, but it still looks great O.O How did you do that outline text?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: pianoman on August 13, 2011, 09:09:05 pm
That looks pretty awesome! Cant wait for Monday :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 13, 2011, 09:52:27 pm
Here is the video demo  !
http://www.vimeo.com/27661252


For the "outline text" or "the glitch", I said I used a bug in the TI-Nspire Lua API, that means it will be solved in the next updates of the Lua framework.
The bug is detailed here :
http://ti.bank.free.fr/forum/viewtopic.php?f=19&t=7271

As you can see, it hasn't got any advantage since it doesn't refresh all the time !! So there is no "outline text", everithing is under the 28px header. I only redraw the entire screen in black blue to make an impression of freedom =)

I noticed you used the "toast" and not the "pop-tart" version of Nyan, though.
The pop-art version is too small to be drawn directly, and too big to be scaled at the TI-Nspire size =(
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Deep Toaster on August 13, 2011, 10:02:46 pm
Okay, that wins by default O.O
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 13, 2011, 10:19:15 pm
Okay, that wins by default O.O

In a way, it renders well only on CX.

 - On non-CX the screen sucks
 - On Computer it is too fast and unplayable and I can't make difference in Lua
 - On emulator, if you play too long time it will reboots (and I made my possible to free the memory at every critical points) ==> but it is still playable !

But yeah, if DJ_O has a CX to test, I think he's gonna play all the night. I'm sorry, you will had to play the music with your PC :D

Oh, let me think ... I can play sound in Lua with jim's method :o   \^/
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 14, 2011, 01:47:44 am
I changed some default display configuration to make it easier to see on the non-CX models with a black&Wite theme :


(http://levak.free.fr/ftp/nspire/NyanCat/screens/monochrome_compatible.JPG)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: imo_inx on August 14, 2011, 09:39:58 am
Sweet! I can't wait to play it when I get a calc.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: p2 on August 14, 2011, 10:10:28 am
May you add flying, blue lobsters as items?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: DJ Omnimaga on August 14, 2011, 10:30:38 am
Looks nice Levak, and I agree with lobsters. :P

Btw does this have sound?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 14, 2011, 11:00:40 am
:P


I'm working on the sound... not really its integration in the code, but to make the sound :D (The Nspire cannot read MIDI or MP3 sounds \o/)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 14, 2011, 04:35:50 pm
Here is the sound version \o/
http://www.vimeo.com/27689207

Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Jim Bauwens on August 14, 2011, 04:39:03 pm
Very nice Levak :)
Good job on the sound!
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 14, 2011, 04:40:48 pm
Very nice Levak :)
Good job on the sound!

It wouldn't be possible without your previous good job ! =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Juju on August 14, 2011, 08:19:07 pm
Oh my god sound it's so awesome :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: leafy on August 14, 2011, 09:52:43 pm
oO
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 14, 2011, 09:56:55 pm
O0
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Ashbad on August 14, 2011, 09:58:50 pm
This won my vote
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 14, 2011, 09:59:19 pm
me too
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: SolusIpse on August 14, 2011, 10:07:40 pm
This won my vote

Now if only I had a CX to try this.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: ztrumpet on August 14, 2011, 10:25:47 pm
Alright, Levak, that looks awesome.  Nice meme driven game. ;)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: yunhua98 on August 15, 2011, 04:19:52 pm
/me wishes he could download to CX now.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: fb39ca4 on August 15, 2011, 05:05:56 pm
How???
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: yunhua98 on August 15, 2011, 05:37:54 pm
/me downloads to CX now.

er...  bad wording.  :P  fixed now.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: DJ Omnimaga on August 15, 2011, 05:40:49 pm
Wow really nice with the sound and all. And I think Yunhua98 meant he wish he could try it now, but the contest rules disallows the release of the entry until 1 AM GMT-5, so Yunhua98 will have to wait a bit longer :P

Suggestion Levak: Make a version that isn't full screen too, not for the contest, but for future Nspire OSes, in case TI ever fixed the full screen glitch and caused your game to no longer display properly on those OSes.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 15, 2011, 06:22:22 pm
Suggestion Levak: Make a version that isn't full screen too, not for the contest, but for future Nspire OSes, in case TI ever fixed the full screen glitch and caused your game to no longer display properly on those OSes.

This is already managed since the Sofware doesn't display in full screen.
So, only one condition and one instruction (gc:begin()) to remove and here we are =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 15, 2011, 10:31:02 pm
 Will you have compatability for OS 3.0.2?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 15, 2011, 10:31:54 pm
Will you have compatability for OS 3.0.2?

Yes it is.
Generated with maketns (by JayTe), and re-saved with TI-Nspire Computer Software 3.0.1, thus it is compatible with both 3.0.1 and 3.0.2
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 15, 2011, 10:33:43 pm
:w00t: great! So download is available tommorrow?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 15, 2011, 10:34:09 pm
:w00t: great! So download is available tommorrow?

Download will be available in 2 hours 20 minutes. =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 15, 2011, 10:35:59 pm
!?!?! Awesome  *annoyingorange goes in time machine untill 12:00
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 16, 2011, 01:36:26 am
Everythings is there :
http://levak.free.fr/ftp/nspire/NyanCat/

Have fun =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: fb39ca4 on August 16, 2011, 01:37:22 am
lol
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Kjelddy on August 16, 2011, 05:11:26 am
in one word : AWSOME
great job levak :P


KJ
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 16, 2011, 08:51:57 am
Great! testing now but how do you go full screen?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 16, 2011, 09:01:16 pm
Great! testing now but how do you go full screen?

You are running what hardware/software ?
The fullscreen mode is active by default under the TI-Nspire handheld.
Mine is a CX + 3.0.1
I' haven't tested on 3.0.2 (even if I know it is compatible). Is that your case ? CX + 3.0.2 ?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 16, 2011, 09:03:11 pm
Never mind I had not tested on  a real calc just on student software I voted for this!
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 16, 2011, 09:08:39 pm
Never mind I had not tested on  a real calc just on student software I voted for this!
Yeah, the bug is not present on TI-Nspire Computer Software. Although I had a fixing part to manage TI-Nspire Computer Software, I can't make difference between TI-Nspire Computer Software in calc mode and the CX ...
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 16, 2011, 09:17:56 pm
ok no wonder
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: DJ Omnimaga on August 16, 2011, 09:24:39 pm
Awesome work Levak! Just tried this on my calc.

The only bug report is that the battery indicator still appears in game (half a second after it starts running), but other than that it's full screen and the battery indicator kinda blends into the game anyway. I got OS 3.0.1 too btw (on my CX).
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 16, 2011, 09:30:13 pm
Awesome work Levak! Just tried this on my calc.

The only bug report is that the battery indicator still appears in game (half a second after it starts running), but other than that it's full screen and the battery indicator kinda blends into the game anyway. I got OS 3.0.1 too btw (on my CX).

Objection : it is not a bug :D
The full-screen bug in the API lets us draw one time something and overwrite the header part.
The problem is that the battery indicator always update whereas us, can't update this part in real-time. =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Eiyeron on August 17, 2011, 05:09:19 am
An bonus idea: Trippy gem! Get a psychedelic vision, with colorful background and so on..., and burn your eyes with! :p
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: GreenFreak on August 17, 2011, 05:13:47 am
Pls port it to the TI84+ ;D

Looks very nice!
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: TIfanx1999 on August 17, 2011, 05:46:30 am
I have no Nspire to test on, but it looks awesome sound and all Levak. Great job! ^^
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Eiyeron on August 17, 2011, 07:04:20 am
I made a two channel 8-bit version. THis version will be modified, and exported in a nsf or fmt (famitracker), if you want. The begin will be modified.
Made with Famitracker.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 17, 2011, 07:14:25 am
For the sound, the problem is not itself (it can be found anywhere) but because it has to be reproduced note by note in a table like this :


nyanSong = {
740, 0.2,
830, 0.1,
50, 0.1,
554, 0.1,
622, 0.2,
494, 0.05,
50, 0.05,
587, 0.1,
......
}

If you got the Nyan cat in this kind of format, then, yes it will be very appreciated =)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Eiyeron on August 17, 2011, 07:34:06 am
If you use http://famitracker.shoodot.net/ (http://famitracker.shoodot.net/) Famitracker, you'll get a note table...
Here the fmt!
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 17, 2011, 11:50:53 am
My highscore is 2132.67 can anyone beat it?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 17, 2011, 04:26:43 pm
My highscore is 2132.67 can anyone beat it?

Look at the end of the readme :D
Quote
PS : my High Score is 2667 :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 17, 2011, 10:15:43 pm
I found a bug my calculator Slowed down and is still slow after I played last night for about 2hrs?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 17, 2011, 10:19:44 pm
I found a bug my calculator Slowed down and is still slow after I played last night for about 2hrs?

I said it in the README file.
Quote
- The Lua interpreter has some lacks in memory managment. This game uses a lots of ressources
   simultaneously. Your TI-Nspire may slow down if you play too much to this game, although I took care
   of this problem in the source code (memory optimisations and clean out)


Just reset it (reset button behind the Calc)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 17, 2011, 10:26:01 pm
reset as in delete all variables?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 17, 2011, 10:26:39 pm
reset as in delete all variables?

No, the reset button behind the calc will only reboot your calc. Don't worry.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Deep Toaster on August 17, 2011, 11:24:20 pm
Pls port it to the TI84+ ;D
Yeah, bluescale and all! ;D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on August 17, 2011, 11:55:17 pm
Pls port it to the TI84+ ;D
Yeah, bluescale and all! ;D

I never made game with my TI-83+ (only basic stuff like Guess number, a random student picker*cheated* for my teacher, maths stuff etc ..)

So at least, no :D
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Darl181 on August 17, 2011, 11:57:02 pm
Hmm I might be able to do it, tho i would prolly port this (http://www.mylostgames.com/play/nyan_cat_lost_in_space) first :P
All I'd need to do it would be a bunch of food sprites (and a nyan cat animation in some grayscale or another)
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: LincolnB on August 18, 2011, 11:45:54 am
Yes! Please do!
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 18, 2011, 12:03:50 pm
Plaese do
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: DJ Omnimaga on August 18, 2011, 02:52:32 pm
Awesome work Levak! Just tried this on my calc.

The only bug report is that the battery indicator still appears in game (half a second after it starts running), but other than that it's full screen and the battery indicator kinda blends into the game anyway. I got OS 3.0.1 too btw (on my CX).

Objection : it is not a bug :D
The full-screen bug in the API lets us draw one time something and overwrite the header part.
The problem is that the battery indicator always update whereas us, can't update this part in real-time. =)
Oh ok, I was sure it was some sort of glitch you exploited.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Jim Bauwens on August 18, 2011, 03:13:51 pm
No, he means that the battery icon in the right corner isn't a bug :)
The fullscreen thing itself is a bug.
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: thenyanpeople on August 30, 2011, 08:37:38 pm
Where is the download link for the cx?
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: annoyingcalc on August 30, 2011, 08:38:30 pm
http://ourl.ca/12565
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Kjelddy on September 29, 2011, 02:20:44 pm
found another bug :P a bit late but still
Spoiler For Spoiler:
when u play the game on calc and press home while running it, and you go back to it later it queed up all the items at one point. if your lucky you can pass that and reach an endless score. I've got to 4066643.07000002 :P. but I could have run it endlessly but I needed to open another file :(


didn't know someone posted this already :O
Title: Re: NYAN NYAN NYAN NYAN ... this is the game :D
Post by: Levak on September 29, 2011, 02:31:56 pm
Yeah yeah ... someone already told me that .... but it is a crappy timer bug that I can't figure out. =(