Author Topic: Fruit Ninja  (Read 104794 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fruit Ninja
« Reply #225 on: January 21, 2013, 09:11:35 pm »
Yeah true. I am more concerned about how many sprites there might be depending of which direction they can be sliced in, though and where on the screen. A routine to separate sprites in half this accurately would be hard to make.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fruit Ninja
« Reply #226 on: February 16, 2013, 06:31:25 pm »
Just wanted to say congrats on winning POTY 2012 Deep Thought. You got my vote, I was truly impressed by the great transition of this from the mobile space to our little old graphing calculators. The controls were a stroke of genius and everything else was top notch. I dont know if I said this on RS but well done! You deserve all the praise that you have got not only from us but from others around the web.
Thanks Madskillz :) The game was hella fun to program too.
Well the sprites stop animating once 'sliced'. It should be possible to slice the sprite on the fly, though only if DT feels its necessary/worthwhile.
I hadn't actually thought of that. Slicing the sprite on the fly wouldn't be a bad idea at all—it would just take slightly more time while the fruit is being sliced, which wouldn't really affect the game.

A bigger issue is that the program has two display routines set up—one to display a 16x16 rotating sprite, and one to display a 16x8 static sprite (which handles sliced fruit as well as combo messages and the big X that appears when a fruit is dropped). Fruit sliced at an arbitrary angle would be a static 16x16 sprite which would mean another display routine.

Though now that Axe has a Pt-And( routine, I can use it to speed up the game by almost 200%, which would give me a lot of room for new features...




Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Fruit Ninja
« Reply #227 on: February 16, 2013, 07:53:34 pm »
Huh ? What can be the use of Pt-And here ?

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Fruit Ninja
« Reply #228 on: February 16, 2013, 08:19:54 pm »
Huh ? What can be the use of Pt-And here ?
To draw sprites? :P

What kind of new features, hmmm?
I like milk.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Fruit Ninja
« Reply #229 on: February 16, 2013, 08:21:31 pm »
Instead of drawing the sprites then using a DrawInv, you can now use Pt-And directly to draw white sprites.
In-progress: Graviter (...)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fruit Ninja
« Reply #230 on: February 16, 2013, 08:38:10 pm »
Exactly what leafy said. The sprites are white-on-black, so I currently use Pt-On( and DrawInv to draw the sprites.

That single DrawInv statement takes up almost half the time it takes to draw one frame.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fruit Ninja
« Reply #231 on: March 07, 2013, 02:21:05 am »
Best Fruit Ninja performance possible. Watch carefully:



Spoiler For "Click for explanation":
:trollface:


« Last Edit: March 07, 2013, 02:47:28 am by DJ_O »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Fruit Ninja
« Reply #232 on: March 07, 2013, 02:44:30 am »
* Stefan Bauwens lost :D


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Fruit Ninja
« Reply #233 on: March 07, 2013, 03:07:32 am »
:P
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Fruit Ninja
« Reply #234 on: March 07, 2013, 07:53:50 pm »
What have you done DJ_O

And why did I first read that the poster of that would be Stefan Bauwens? XD

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fruit Ninja
« Reply #235 on: March 10, 2013, 12:46:03 pm »
You should make screenshots for me >.>




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Fruit Ninja
« Reply #236 on: March 10, 2013, 01:20:26 pm »
On a semi related note, I might have found a bug in Fruit Ninja, unless it was mentionned before: As long as you swipe the keyboard, no fruit will appear. ???
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fruit Ninja
« Reply #237 on: March 10, 2013, 02:19:33 pm »
Yes, that's true, and it is unintentional (basically a bug), but it does discourage continuous random swiping.




Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Fruit Ninja
« Reply #238 on: March 10, 2013, 04:18:34 pm »
but you won't get any points if you continuusly swipe the keys to make it easier :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Fruit Ninja
« Reply #239 on: March 11, 2013, 08:17:28 pm »
Yeah, exactly XD

I don't think I'll be coming back to this any time soon by the way.