Sections

  • Search Chrome Cow

Design a Day



I’ve collected together all of my various experiments with Flash on this page. Most of what you will find here are snippets of code and small movies that test certain features of Flash, or solve some small, specific problems. There are also a few game-like projects.

Each of the movies posted here also show the source code (or at least the important bits). The goal is to create a resource for other people who are learning Flash, especially ActionScript . All of the exercises below are created in Flash 8. Some of them will work in earlier versions, some will not.

<

 Drawing Regular NGons

Documentation: Palabre 0.6

I am in need of a Flash compatible Socket Server, and found a great open source project, Palabre, with poor docs. This is info gather from docs, forums, etc. [ Link ]


 Drawing Regular NGons

Drawing Regular NGons

I have a project in progress that require me to draw regular NGons (Pentagons, Hexagons, Octagons, etc). I’ve posted the Flash movie and the source code for drawing them, using a simple rotation equation. [ Link ]


Learning Flash

Learning Flash

Since returning from GDC, I have been fired up to learn Flash as a tool for doing some simple gameplay prototyping. It has been rewarding, and at times fairly frustrating, as Flash has some interesting quirks of implementation. It has…personality.

  • Loading Text as Unicode
  • Create and Format a Dynamic Text Field
  • Write-On Text in a Fixed Amount of Time
  • Using Checkboxes
  • The Game Loop

  [ Link ]


Radial Solo Ball

Radial Solo Ball

Flash game number one. Basic goal, build a game with a main execution loop.

First experimentation with collision detection in Flash. [ Link ]


eRadiRace

eRadiRace

A simple wall avoidance game.

First iteration using built-in collision handling in Flash.
[ Failed ]

Second iteration using Flash 8’s Draw API. [ Somewhat Final ]


 


Design A Day Icon

WARNING: What follows is a game only a Geek could love.

Today’s design is a twist on the venerable game of chess, via quantum mechanics (See…I warned you).

If you’re the kind of savvy reader that hangs out at the Chrome Cow, you doubtless are familiar with a certain theoretical feline belonging to one Erwin Schrödinger. This cat has the misfortune to be confined in a box with a deadly device that has a 50-50 chance of triggering with an hour. At the end of the hour, goes the thought experiment, the cat, sealed from observation inside the box, is neither dead or alive, but is in superposition, a combination of these possible states. The cat does not live or die until the box is opened by an observer, who through the act of observation collapses the possible dead/alive states of the cat into one or the other state.

So what’s that got to do with Chess? What, indeed!

Enter Superpositional Chess (Super Chess? EigenChess? Quantum Chess? Schrödinger’s Pawn?).
(more…)


http://chromecow.com/wp-content/graphics/Main/cowcatcher.jpg
It’s called a ‘cowcatcher’
for a reason

It’s been pretty quiet here for a couple of months, but I’m now back on track with some great news..

My wife and I have driven the final spike in our own figurative transcontinental railway, as I have just accepted a transfer to Locomotive Games in Santa Clara. Our cross country adventure from Massachusetts to California is underway with a full head of steam, and short of derailing this post with what (to the un-trained eye) may be a series of truly awful railroad references, we’re thrilled about the move.

I’m leaving behind some great friends and talented folks at Helixe, but I’m excited to join the Locomotive team.  New horizons!

I expect posting to be sporadic as we settle in. I’m not even sure what state my computer is in, and I mean that in just about every sense of that phrase.


Design A Day Icon
Foosball

Ok. I owe you a Lazarus and the Time Machine Part 2, but I can’t resist the chance to post a quite nearly timely World Cup inspired design.

I’ve consulted with experts in the field, and the consensus is that the World Cup involves Soccer.

In my mind this is quite nearly the same thing as Foosball, except that in Soccer the games are much longer and harder schedule.

I admit it. I’m not really an organized sports guy, and today’s design is less inspired by the World Cup and more by Rockstar’s latest table tennis opus.

The idea is simple:

Foosball + Wii = Awesome.
(more…)


Here is a re-write of the base eRadiRace code, using the new Flash 8 Draw API to make the trails and do the simple collision.

 


 

Added a musical score. Now at v0.254

It still has a few bugs:

  • Not all sounds seem to be playing when called (intermittent).
  • [Fixed] A last minute change to add the Tutorial screen has made the avatars disappear after the first round.
  • Collision could be tightened up just a bit.
  • The frame where the player collides with the line is delayed in drawing by about a half a second, which makes it look like they shouldn’t have lost.

I’ll fix that avatar thing and post up the game loop code.


One of these days, I’ll start making games that fit in my pages.

Instructions

  • Move the mouse left and right to control the paddle.
  • Score by hitting the ball into the Green top and bottom goals.
  • If the ball hits the Red left and right goals, that’s bad.

Because this is a flash game, you need to keep the mouse cursor within the active window to move the paddle. If the paddle stops moving, you’ve wandered out of the window.


Next Page »