Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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  
  The Puppet Master  (Read 5654 times)
0 Members and 1 Guest are viewing this topic.
Offline malberts

Junior Member





« Posted 2007-11-28 22:32:42 »

"I see the Puppet Master high above on the walkway
He pulls one string and up goes a leg.. Down goes a head
He pulls one more and he lets them all go!" - The Puppet Master, King Diamond

Webstart

Mimic the movements of the puppet by pressing the corresponding keys.

2 Difficulty levels:
  • 1: 4 movements, max 3 repetitions of a move
  • 2: 5 movements, max 2 repetitions of a move, nr. of moves increase faster

Controls:
Left arm implies arm on the left side of the screen, right arm on right side, the same for legs.
Default controls: (Keys can be changed by pressing [c] at the title screen)
Numpad 7 - left arm
Numpad 9 - right arm
Numpad 1 - left leg
Numpad 3 - right leg
Numpad 8 - head

[p] to pause whenever the game says you are allowed to pause.
[esc] to exit.
Choose difficulty level at title screen by pressing numpad 1 or numpad 2.

One extra attempt at every 10 acts completed.
Highscores and last scores are kept for both difficulty levels.

The Puppet Master generates a sequence of moves, the screen displays which keys you must press, and then you have to repeat the moves. You must enter each move in less than 2 seconds or you lose that act.

In space no-one can hear you System.out.println()
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #1 - Posted 2007-11-28 23:43:14 »

How do you play? I don't understand what to do :|

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #2 - Posted 2007-11-28 23:51:36 »

I can't get it to start. I can set keys and all that, but it won't run. Which key?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline malberts

Junior Member





« Reply #3 - Posted 2007-11-29 06:56:54 »

Press 1 or 2 on the numpad to select the difficulty level.

In space no-one can hear you System.out.println()
Offline woogley
« Reply #4 - Posted 2007-11-29 07:13:19 »

I still have that FTP account open? o_O

Anyway, interesting game.

For those who don't get it, it's a version of the game "Simon"
Offline malberts

Junior Member





« Reply #5 - Posted 2007-11-29 07:28:05 »

Yeah it's still open. Hope you don't mind. It's only temporary though.

In space no-one can hear you System.out.println()
Offline woogley
« Reply #6 - Posted 2007-11-29 07:56:48 »

nah I have plenty of space, feel free to use it
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #7 - Posted 2007-11-29 12:58:38 »

I tried 1 and 2, it didn't work. I will try it again when I get home.

Offline malberts

Junior Member





« Reply #8 - Posted 2007-11-29 13:10:56 »

You can now use the normal row of numbers for picking the difficulty as well as the numpad.

In space no-one can hear you System.out.println()
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #9 - Posted 2007-12-03 19:21:20 »

The animation seems to "snap" a bit at the end of the movement, which makes it a bit "uncomfortable". It would also be nice to be able to be allowed to press the keys a bit quicker (not have to wait until the animation is over). Might just be me being a bit impatient.

If you have some bytes over, you might want to try something like:
1  
2  
3  
4  
   g2d.setFont(...);

      g2d.setPaint(new GradientPaint(...));
      g2d.drawString(...);


I think that can do a lot for the presentation of a game.

and maybe even:
1  
2  
   g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
   g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);


Should improve the look as well and I think there is no worry about the framerate anyway. JavaDoc or google should have more info on this if needed.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline malberts

Junior Member





« Reply #10 - Posted 2007-12-03 21:19:36 »

I initially had the anti-aliasing in my code but it made the text look smudged, I didn't know about the text anti-aliasing so I'll turn the graphics's anti-aliasing back on and the text off. GradientPaint on text? If there's a way to outline the text then I might try that but I'm not too sure if that will look good. The presentation of the game isn't too pretty, I know. I'll see what I can change here. I'll probably make the graphics scalable as well.

The time before pressing the keys is the biggest issue I have here. I haven't played the original Simon so I'm not too sure about the timings but the problem is that if I decrease the time before pressing the keys too much, then the animations go by too fast and it looks bad. Then I might as well remove the animations and have the same look as the original Simon 4 colors, which isn't really worth 4k. I suppose I could change it to buffer the input and then play out the animation according to what was pressed.

About the snap, this main purpose of this game was to test out timeline based movement instead of incremented movement. I used graphs to derive equations for the movements, but those graphs are based on "perfect" timings. pi is used in there and that might be rounded badly or the milliSecond timer goes too slow, I'll check out the nanoTimer. The second half of the animation starts when half the animation time has run out and it could be that the timing jumps right before the second half. I'll have a look, thanks.

In space no-one can hear you System.out.println()
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.

E.R. Fleming (16 views)
2014-07-29 03:07:13

E.R. Fleming (5 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!