PixelWarrior 40x30 pixel EGA Action Adventure

After getting inspired by Marcus’s TinyCham I started creating my own 40x30 pixel adventure. I didn’t get particularly far because I got quite sidetracked on a separate project which I will go over below. Anyway here is what I have thus far:

http://www.angryoctopus.co.nz/pixelwarrior/screen_1.png

I got sidetracked when I started looking at music for the project which I haven’t yet added to a game but am convinced of it’s importance. I have tried creating a software synthesizer/sequencer to replace the horrible java.midi api several times but never been particularly successful. This time for some reason the design just worked and I ended up with something I am very happy with. I created a demo applet which you can try out by clicking on the screenshot:

http://www.angryoctopus.co.nz/simplesynth/screen_1.png

I will release a library soon that should enable you to have full (albeit electronic sounding) music tracks in a game for less than 80k. I think I might chop down a version of it for this years 4k comp (always been meaning to enter it) and try making rhythm game (also something I have been wanting to have a go at).

Sure can make some cool/funky sounds hehe. I may use such a library in the future to keep my game size down.

Ill give the game a try later.

The diversity of different sounds is awesome. Its a really cool project.

The only problem I have is if I go mad and hit many keys at once, my audio output crackles.

Just saw you uploaded a binary to your 40x30: wow the music really gives it some atmosphere.

It can be quite painful all these good looking projects not getting too far! :smiley: (http://www.mojang.com/notch/chambered, http://www.mojang.com/notch/eoo, http://www.angryoctopus.co.nz/pixelwarrior/pixelwarrior.jnlp) but keep it up :smiley:

That game is cool, and the music really gives it a spooky feel. You must be a musician because it’s really quite awesome.

I liked the piano applet too. The random button is good. By the way, a good fellow named Bleb made a similarly cool program that did synthesised sound effects, I’ll try and find a link… it’s somewhere on JGO, in shared code.

The game needs more baddies though, I couldn’t find anyone. Oh and the map should be a little bigger if possible, and what about scaling up the world so it’s still got a pixelly-feel but it takes up more screen space… just an idea.

Nice work 8)

You didn’t find the spider? ;D

(He lives in a cave, EDIT: and in the castle)

Thangs guys.

irrevessible_kev: You explored too much… Also the sound crackling is probably because the audio buffer size is really low (for low latency key response). The library version of this will have a customizable buffer size when you create the Synthesizer so you can tailor it toward real time (small buffer) vs background playback (large buffer).

CommanderKeith: As noted, there is a single enemy (that you can’t kill and just walks around randomly) in the cave/castle. I would have created more but as mentioned, got sidetracked. The world is scaled at x4 at the moment but if I continue developing (frankly unlikely) I will add 1x - 8x zoom.

That… is amazing. You need to finish it. =D

You first! :wink:

Very cool synth (can I request virtual-piano mapping from keyboard? :)). I’ve always wondered why audio-processing in game seem to be living in the stone-age while 3d-graphics have moved beyond imagination.

Good idea, might add that tonight. I have a MIDI keyboard so haven’t really had the need to input notes with my computer keyboard, but that would be pretty handy.

That would be cool. I used to use the Virtual Piano with my Yamaha DB50XG, though it’s not particulary touch-sensitive. It’s pretty much hammering the keys. :slight_smile:

I know you might not keep working on it, but for what it’s worth, you cancel the players movement when I exit a house (making me click the down arrow twice). It’s unneccessary. :slight_smile:

Really cool stuff! :slight_smile:

It just felt like a bit of a harsh/discontinuous jump if you just kept walking after you were teleported outside. I should probably have you keep walking but have a brief black screen or a pause so it’s not quite so jarring.

Hey.
I Tried the game. I really like this style.
Your sword attacks are great, aswell as walk-animation. :slight_smile:

I gotta ask this though: What are the controls?
Also i got the problems described below when i played the game:


Spoiler alert!
(Mark to read)


The spider in the cave tried to escape through the cave entrance. I tried to follow but got stuck in the cave entrance on top of the spider, which was also stuck. I rebooted again, got to the room that told me to stop exploring, went to the next room, and got stuck again!
I think a spider was involved again… Also I’m starting to get arachnophobic…
Third time i thought i had explored it all and quit.
I really wanted to open the chests, but failed at finding a way… :frowning:

It wouldn’t hurt to have the window center on screen btw. :slight_smile:

  • Scarzzurs

Hmm, yeah there is nothing stopping the spider from traveling through doors at the moment. And the second he gets far enough away from you he stops moving so you will teleport inside him and get stuck. I’ll have to fix that one. As for chests, they are purely cosmetic at the moment. Can’t be opened and don’t contain anything. My original idea for this game was to see if I could have a compelling story and atmosphere in only 40x30 pixels. It is very hard to write any text for the game due to the size constraints but I hoped that when pared down it could still be an engaging experience that would take around 30 mins to complete. If it became popular I was thinking I could try doing an episodic format (always such grand plans when I start).
I planned to have Episode 1 start with an earthquake that cause the rock-slide that is blocking the path out of the village. In the course of getting the rock-slide cleared you would discover it had a sinister origin and end up having to embark on a quest to save the world (or something along those lines). Episode 1 would finish when you left the village.

Awesome stuff. Really like the music. Being able to work diagonally (no need for extra animations… even SNES games didn’t bother with it in many cases) would be nice.

The synth stuff is also really great. Too bad that one can’t use the keyboard right now. Do you intend to release the code for the lib as well? Would be ace. :slight_smile:

Cheers,
Yeah will probably allow 8-dir movement (once again, inspiration permitting) in next release. Generally I at least GPL all my source code if anyone asks so I’ll probably start a GoogleCode or SourceForge project for SimpleSynth when I get some free time.

Sorry to hijack my own thread but I was trying to implement a keyboard control for my synthesizer and ran into an interesting problem. Is there any way in Linux to reliably detect the state of any key without getting the Security Manager throwing a hissy fit? I really don’t want to have to pop up a permissions dialog just so keyboard control works properly.

Peculiar dilemma. I’m pretty sure that would be impossible, or else you’d be able to monitor keystrokes outside the webpage. You’d could probably use threads to build up a buffer for choords, but it seems like much work for the request. :slight_smile:

I don’t need to keep keyboard focus, the problem I have is that on Linux key repeat works by sending multiple pressed/released events while a key is held. The only way I know around this is to take a look at the AWT event queue (needs security permission) and ignore any release events that have a subsequent press with the same timestamp.