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
Here Comes Spiderman

Here Comes Spiderman

WARNING. CARTOON BEETLE BONNETS.

Helloween

Helloween

It is a Cat Face Halloween special. Yes.

Behold My Mighty Steed

Behold My Mighty Steed

Steeds will be beheld. Verily.

 
 
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

HAHAHA. 3 days to go till we start our advent calendar and nothing is ready.

2014-11-28
@TheWeebl

Does @virginmedia ever go more than a few weeks without sucking? Wondered why I was shit at AW last night. Was getting 0.4/150meg downstream

2014-11-28
@TheWeebl

Well that was fun. Now I've got my streaming stuff working I can do more.

2014-11-27
 
 
 

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

Weebl's Stuff Retro Flight Bags!!

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