Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  [Journal] Bend Hero  (Read 3126 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« on: 2009-08-02 07:37:54 »

Starting a bit late, about an hour a go. I want to do bending coat hangers but that didn't see to
want to work - so I've ended up with bend hero. It's sorta like guitar hero but with wire or something:



You're the bending bot (see the yellow thing). Your job is to bend the wire to the template marked out on the background in green. The bending bot travels along the wire (getting faster as difficulty progresses). When you press left/right the bot starts bending the wire (clockwise/anticlockwise). When you release it carries on along the way.

You'll be evaluated based on the on accuracy of the wire to the template. The on screen controls are for the android/iphone versions.

I'm a bit worried the idea is similar to Alan's, but I haven't seen his stuff to check yet (only just read it while posting this) Sad

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #1 on: 2009-08-02 08:45:31 »



Progress:

Controls in a and working (mouse and keyboard)
Can now bend the wire to the shape.
Wire is now limited length
Detects end of wire - and hence bend
Can increase speed of rotate/move to make it harder

Next:

Compare the wire to the template (give a %score)
Add levels (10?) with patterns and target accuracy
Test on Android
Publish the applet for initially testing

Thoughts:

Should add a speed up button to give expert players the chance to set time records
Should be patterns that actually form pictures of something
Level format?
How to handle if the bot goes off the screen
Visuals/Colour updates - what?

Kev



Offline Alan_W

JGO Ninja
***

Posts: 734
Medals: 8


Java tames rock!


« Reply #2 on: 2009-08-02 10:32:46 »

Hi Kev,

Hope you are keeping well.  While we have similar concepts, in yours the player moves, while in mine the workpiece moves.  Sufficiently different I think  Wink  Screenshot now in my thread.

Time flies like a bird. Fruit flies like a banana.
Games published by our own members! Go get 'em!
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #3 on: 2009-08-02 10:35:48 »



Added title screen and a level holder to handle level loading/selection. Few little bits of cuteness around visuals to smooth stuff out.

Tested on android:



Works fine with the on screen controls.

Next - pattern assessment.

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #4 on: 2009-08-02 10:36:22 »

Ah, thanks Alan. Nice work btw! Smiley

Kev

Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #5 on: 2009-08-02 10:44:48 »

when do we get demo Grin
Offline CommanderKeith

JGO Wizard
****

Posts: 1455
Medals: 9



« Reply #6 on: 2009-08-02 10:47:01 »

Far out, I'm finding it hard to understand how you can make a game that works on a phone in a weekend!

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #7 on: 2009-08-02 10:47:30 »

Heh, only been going a few hours - give me a chance Wink

Just having lunch - microwave jacket potato and cheese - quick. Put the baby down for a nap and see if I can on with gameplay Smiley

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #8 on: 2009-08-02 11:09:43 »

Far out, I'm finding it hard to understand how you can make a game that works on a phone in a weekend!

It's not really much of a game as yet Wink On the other hand, it should compile to iPhone too Smiley

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #9 on: 2009-08-02 14:15:26 »

One more hour (real life came up for a bit).

Pattern matching now works, so it knows how close to the pattern you were. I've gone with a circuit board style theme. Handled game complete and feedback to the user. I'm still not entirely convinced it's really a game.. demo soon I hope:



Kev

Games published by our own members! Go get 'em!
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #10 on: 2009-08-02 15:29:19 »

Level desinging seems to work ok now. I design the level in SVG (in Sketsa at the moment cause I love it so much). Then I run a little converter to build a java class that I build straight into the code.



I haven't managed to be accurate enough on this level yet. Maybe 80% is too hard to get.

Or maybe.. the accuracy calculation isn't very good. What I do at the moment is scan along both the template and finally wire and take a set of samples (200 currently). I work out how close each of these samples are to each other, working out the average distance a sample on the wire is away from the pattern. Then I use that as a base for a percentage.

Anyone got any better methods?

Kev

Offline Eli Delventhal
« League of Dukes »

JGO Kernel
*****

Posts: 3574
Medals: 44


Game Engineer


« Reply #11 on: 2009-08-02 16:36:40 »

That sounds pretty good, but maybe you want to just be more forgiving for slight differences in distance. I see your screenshot there and your own bend is very slightly off the line - your problem is probably that even single sample is giving you a scoring detriment along that line, even though they are in reality very close. You should either remove very little for that difference, or even better you should only remove from the total once per "bend," although I don't know if that makes sense for your gameplay. It seems like your entire line is off just because the initial bend was off - so that's one mistake giving you a very large score detriment. Instead maybe you should just test to see where they bended, and subtract for inaccuracies there.

See my work:
OTC Software
<br />
Currently Working On:
Secret project...
Quote from: _Riven
I edit JGO in production, because I simply don't waste time writing bugs
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #12 on: 2009-08-02 16:51:58 »

Na if all the line is just off the other line the average distance of the samples will be pretty low.

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #13 on: 2009-08-02 17:00:09 »

Here's the first demo, 5 levels (they loop eventually).

http://www.cokeandcode.com/applets/bendhero/

Let me know if you have problems.

Any feedback appreicated!

I'm having half hour off Smiley

Kev

Offline Apo

Full Member
**

Posts: 172
Medals: 1



« Reply #14 on: 2009-08-02 17:07:36 »

Nice game =)
But I think its to hard or I am to bad.
For the first level I needed 5 tries and the second ... my best result after 5 tries was 82,6% Cheesy
€dit: now I got 94,5% ... next level I come, 3th level first try 96,1%, the 4th and 5th level solved in the second try ... =) So I think only the first two level are to hard (for me). Perhaps 75% or if you want 80% can solve that problem. =)
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #15 on: 2009-08-02 18:07:39 »

do you lose a lot of points for not finishing. cause in the 3rd level I got realyl good, but I didnt but I was only like 1cm away, and i get 50%!!!!
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #16 on: 2009-08-02 18:13:42 »

Still tuning - but it just takes average distance away from the line, so shouldn't really do that. Could be bugged, if it happens again can you take a screenshot Smiley

Thanks for playing!

Kev

Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #17 on: 2009-08-02 18:33:46 »

Added sound effects thanks to SFXR. Removed a few tiny bugs and built/test for android:



Next:

Try and think of ways to extend the game play
Add a bunch more levels so you can get to the hard bit
Try to design a nicer looking nano-bot thing (damn my art skillz).

Polish mostly I hope for the next few hours.

Kev


Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #18 on: 2009-08-02 19:45:46 »

Added 5 more levels (remember you can skip levels on the title screen but pushing left/right).

Think I'm done with levels and polish.

Remaining:

Find that elusive bit of extended game play
Redesign the damn bending bot
Test on iPhone

Kev

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.16 seconds with 22 queries.