Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Frequent Flier (updated)  (Read 3994 times)
0 Members and 1 Guest are viewing this topic.
Offline Jono
« Posted 2009-01-02 22:52:45 »

Hi! Here's my entry to Java4k (hopefully). It's my very first Java game  Grin

Unfortunately the game requires sound input, and the signed jar is over the size limit. Can this still be a valid entry?
The unsigned jar: http://www.cs.auckland.ac.nz/~jteu004/freqflier/freqflier.jar which is under 4k.
Webstart for signed jar: http://www.cs.auckland.ac.nz/~jteu004/freqflier/freqflier.jnlp



You control the flying saucer by the pitch of your voice. High pitch moves it up the screen, low pitch moves it down. If you're having trouble flying up to the top, a low whistle should be able to get there. If you hit a cloud the game ends.

Your score constantly ticks up, but if you can hold a steady note then you get an ever-increasing multiplier.

Offline undershirt

Senior Newbie





« Reply #1 - Posted 2009-01-02 23:14:17 »

Haha, cool idea.  I first tried plugging my guitar in, but that didn't work at all unless I started playing chords.  Even then, I didn't have much control of the ship. 

It started responding to the microphone when I started singing in it.  I tried singing some scales, but apparently I don't have enough voice control for this game, haha.  I might be tone deaf..

Maybe you should display the current pitch that the game is reading.

Offline Jono
« Reply #2 - Posted 2009-01-02 23:22:53 »

Hehe.. the pitch tracking isn't the most perfect. It's tracking from around 70Hz (D2) at the bottom of the screen up to around 320Hz (E4) at the top. If you're singing, then an "aa" sound is the easiest to recognise.

I found you can just find one high note and one low note to sing in short bursts and you get reasonable control. Of course, then you miss out on the multipliers...

Thanks for trying it out!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #3 - Posted 2009-01-03 00:05:01 »

Yes. On the Java4k.com submission page you can submit a unsigned jar. Do it there.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Jono
« Reply #4 - Posted 2009-01-03 00:26:44 »

Yes. On the Java4k.com submission page you can submit a unsigned jar. Do it there.
Thanks for the info. All done  Smiley

Quote from: undershirt
Maybe you should display the current pitch that the game is reading.
The saucer moves fairly quickly towards the current pitch, so it's pretty much the indicator you want. If the saucer's jumping around a lot then that shows that it's struggling to work out where you are singing (could be singing out of the range, with too much variation, have a loud noise in the background, or it just dislikes you...). Do you think something like a scale on the side showing the accepted pitch range would be useful? I have about 60 bytes left...
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #5 - Posted 2009-01-03 00:27:47 »

Cool game, although I suggest trying to use floats and have a delta to match your voice instead of making it position-based, that would look a lot less twitchy. Also, there get to be too many clouds after not too much time at all.

But the idea is really awesome.

See my work:
OTC Software
Offline undershirt

Senior Newbie





« Reply #6 - Posted 2009-01-03 01:10:09 »

Do you think something like a scale on the side showing the accepted pitch range would be useful? I have about 60 bytes left...
That's a good idea actually. Yeah, try that.
Offline Jono
« Reply #7 - Posted 2009-01-03 01:32:43 »

Cool game, although I suggest trying to use floats and have a delta to match your voice instead of making it position-based, that would look a lot less twitchy. Also, there get to be too many clouds after not too much time at all.
Good idea. I'll make a version that does delta by pitch instead of position by pitch for comparison.
And I agree about the clouds. It was good for testing but makes the games a bit short.

Edit: For comparison here is a webstart version using pitch for delta: http://www.cs.auckland.ac.nz/~jteu004/freqflier/freqflier2.jnlp
And it seems like a big improvement. First time playing this version and I broke 3000 points!
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #8 - Posted 2009-01-03 09:15:33 »

Yeah I like it better that way, seems more smooth. Still a bit hokey on recognition, but it remains an awesome idea.

See my work:
OTC Software
Offline Addictman

Senior Member


Medals: 3
Projects: 1


Java games rock!


« Reply #9 - Posted 2009-01-03 21:42:56 »

Totally awesome Smiley The implementation might not be perfect (recognition) yet, but the family got a good laugh!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline rdcarvallo

Senior Member


Projects: 5
Exp: 15 years


2D Java games forever!


« Reply #10 - Posted 2009-01-04 11:21:27 »

very funny, even more funny when my wife is staring at me in the back....
Offline Jono
« Reply #11 - Posted 2009-01-04 22:29:08 »

Yeah I like it better that way, seems more smooth. Still a bit hokey on recognition, but it remains an awesome idea.
I've managed to find the problem with the recognition / jerkiness. I'm detecting pitch in the frequency domain, which can suffer from pitch doubling: it sometimes thinks you're singing an octave higher than you are. This is why it could jump around a lot while moving downward - it thought those low notes were much higher.

Anyway, I'm trying a new version that does a SingStar and only cares about the note you sing, not the octave. You need finer voice control but the game is way more playable. I'll add a gui component to show the current note and update the original jnlp.

Thanks for all the testing guys! Grin

Edit: The webstart in the first post (http://www.cs.auckland.ac.nz/~jteu004/freqflier/freqflier.jnlp) now loads a version that controls by note, not absolute pitch. A "C" is max speed down and a "B" max speed up. A "G" will keep you stationary while increasing the multiplier.

I've also added a bar at the top shows where it thinks you are singing.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #12 - Posted 2009-01-05 18:17:00 »

Hm, seems significantly more difficult now. I can't make it go up at all, even if I squeak like crazy.

See my work:
OTC Software
Offline Jono
« Reply #13 - Posted 2009-01-05 19:56:56 »

Hm, seems significantly more difficult now. I can't make it go up at all, even if I squeak like crazy.

Now you have to hit the notes. Just going high will make it wrap around and you could be heading down again. The trick is to change your tone only a little bit and you can get really fine control.

I usually spend the first few seconds finding the middle note that makes the bar blue, then shift it a bit from there. I'd like to make the game calibrate it so the first note you sing is the middle.. but I've only got 1 byte left =(

Hold that. I just ran it through Proguard and there's room to burn. Calibration will be in, and possibly levels...
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #14 - Posted 2009-01-06 04:29:10 »

Hm, you might think about having it just max at the highest note instead of wrapping.

See my work:
OTC Software
Offline Jono
« Reply #15 - Posted 2009-01-26 00:46:25 »

Plenty of changes:

- It now calibrates on the note you sing to start the game (this will be the "stationary" note)
- Three levels (see updated screenshot in the first post)
- "power-ups"
  - If you sing a series 1-2-3-2-1 you turn red and are invincible for 6 seconds
  - If you sing five descending notes you turn blue and the multiplier is set to x20 for 3 seconds
- Fancier graphics

Edit:
Here's the source code in case anyone is interested. Unfortunately this was mostly written before I knew about tools like Proguard, so it might be a little cryptic. persecutioncomplex
http://www.cs.auckland.ac.nz/~jteu004/freqflier/P.java
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #16 - Posted 2009-02-17 23:58:00 »

I think I am scaring the neighbors but it's really nice

Offline Jono
« Reply #17 - Posted 2009-02-19 02:42:03 »

I think I am scaring the neighbors but it's really nice
Hehe.. I had to go shut all windows and doors when bug testing. I'm still a bit worried about what the neighbours think  Wink Thanks for trying it out!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!