Game Design Blog
 
And so it begins.

And so it begins.

 

As we revealed in the last blog, the idea for the game is basically to stop a dam bursting by keeping a giant cork in the hole. This cork blocking can be applied to many things in life which is the main reason we chose this as the winner. We like cork.

Currently the game screen layout is in the form of a very shoddy sketch in order to give 3D Phil an idea of where things will be. This is how it looks:

CLICK TO EMBIGGEN

As you can see, that's a pretty wide image. This means we're going to need scrolling and you know we are going to get fancy on that. Over to 3D Phil to explain the code bits for the movement so far:

 

Movement

To start with I need to make the boy move left and right in the game area.
The Boy movieclip will move horizontally on the screen while the background movieclip moves in the opposite direction underneath him.
I will trigger a movement function from the keyboard events and pass a direction parameter: -1 for left and 1 for right.
The horizontal (x) position will increase when moving right and decrease when moving left.

function game_boy_move(dir:Number){
//boy clip
mcx.boy_mc._x += (gamevars.boyspeed/2)*dir;

//level 1 background
mcx.bg_mc._x -= (gamevars.boyspeed*2)*dir;
mcx.rocks_mc._x -= (gamevars.boyspeed*2)*dir;
}


I will try to explain this.

gamevars.boyspeed
is a game setting where I am storing a number that controls how much the boy moves each time. This is currently set to 3 pixels.

mcx.boy_mc._x
is a reference to the horizontal position of the boy clip.

+=
this adds a number to the current value.

(gamevars.boyspeed/2)*dir
this equation takes half the value of boyspeed and makes it positive or negative by multiplying it by the dir(direction) parameter which is either -1 or 1

The background layers are moved in the opposite direction by using -= this subtracts a number from the current value.

This function will eventually have extra code to stop movement at the left and right limits of the game area.
Also we will include parallax scrolling, this is where we have more than one background layer that move at different speeds to create the impression of depth and perspective.

http://en.wikipedia.org/wiki/Parallax_scrolling

 

 

 
 
 
 
Latest Stuff
Winter Olympics RDM

Winter Olympics RDM

The first episode of the Russian Dancing Men's own series.

Movie Moggy

Movie Moggy

Introducing Tiny and Cat Banana played by the wonderful Cammy...

8-Bit Amazing Horse

8-Bit Amazing Horse

This is an actual C64 demo made by Komplitkrut. It's so good...

 
 
Latest Peepl's Stuff
Investiture of the edible

Investiture of the edible

Once upon a perfect peril...

Universithing: Pilot

Universithing: Pilot

So here it is! I'm starting Uni this September, and as...

Drugs, drugs, drugs!

Drugs, drugs, drugs!

A young boy faces the horrors of crack use through the smooth...

 
 
Weebl's Tweets
 
@TheWeebl

RT @Mickeleh: Yep. YouTube is over. Here's the formula. http://t.co/1DMYpNhKqZ "Every YouTube Video Ever" College Humor.

2014-04-23
@TheWeebl

This looks interesting http://t.co/8hPH5caV8j

2014-04-23
@TheWeebl

I might have a choice between two song animations for next week. Cheese Dispensing Cat or Isambard Kingdom Brunel. Tough choice.

2014-04-23
 
 
 

Roll up, see what awesome stuff we have on offer!

Weebl's Stuff Retro Flight Bags!!

Weebl's Stuff Retro Flight Bags!! - £14.99