A small playground level to test the flash version of Voxatron.
|
This version of Voxatron is a 550k swf compiled from the C source using Adobe Alchemy. I can't imagine it will ever replace the native version as a way to play BBS levels, but it might become a nice way to preview them and to share stuff online. It also has the potential to become a convenient way to show replays. Only the key presses are recorded so the data needed is very tiny (around 3k for a long level).
After you finish the level, try ESCAPE (menu) -> "PLAYBACK >>" to see this in action. F to fast-forward.
You can check the frame rate with ESCAPE->OPTIONS->VIDEO OPTIONS. It does around 18 fps for me (Linux/Firefox). You can turn soft shadows on in the video options but it will cost around 4 FPS
No audio support yet
Have fun!
Works well for me! Just a little slow down from explosions! Should be interesting how this develops! :D
Solid 40fps on Chrome 20.0 with flash 11.3; 37fps with the soft shadows. A not so very nice 90% cpu usage with 1.05GB of ram! so its pretty close to the boundary if nto slightly over for a flash app;
Running on a Macbook Pro 2.5Ghz i7; 16gb ram (so 1gb is nothing :-p).
Guessing the whole scene is being rendered every frame? Lots of stuff quite static that would save cpu for when nothing's happening; Also could probably cache the visible voxel in a large array to avoid having to re-compute the top most visible one per pixel. Also could run the game at a lower res and draw to a bitmap and then just scale it up (you may be doing this already :-p).
Would be interested to see how well it ran compiled with Haxe; Alchemy is a little outdated now but haxe requires you to port it all to "as3" like code rather than leaving as is.
Nice work anyhow :-D. Love the game.
37 fps on last year Mac Mini. ( @lightfoot256: I don't see 1gb flash usage, rather 200mb, probably it depends on amount of RAM you have installed )
47fps with 'hard' shadows ( which looks better for me in this environment )
And your 18fps only shows how much Adobe doesn't care about Linux...
Drat -- it seems as if the flash version isn't as deterministic as I thought. (the playback thing depends on it).
But that's great to hear other machines are getting pretty decent framerates. I was planning on making some cut down demo levels designed just for web, but it looks any old BBS level will also be possible.
@lightfoot256
The problem with the dirty rectangle method is that it improves the average case, but makes the worst case worse (lots of stuff flying around). It might be worth using a hybrid approach though -- maintaining an image of the ground voxels and drawing the dynamics with a z-buffer or something.
The game is rendered at 128x200 :p
I like Haxe, but there's no way I could comfortably port the engine. It looks like Alchemy will get official support soon anyway.
I see there haven't been any comments in over a year, so I would assume that there haven't been any updates to the web version. It plays well on my AMD FX 6100 3.1ghz. (30 - 38 fps) but the playback isn't accurate. The movements were offset a bit and a lot of the items and monsters never spawned (perhaps because of the location difference). Using chrome and the browser instance for the game is using 16% cpu and 106mb ram. Since someone was guessing the usage had to do with how much ram is installed, I doubt it since I have 8 gb ram.
Looks great anyway. Keep up the good work.
hey i made a couple of cringy as fuck comments here like 5 years ago? do not read them
[Please log in to post a comment]