android
  #1  
Old 03-22-2010, 07:19 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default ZenDuck




Features three play modes:

Chase Ducks
Chase the ducks as they fly within an invisible frame. The crosshair will stay in the center of the screen, and you will have to move it to a duck. Clicking the screen (anywhere) will shoot it.
When you have shot all of them, you will advance a level and you will get more ducks to shoot .

If you can't find your ducks, you can press and hold the screen, and it will show lines which point in the direction of the ducks' locations:
The longer the line, the further away the duck is.



Hunt Ducks
Watch the ducks fly by and move the crosshair to them to shoot them (again, by tapping the screen). You will get 10 points for a hit, and -5 for a miss. You have to hit at least 41% of the ducks to advance a level.

QuackTap
Very similar to Hunt Ducks, only now you can tap on the ducks to shoot them.
Thanks to dashiva76 for the name

Thanks to blikbier for the gun sound,
and I also want to thank Diddykong13, because his Falling Balls code helped me to easily load the saved highscore.

Don't shoot ducks for real because they are lovely animals. While searching the internet I found that people still do this as a hobby, which is horrible.
Instead, shoot them on your Zen .

This is my first game, so any suggestions/improvements are more than welcome

Version 2
Two game modes:
1) The game described above is now called "Chase Ducks" because you will only advance a level when you have shot all of them.
2) Second mode "Hunt Ducks" is more like the classic game. The screen is fixed and the crosshair is scrollable, and ducks will fly by at different speeds and angles.

Version 2.1
lag fixed
more efficient redrawing
And due to being requested; now also contains a tap-ducks game.

Version 2.2 --contained unsupported wave file, which crashed the player. Sorry about that, please download v2.3
background added
minor game improvements

Version 2.3
Corrected mistake.

Version 3 -in progress
accelerometer scrolling.
Attached Images
File Type: png sh1.png (19.8 KB, 1372 views)
File Type: png sh2.png (11.1 KB, 1357 views)
File Type: png sh0.png (15.6 KB, 1348 views)
File Type: png sh3.png (65.9 KB, 1204 views)
Attached Files
File Type: zip ZenDuck_v2.3.zip (663.1 KB, 866 views)

Last edited by Brett_val; 03-26-2010 at 08:01 AM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 03-22-2010, 07:36 PM
daddycoco's Avatar
daddycoco daddycoco is offline
Junior Member
 
Join Date: Mar 2010
Location: United States, New York
Posts: 26
Default

im putting it on my ZEN now, once i play it, i'll see if theres any bugs or not, it looks great



EDIT: like it alot, it gets a little frustrating scrolling, i was thinking of the classic game, maybe in stead of scrolling just the ducks flying by (some fast, slow, etc.) but i love it 9/10

Last edited by daddycoco; 03-22-2010 at 07:44 PM.
Reply With Quote

  #3  
Old 03-23-2010, 07:19 AM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

havent got my cable with me atm but as soon as i can i'll load it. looks great!
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #4  
Old 03-23-2010, 07:47 AM
mustomax mustomax is offline
Junior Member
 
Join Date: Feb 2010
Posts: 51
Default

Great !
With the accelerometer,it would be greater...
Reply With Quote

  #5  
Old 03-23-2010, 11:46 AM
Jenner210 Jenner210 is offline
Junior Member
 
Join Date: Feb 2010
Location: Denmark (DK)
Posts: 3
Default

I vote for an accelerometer version too, but it's still pretty fun
Reply With Quote

  #6  
Old 03-23-2010, 12:26 PM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

yeah accelerometer scrolling would be beast...
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

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

Good idea about the accelerometer, I'll implement that. I hope it will be fast enough though. Accelerometer scrolling takes a bit more calculations..

Quote:
Originally Posted by daddycoco View Post
it gets a little frustrating scrolling, i was thinking of the classic game, maybe in stead of scrolling just the ducks flying by (some fast, slow, etc.)
I realized that this game is indeed not like the classic duckhunt. So I renamed my game to Chase Ducks, and added Hunt Ducks. You can now choose between the two modes.

I wanted to have a background picture in the Hunt Ducks mode, but that caused the game to really slow down, and also the movements of the crosshair were not fluent anymore. I guess drawing a picture instead of screen.fillrect(0,0,400,240) is too heavy for our player . (the picture was also 400x240 by the way)
Reply With Quote

  #8  
Old 03-23-2010, 04:25 PM
daddycoco's Avatar
daddycoco daddycoco is offline
Junior Member
 
Join Date: Mar 2010
Location: United States, New York
Posts: 26
Default

accelerometer would be great! And i am thinking about what you said about the background...thinking hard


EDIT: maybe you could keep the simple background (blue) but add some details? I have no clue about this, im no programmer, so im not sure if its possible, add details such as clouds, smoke, etc. example: a duck is flying by and so is a cloud, the cloud blocks the shot, so it makes it much harder to shoot, im not sure if you could grasp what im saying, but see if you could i also played the two modes, i love em'
Reply With Quote

  #9  
Old 03-23-2010, 04:40 PM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

i dont like the traditional duck hunt game. the cursor lags behind at makes it annoying to shoot.

id prefer simply tapping the birds to shoot them, it would be better than boink anyway.
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #10  
Old 03-23-2010, 04:47 PM
matt_bracken matt_bracken is offline
Junior Member
 
Join Date: Feb 2010
Posts: 43
Default

I agree with Mr Wunderbar, just tapping and shooting would be good. But the game works great and rolls back the years. Awesome effort!

Did come up with one error when I went from one game to the other, but it restarted fine and didnt go to scan- not exactly the end of the world.
Reply With Quote

  #11  
