lunch break games

psonice's picture

Out of boredom (I'm working off-site, with an old G4 powerbook that's not powerful enough to work on my current project) I decided to do some games in QC.

Before you fire them up, let me add a disclaimer: these were made during my lunch break, i.e. in under an hour. Expect no graphics, no sound, and very basic gameplay ;) They're also more experimental than serious attempts at playable games.

http://www.psonice.plus.com/canyonchopper.qtz - guide the helicopter down the canyon. Move your mouse to the middle of the screen and click to start.. it's mouse controlled. It takes a while to get going, but gets steadily harder. Actually the difficulty level stops increasing after you get to around 2,250 points, so anything past that is good going :)

http://www.psonice.plus.com/unpong.qtz - 1 player pong in reverse, or perhaps wrong arkanoid without bricks. Mouse control again, and click to start. You control the ball instead of the bat, and you have to hit the bat or it's game over. The bat slowly gets smaller. If you can't see the bat, resize your browser window so it's not as wide (the quartz plugin chops the bottom off the screen otherwise). Then again, not being able to see the bat is good if you're after an extra challenge (or honing your mastery of the force ;)

Anyone else done any games in it?

tobyspark's picture
death through inaction: 1915!

an early, definitive qc patch was 'AsteroidsQC.qtz' which was a masterclass in itself. used a javascript game logic core feeding the visual state to the rest of the patch if memory serves.

so, yes, there are others...

(btw, perhaps the best podcast ever: tim pickup and death through inaction: http://podcasts.resonancefm.com/archives/138)

(actually, thats a complete lie. the fruit machine one tops death by inaction.)

psonice's picture
inaction through death

That was amusing, brought back some memories too. Oh, I know there have been games done in QC in the past, just wondered if any of the regulars here have done any :) Making a proper logic core in JS is way beyond what I can do in an hour though unfortunately, so I keep the logic as simple as possible. Makes it more fun in a way too.

Today's challenge: 1 player tanks with one tank in an hour.

toneburst's picture
You're on a roll...

Keep 'em coming.

:D

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

psonice's picture
We're all on a roll...

You got your isosurface spinning, I got my tank to blow up:

http://www.psonice.plus.com/tank.qtz

psonice's picture
Early, and even faster

I'm away for 3 weeks after today, and busy at lunch time, so I made today's game in my coffee break (and perhaps a little over ;)

http://www.psonice.plus.com/avoid.qtz

The rules: avoid the grey areas with the mouse pointer. Left click to start.

For some reason it doesn't work in safari, so you'll have to fire this one up in QC (I think the colour picker patch isn't safe for web).

toneburst's picture
Cool beans. I'll have a look

Cool beans. I'll have a look at this later.

Going anywhere nice, incidentally?

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

psonice's picture
Safe replacement for image pixel?

Is there a safe replacement of some sort for image pixel? Hit test is also unsafe it seems.

Alx: off to hong kong for a few days, then japan for 10 days, then back to hong kong for another week. Should be a good holiday :D

toneburst's picture
Holiday

Yeah, sounds cool, mate. I was in Japan last Summer, but not for long enough...

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

franz's picture
HK

if you go to HK, don't miss HeiHei club.

psonice's picture
No clubs

Doubt I'll go to any clubs. Not been to any for years, and my wife will be with me :)

Thanks for the tip though.

franz's picture
....

unfortunately, i mostly have party tips, for both HK and Japan.... Climbing Mt. Fuji by night is a once in a life experience tho'. Eating sushis at 4AM in Tsukiji fish market (tokyo) is also excessively fun. Plus you got Kurokawa's Nagakin Capsule tower as a bonus, it is one block behind.

http://uncle.blogs.com/photos/one_plus_tokyo/nakajin_capsule_apartment_b... http://homepage3.nifty.com/tokyoworks/TsukijiTour/TsukijiTourEng.htm

psonice's picture
Collision detection/safe mode

I'm back from holidays (had a great time there :) and thought i'd get one last lunch break game out before getting back to serious work.

Well.. I failed this time. Collision detection had me stuck. I've done collision detection in avoid.qtz, and it worked nicely. The catch though was that it didn't work in safari, as the patch I used to detect collisions wasn't web safe.

This time, I managed to get around that (I think anyway, not tested it properly yet) by cropping the area of the background I want to detect collisions against (i.e. I make 'walls' say red, and the rest of the background black, then crop the area directly under the actual sprite). I then use an histogram patch to pull out the red levels, and use a conditional to detect red > 0 to detect collisions.

Well, that works, but it's not really ideal I think. My first thought was to use a CI filter, and return a boolean if red was detected in the target area (which would be easy to test for), but it seems you can't return a boolean, only an image. Is there a better way of doing it?

toneburst's picture
Welcome back...

glad you had a good time! CIFilters can only return images. You could fake a boolean by having it return a black or white pixel at say (0,0), then test for this with an Image Pixel patch. Just a thought...

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

psonice's picture
image pixel = unsafe

It was image pixel causing me the problems in the last game, which is why I used image histogram this time. It's just a pity that I just noticed that image histogram is unsafe too. Arse!

toneburst's picture
Ah.....

oh well.....

alx

Quartz Composer Blog: http://machinesdontcare.wordpress.com

Music Site: http://www.toneburst.net

psonice's picture
Wall Hell Survivor

My 6th and final lunch break game:

Wall Hell Survivor (actually called Wall Hell Smith, but that's kind of a UK only joke. It's named after evilpaul's awesome bullet hell survivor, as it's similar.)

This time I made a quick + dirty .app, as the collision detection uses patches that aren't web safe and it's no fun if you can't die :)

Controls: arrow keys to move, space to start the game

Rules: don't crash into the red walls (the white patches can be flown through).

cwright's picture
fun

That's a fun little game :) You could probably start a cult-following with all these little casual games :) If I may ask, what's next on your agenda, now that you've made your final game?

psonice's picture
Next up...

...is making a little game pack, with all of these little games tidied up and put in one application. Shouldn't take more than a couple of lunch times.

After that, I really need to finish off the 8808 demo I did before properly. I hate having it around and not properly finished, but keep getting distracted :) Maybe a couple of weeks to sort that out.

Then, it's back to my demo engine based on quartz. That's been coming along nicely but there's a lot to do. So far I have basic paint + 3d tools, enough to create some decent 2d + 3d art but it needs building as a proper application with all the tools easily accessible. It doesn't save at the moment though, and that will be a fair bit of work. I need to make animation tools too. Then it's time for some more high-end demos :D

I'm also planning a demo for the Sundown demo party in september, I'll probably use some of the technology i've built up for the demo engine and just do some quick + dirty effects with that, so it should be a fairly quick project.

Speaking of that, there's still no sign of a fix for the sampler2d/vertex shader crash. 10.5.3 didn't fix it, and there's no fix with the iphone sdk beta 6 version of xcode. I think I can fix it in an application by calling the qcview without colorspaces, but haven't tested it yet. I'll do that when I start the 8808 final, as I need to write the code for fullscreen anyway.

s.rozsa's picture
Re: lunch break games

hmmm... the site of psonice seems to be down. Does anybody have a copy of the those little games?

psonice's picture
Re: lunch break games

The site of psonice is definitely up ;)

http://psonice.untergrund.net/games.html

s.rozsa's picture
Re: lunch break games

tanks man ;-)