Samurai Kitchen

Posted by carlos m. icaza, Posted on October 15, 2010, Last updated October 18, 2011

2 votes

We were special guest at the 2009 Adobe Max Russel Brown's Photoshop Pre Conference-Conference and we wrote a game during the session where the attendees could swap in their images for the images in this game.

I am uploading the zip file and hopefully it is self explanatory and you can see how easy it is to create games and do animations in just a few lines of code.

Samurai Kitchen

Carlos

Compatibility: 
Corona 1.1

Replies

jhocking
User offline. Last seen 8 weeks 5 days ago. Offline
Joined: 4 Dec 2010

What are the controls? I'd love to test this out, but I can't tell what you're supposed to do.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 6 weeks 5 days ago. Offline
Alumni
Joined: 22 Jun 2009

swing the word to cut the watermelon

jhocking
User offline. Last seen 8 weeks 5 days ago. Offline
Joined: 4 Dec 2010

Well I get that, but *how* do I swing the sword? I've been clicking and dragging all over the screen and nothing is happening.

iWalter's picture
iWalter
User offline. Last seen 1 hour 40 min ago. Offline
Joined: 11 Oct 2010

I can't get it to work also!

Tim
User offline. Last seen 1 year 5 weeks ago. Offline
Alumni
Joined: 12 Aug 2010

There was an API change in the last release -- localToScreen() changed to localToContent() -- that was causing it to fail. I posted an updated version with that change. http://developer.anscamobile.com/assets/samurai.zip

Thanks for the report.

Tim

p.s.
Hmm, I guess localToScreen() was undocumented. So hopefully there shouldn't be much risk of this change breaking other people's code. :-\

iWalter's picture
iWalter
User offline. Last seen 1 hour 40 min ago. Offline
Joined: 11 Oct 2010

Thanks Tim.

savio
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 25 Jun 2009

How does this game fare with memory losses? I do not see any removeSelf() to destroy all object- I am a new to the SDk and trying to learn from examples and keep memory leaks to a minimum.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 6 weeks 5 days ago. Offline
Alumni
Joined: 22 Jun 2009

@savio : objects get deleted when not referenced via our garbage collector

eng.tareqali's picture
eng.tareqali
User offline. Last seen 11 weeks 23 hours ago. Offline
Joined: 23 Dec 2010

does not work ,would u please upload the correct one ,

than u

arpita53
User offline. Last seen 12 weeks 5 days ago. Offline
Joined: 23 Feb 2012

I cant get this to work, can someone point me to correct download ?

Sesa
User offline. Last seen 8 weeks 2 days ago. Offline
Joined: 10 Feb 2011

Hi everybody :)

I have fixed the problems, so here is the working game:

http://www.mediafire.com/?94au0hmmyoh9d6h

Sesa
User offline. Last seen 8 weeks 2 days ago. Offline
Joined: 10 Feb 2011

Double post - sorry :(