Applet - Platformer Physics

I put this together this week.

It’s a pure Java applet this time around with no natives and no deadly security prompt. This is powered by PulpCore and is integrated with the latest build of Phys2D along with some extra code for scrolling and other niceties that I ported over from SlickSet.

Controls:

Left/Right = Move
Spacebar = Jump


http://www.stencyl.com/slickset/screenshots/webstart.gif

http://users.stencyl.com/jon/pulp/Plat.png

Target framerate is 60 FPS (though it may fluctuate by up to 5 FPS). On a 1.6 GHz Pentium 4 / 512 MB / Radeon 7500 setup, it still clocks in at the full 60 FPS. If anybody has a worse computer (1 GHz / 256 MB), I’d be very interested in knowing what numbers you get. :slight_smile:

very nice, constant 57fps here.

Very good, constant 58 fps here on 3ghz.

You wanted a slow machine…
35 FPS on a PIII, 440MHz, 128MB.
Looks good, sounds good, but there seems to be a lag of several seconds on the keyboard input.
Simon

Nice, starts at 54fps and rises to a steady 59fps here;

XP, P4 2.8Ghz HT, Geforce 6600GT 256MB

Doesn’t work here. It asks me to install Java.

1.6.0_04, latest FF (java enabled), winxp.

edit: Works with Opera. 59fps. Usage 16-18% (x2 4200).

Hmm, I’m seeing that config work fine over at pulpgames.net.

Any more info about your machine? Do other applets run okay? And JavaScript errors?

I have no idea. My old 400 Mhz PC died on me. I never had any input problems with it, but then again I never tested anything that used 100% processor.

Just now tested on an 800Mhz Mac, 100% processor usage, 28fps, no input problems.

What other information is relevant? I do use the NoScript add-on. So, on the first load JS/Flash/Java is disabled. Once the domain is temporarily allowed the page is reloaded automatically.

Apart from this I can’t really think of anything which may have an effect.

Other applets do work just fine. And the applets on pulpgames.net used to work fine as well (same issue now).

I just tried WinXP + FF + NoScript and it ran just fine, on both FF 2 and FF 3. So I’m guessing there’s some conflict with some other Add-On, or a conflict with an older Java runtime on your machine (installing Java 1.3 after installing Java 1.6 can mess up FF).

If you felt like doing me a favor (smiles!) try disabling all your add-ons one a time, and let me know if it eventually works for you. If you find an Add-On with the problem, or a particular Add-On setting, let me know and I’ll look into it.

Hum. It’s a mystery.

After disabling all add-ons and re-enabling em it works fine. ???

58fps here, no input problems.

AMD 64 3000+ (1.8GHz)
512MB RAM
ASUS Radeon Pro 256MB
Java 6

On a iBook G4 here, and the game doesn’t respond to any keyboard input. I clicked on the game before trying to play, but unfortunately, no dice.

No problem. I’m no Mac expert by any means, but I’ll tell you what I know.

OSX Tiger 10.4.11
1.33 GHz PowerPC G4
1 GB DDR SDRAM
JDK 1.5.0_07

Perhaps I’m going blind, but I can’t seem to find a link to your game anymore? There doesn’t seem to be one in your initial post. I was going to re-try it to at least get the framerate number for you (can’t remember what I was getting previously), but couldn’t find it anywhere…

Hi Jon,

The applet doesn’t work on my windows XP IE7 computer for some reason, all I see is the black background. I checked out the examples on the pulpcore site and they don’t wok either, I don’t see anything. I see the loading-clock-like-ticks and then it just goes black.

Here’s the console output:

PulpCore 0.11.0 (build 355) by Interactive Pulp, LLC.
pulpcore.version: 0.11.0
pulpcore.version.build: 355
pulpcore.java.vendor: Sun Microsystems Inc.
pulpcore.java.version: 1.6.0_03
pulpcore.os.arch: x86
pulpcore.os.name: Windows XP
pulpcore.os.version: 5.1
pulpcore.locale.language: 
pulpcore.locale.country: 
pulpcore.platform: Applet
pulpcore.platform.timer: NanoTimer
pulpcore.platform.javascript: true
pulpcore.url: http://www.interactivepulp.com/pulpcore/bubblemark/
pulpcore.platform.surface: BufferStrategy (isPageFlipping=false, useDirtyRects=true)
App: start (3021.0 KB usage, +3021.0 KB change)
Stage: scene set to j (3476.5 KB usage, +455.4 KB change)
pulpcore.loadtime.BubbleMark.zip: 677
Stage: scene set to BubbleMark (3070.1 KB usage, -407.4 KB change)

EDIT: This bug is not in your game, I’m pretty sure it’s due to this jre bug with java 6 update N:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6667948
“applets won’t load with older bundles installed if 6u10 was installed and uninstalled”

That’s odd, I swear the Webstart “Launch” image disappeared your first post when I last checked! Oh well.

I tried it again, same Mac. This time keyboard input worked. Very nice demo!

I could only get a solid 25 fps, but it was very smooth. My specs again, just so they’re in the same place:

OSX Tiger 10.4.11
1.33 GHz PowerPC G4
1 GB DDR SDRAM
JDK 1.5.0_07

AMD Thundirbird XP 2000+ 1.7GHZ + Radeon X800

constant 34/39 fps

input problem, not responding most of the time, I look to the cpu usage (99%) and as I encounter such problem with input I think it is related, may be you have to add some Thred.yield() into your main loop to correct it to let some cpu to the keyboard&mouse input thread?