It's time to start adding some gameplay into our project.
Today we'll add a handful of spikes, and get them to scroll gently across the screen in time with our movement.
We'll use an Array to store their heights, and set their distance based on how far we've scrolled, as well as a general distance multiplier.
We'll then position them onscreen, draw them where needed, and test for collisions with the player.
It should be simple enough, right?
Saturday, 20 April 2013
Friday, 12 April 2013
Part Three - Making the Ball
Welcome back to Computing with Greenie, and the third part of our Ball of Hair tutorial series.
Today we're going to deal with a couple of important things.
First, we're going to be drawing the player's sprite on the screen, and dealing with "Sine Wave" mathematics.
As well as that, we'll be storing data in an array, and also dealing with player input.
That's a lot of things, in a single tutorial, so we'd better get started.
First off, we'll again make a fresh copy of our tutorial project, so we can head back to the previous version if need be.
Today we're going to deal with a couple of important things.
First, we're going to be drawing the player's sprite on the screen, and dealing with "Sine Wave" mathematics.
As well as that, we'll be storing data in an array, and also dealing with player input.
That's a lot of things, in a single tutorial, so we'd better get started.
First off, we'll again make a fresh copy of our tutorial project, so we can head back to the previous version if need be.
Friday, 5 April 2013
Part Two - Scrolling the Background
Welcome to the second part of our tutorial.
The previous part discussed the creaton of a new project, and the simple creation of a few art assets.Today we'll be creating a simple scrolling background for our game, using the sky and ground images we drew last time.
We'll be using a simple loop, and a little bit of mathematics to create a parallax scrolling effect, just like in the PlayMyCode favourite "SpikeDislike".
Sunday, 31 March 2013
Part One : Start with Art
Welcome to Computing with Greenie.
In this series of tutorials I'll be guiding you through the creation of a videogame using the online website PlayMyCode.com We'll see how a game is built from the ground up, have working examples, and I'll help you understand the workings of the website a little better, as well as learning the basics of programming, and how to create your own games.
Along the way, we'll be creating sprites, generating sound effects, and accepting player input, all to create the most wonderful game we can.
Subscribe to:
Posts (Atom)