Old 03-23-2010, 04:51 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Great game! It's grown on me after 10 minutes of vigorous duck shooting... Only thing is, the cursor can lag behind when you drag your thumb/finger across the screen slowly. I'm not sure why this is, hopefully you can figure it out Otherwise, nice work!!
Reply With Quote

  #12  
Old 03-23-2010, 04:55 PM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

Why are you redrawing the entire background every frame instead of just the parts that were changed?
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

  #13  
Old 03-23-2010, 07:47 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 matt_bracken View Post
I agree with Mr Wunderbar, just tapping and shooting would be good. But the game works great and rolls back the years. Awesome effort!

Did come up with one error when I went from one game to the other, but it restarted fine and didnt go to scan- not exactly the end of the world.
Okay, if you like tapping, I'll might take out the crosshair and change it to tap-shooting.

I'll try to recreate the error.. if I can find it I will fix it.
Which game was it that you were playing, and how long (how many levels) was it before you switched to the other one?

Quote:
Originally Posted by RobertsAccount View Post
Great game! It's grown on me after 10 minutes of vigorous duck shooting... Only thing is, the cursor can lag behind when you drag your thumb/finger across the screen slowly. I'm not sure why this is, hopefully you can figure it out Otherwise, nice work!!
Yeah it's addicting isn't it, while testing I also couldn't stop

About the lag, (I didn't notice it myself actually, I think I always drag too fast) I suspect that it has something to do with the os.sleep(), but I already put that outside of the else statement, so that it now sleeps everytime in the loop.. (which is also in v2) but maybe that's still the culprit?

At this moment I don't have a clue why there is lag when scrolling slowly.. I'll think about it, and if any of you have any ideas about this, I'll be glad to hear them.

Quote:
Originally Posted by ThievingSix View Post
Why are you redrawing the entire background every frame instead of just the parts that were changed?
Thank you ThievingSix. You've really opened my eyes. A formula to only redraw the parts that were changed would be quite easy to create, and it will certainly make everything faster. I'll test it and (probably) add it to the next update.

Thanks for the suggestions!
Reply With Quote

  #14  
Old 03-24-2010, 03:31 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 Brett_val View Post
At this moment I don't have a clue why there is lag when scrolling slowly.. I'll think about it, and if any of you have any ideas about this, I'll be glad to hear them.
Well I think xConStruct had the same problem with his 3D Wireframe Test app... Maybe you could approach him and ask how he fixed it?
Reply With Quote

  #15  
Old 03-24-2010, 11:21 AM
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
Well I think xConStruct had the same problem with his 3D Wireframe Test app... Maybe you could approach him and ask how he fixed it?
While reading that thread again, I found what Cilmaviel used to speed up his Paint app. It also fixed the lag in Hunt .
But I'm still not sure what you mean by "lag when moving slowly".
If it's still there, can you please explain?

So I think I fixed the lag. But I already said I'd make it into a Boink game, so I added Boink Ducks. I really didn't know what to call it, "Tap Ducks" was really lame, so "Boink Ducks" it is... Anyone have a better name?

It's also now only redrawing parts that have changed. When drawing new ducks, it first draws over the old duck with backgroundcolor.
I'm not sure if this is better, or easier for the player, but it works

One thing I still need to change: what can I do to "pause" the game when you go to a new level? It now shows the "new level" screen, but if you accidentally tap it, the new level starts. os.wait() and os.sleep() are not helping, because it seems that the tap is still registered and executed as soon as the sleep or wait is over...
Is there a way to clear the control.read() queue?
Reply With Quote

  #16  
Old 03-24-2010, 11:35 AM
dashiva76's Avatar
dashiva76 dashiva76 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Default

QuackTap? Too stupid? :P
Reply With Quote

  #17  
Old 03-24-2010, 11:51 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,081
Default

Better than Boink Duck I'd say. That just makes me think about the expression "to boink beaver"... Which is definitely not the same thing.
__________________
"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

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

Haha I realize now that Boink Ducks is gross and stupid Since Habhome said that I cannot get it out of my mind

QuackTap would be nice.. at least there are no wrong associations with it.. I'll change it on the next update.
Reply With Quote

  #19  
Old 03-24-2010, 03:43 PM
Gruffler's Avatar
Gruffler Gruffler is offline
Junior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 83
Default

you quacktap is very nice i like it
an improvement would be if you would add transparency in duck images because it looks a bit weird if 2 ducks are flying across to each other...
__________________
You're wrong here! My post is above!!! /\
_______________________________l

LOOK! MY! APPS!
Reply With Quote

  #20  
Old 03-25-2010, 05:08 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

QuackTap it is

I finally placed a background picture on it, because with the use of ThievingSix's tip there is no slow down. I also made it a little harder to advance a level in Hunt and Tap mode. And I added a sound of ducks quaking. Thought that would be funny. Didn't put it everywhere, because that would be annoying. Only when you start a new level.

So I think I've pretty much completed version 2, but if there are any bugs I'll fix them ofcourse. (I couldn't recreate the error with the changing of playmodes, but I did change some stuff when it changes playmodes, so I hope that bug is done for.)

For version 3 I think I'll add clouds and maybe other objects that block your shot as daddycoco suggested. That sounds like a nice idea.
And for the accelerometer scrolling, I haven't got time try that yet, and I also believe that it will be almost impossible to hit any ducks with that..
But I'll try it anyway

I'm not sure when version 3 will be ready, because I also have to work a little more on Notepad.

Anyway, first post is updated
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 11:32 AM.