pocico

LD23

end of first night

My first ludum dare. I’m using processing. So far I have an odd game where you are a maroon square on a grid and pinks squares move randomly. You can place blue blocks on grid, and if the pink squares’ path is blocked they die. Yes it is a weird game, but that’s what I puked out of my head so far. Hopefully it will turn out to be an interesting game.

first semi-decent working version

So far in my game, you are a mighty moving square, and you try to capture circles by placing gray walls around them. Very creative isn’t it?

Anyway, you move with arrow keys. Hold shift to go fast. Press z to place a wall. Also you can’t place more than 15 walls at a time. The old ones disappear one by one as you place more walls.

You can try it out here http://dl.dropbox.com/u/69417482/capture2.zip .

It’s a zip file instead of a webpage because well I don’t have a webserver and dropbox is not meant for webserving. Just open tinyworld.html after you decompress it to play.

You’ll need a browser capable of html5. I’m using firefox11. If you have that it should definitely work fine. I don’t guarantee the link will stay alive after compo ends.

wasted time but i guess i learned something

Wasting hours trying to get html5 audio to loop properly. I have no idea what I’m doing, but I suppose I did find a big potential problem. Apparently there is a thing called same-origin policy – you can look it up. Anyway I fixed it, and now it works in chrome and opera also. Firefox was working all along that’s why I didn’t notice until now. http://dl.dropbox.com/u/69417482/capture3.zip

There is music now. This is previous post with screenshot and instructions http://www.ludumdare.com/compo/?p=125759

Sigh I feel less like I’m making a game than solving technical problems.

Comments

ektoutie
21. Apr 2012 · 22:40 UTC
What’s your problem with the SOP? I’ve had my run-ins with it so might be I can give you some tips.

tip for people using processing.js

If you’re using ArrayList, don’t give it an initial value. Anotherwords don’t do this:

ArrayList enemies;
enemies = new ArrayList(20);

I wasted too much time trying to figure that out. It was working fine in processing, but in the webbrowser it wasn’t working. Just leave it blank:

ArrayList enemies;
enemies = new ArrayList();