android
  #1  
Old 03-28-2010, 04:04 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default Poke the Penguin v1.0.1

Ok, so here it is! I know a couple of you have been waiting for this... Poke the Penguin!

Basically, you poke the penguin until it finally gets REALLY angry and explodes. With any luck it should explode at a random time so as to have the element of suprise!

Many thanks to Habhome and Gruffler, who have helped me understand LUA and how it works

Version 1.0.1, no known issues. Feedback is appreciated
Attached Images
File Type: png frame1.png (31.9 KB, 279 views)
File Type: png frame19.png (32.6 KB, 250 views)
Attached Files
File Type: zip Poke the Penguin.zip (902.1 KB, 774 views)

Last edited by RobertsAccount; 03-29-2010 at 12:33 PM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 03-28-2010, 04:14 PM
MoePercent MoePercent is offline
Junior Member
 
Join Date: Feb 2010
Posts: 9
Default

the graphics are great xD
Reply With Quote

  #3  
Old 03-29-2010, 09:07 AM
blikbier's Avatar
blikbier blikbier is offline
Junior Member
 
Join Date: Feb 2010
Location: Netherlands
Posts: 98
Default

Fun xd
Reply With Quote

  #4  
Old 03-29-2010, 10:11 AM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

i founded you an issue.

you need to add the :close() to all the stuff because when you quit the error thing comes up as im sure habhome will tell you

other than that, absolutely amazing. much better quality than i thought it would be. add the reactions in!
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #5  
Old 03-29-2010, 11:45 AM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by Mr Wunderbar View Post
i founded you an issue.

you need to add the :close() to all the stuff because when you quit the error thing comes up as im sure habhome will tell you

other than that, absolutely amazing. much better quality than i thought it would be. add the reactions in!
Hmm... I don't get that error on the player
I'll talk to Hab and see what he has to say...
Reply With Quote

  #6  
Old 03-29-2010, 12:00 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Update: This time it should close all the images, meaning no error message when you quit the app
Reply With Quote

  #7  
Old 03-29-2010, 12:11 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by RobertsAccount View Post
Update: This time it should close all the images, meaning no error message when you quit the app
Not closing images doesn't result in an error message. Those images just stay in the memory (I think) which can cause other problems with the player's UI. Therefore you need to close them.

It doesn't directly affect the app itself, so that error message has another cause.

EDIT: Ah you've fixed it already, great

Last edited by Brett_val; 03-29-2010 at 12:37 PM.
Reply With Quote

  #8  
Old 03-29-2010, 12:30 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Actual proper update: Fixed stuff Cheers Habhome
Reply With Quote

  #9  
Old 03-29-2010, 12:36 PM
Dazana's Avatar
Dazana Dazana is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Default

love it but maybe you could give the pinguin more things to take "revenge"
in this online version there are couple of things he can do
http://gamesville.com/html_downloads/pokePenguin.php
i hope it isn't to hard to do

Greetz Dazana
Reply With Quote

  #10  
Old 03-29-2010, 12:41 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by Dazana View Post
love it but maybe you could give the pinguin more things to take "revenge"
in this online version there are couple of things he can do
http://gamesville.com/html_downloads/pokePenguin.php
i hope it isn't to hard to do

Greetz Dazana
This is on my mind Dazana, probably won't happen for a while... But it will
Reply With Quote

  #11  
Old 03-29-2010, 01:22 PM
Dazana's Avatar
Dazana Dazana is offline
Junior Member
 
Join Date: Feb 2010
Posts: 5
Default

take your time
Reply With Quote

  #12  
Old 03-30-2010, 09:07 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Quote:
Originally Posted by Brett_val View Post
Not closing images doesn't result in an error message. Those images just stay in the memory (I think) which can cause other problems with the player's UI. Therefore you need to close them.

It doesn't directly affect the app itself, so that error message has another cause.

EDIT: Ah you've fixed it already, great
I suspect that the error message was a random firmware flunk, but the images still should be closed properly.

Though I'm not sure if "list:close()", works or if you have to loop through the list and close the elements separately.
"for i=1, #list do
list[i]:close()
end"
It is now changed to individual closing just to be on the safe side.
And due to a mistake while transferring files between me and Robs the explosion sound have reverted back to the old one I think. The file accidentally got lost and deleted into cyberspace, so it'll have to be re-made.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #13  
Old 04-06-2010, 02:11 AM
Gruffler's Avatar
Gruffler Gruffler is offline
Junior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 83
Default

I think that the explosionsound isn't really played when the penguin explodes it's a second after that...
and the first touch when opening it is not recognized
and the penguin first time explodes always after 6 touches

:edit:
found the solutions
shall I tell you or do you want to find them yourself?
__________________
You're wrong here! My post is above!!! /\
_______________________________l

LOOK! MY! APPS!
Reply With Quote

  #14  
Old 04-06-2010, 03:52 AM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by Gruffler View Post
found the solutions
shall I tell you or do you want to find them yourself?
Fire away Gruffler
Reply With Quote

  #15  
Old 04-06-2010, 05:00 AM
Gruffler's Avatar
Gruffler Gruffler is offline
Junior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 83
Default

1. explosionsound: the sound has a pause at the beginning and is played when the animation starts
solution : cut the wav and play it when frame5 is updated (first explosion image)
2. first touch: ended is nil and not false the first time it performs click() so "ended ~= true" is better than "ended == false" :P
solution: use "ended ~= true"
3.penguin explodes first time after 6 touches because "goal = math.random(6,25)" is called before "math.randomseed(os.time())"
solution : call "goal = math.random(6,25)" after math.randomseed(os.time())"

attached main.lua and explode.wav
Attached Files
File Type: zip Gruffler.zip (240.0 KB, 11 views)
__________________
You're wrong here! My post is above!!! /\
_______________________________l

LOOK! MY! APPS!
Reply With Quote

  #16  
Old 04-06-2010, 05:15 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Another solution for the ended issue would be to just declare the variable as false in the beginning. I always declare my variable's initial value instead of letting the app set them after one loop or something.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #17  
Old 04-06-2010, 08:41 AM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

2 questions pour toi:

how did you capture the different frames of the animation from the computer?

May i attempt to add my own ending to the poking?
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #18  
Old 04-06-2010, 11:14 AM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by Mr Wunderbar View Post
2 questions pour toi:

how did you capture the different frames of the animation from the computer?

May i attempt to add my own ending to the poking?
I simply took print screens of the different frames of the flash game
And yes, you may use your own images, post it here when you're done!
Reply With Quote

  #19  
Old 04-06-2010, 11:25 AM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

print screens!?

ok... that sounds...challenging. I'll give it a go...

how did you manage to take them so well? I can't manage to press it quickly enough in order to get enough good pics
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar

Last edited by Mr Wunderbar; 04-06-2010 at 11:53 AM.
Reply With Quote

  #20  
Old 04-06-2010, 11:52 AM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by Mr Wunderbar View Post
print screens!?

ok... that sounds...challenging. I'll give it a go...
Shouldn't take too long...
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:38 PM.