Beginning Flash and ActionScript Game Programming Part 3: Basic Programming Concepts-Variables

In the previous section, we downloaded and installed FlashDevelop, created our first program project, and traced out some text to the console, which is used for debugging your program.

In the next few section, we’ll look at basic programming concepts you need to know to program in ANY language.

In this section we’ll learn about variables.

Continue reading

Beginning Flash and ActionScript Game Programming Part 2: Downloading and Setting Up FlashDevelop and Compiling Your First Program

In the previous section, I listed pros and cons of creating games in ActionScript, as well as useful terms you may encounter when programming in ActionScript.

In this section, we will download and install FlashDevelop, and Create our first program.

Continue reading

Beginning Flash and ActionScript Game Programming Part 1: Introduction to Flash Game Programming and Useful Terms

 

This section is to introduce you to Flash, Actionscript 3.0 (as3), and some associated terms.

Introduction

Game programming can be fun and enjoyable, but it is hardly ever easy.
You can learn the basics from other people, but a lot of stuff you’ll have to struggle through and figure out yourself.
The most fun part for me is seeing your creations come to life, especially after putting a lot of time, and effort into making things work the way you want to.

Continue reading

Creating an Asteroids Flash Game Using the Display List Part 2: Creating and Firing bullets, and making objects “wrap around” the screen

Chris Moeller Asteroids Flash Game Part 5- bullets and wrapping

I’m going to finish up the tutorial section on creating an asteroids game in FlashDevelop using the display list. This series will run parallel to the tutorial set for creating an asteroids game using blitting.

In the last section, we added keyboard input to the ship, so that we could rotate in any direction, and move forward.

In this section, we’ll create bullets that are fired from the front of the ship at a limited rate, and make both the ship and the bullets wrap around when they reach the edge of the screen.

Continue reading

Creating a Asteroids Flash Game Using the Display List Part 1: Creating The Game, Ship and Keyboard Controls

Complex possible display list

In this article, we’ll be using classic flash techniques to create an asteroids ship and move it around on screen using the keys.
This is a quick way to create simpler games, or for any game where you don’t need complex control of the rendering order of your objects.

Note:
Blitting (which is covered in the other asteroids tutorials) is the technique I normally use when creating a game, since it resembles the same way you would create a game in C++ or Java using DirectX or OpenGL, and gives you much better control of the order of objects rendered on screen.
But for simpler games, or ones where you don’t have to group simmilar objects to render in a certain order, using the built-in display list can be much faster.

Continue reading

Creating a Asteroids Flash Game Part 10: Changing Vector Images to Bitmaps

This article is about loading your own graphics into your asteroids game created in the asteroids tutorial.

Adding images to what we already have is actually simpler than creating the vector drawings.

There are two ways to do this – embed the image, or use a loader to load externally.
I personally like loading them externally on run time, with filenames stored in an external xml for larger projects.

But since the last asteroids article was for Kongregate, we’ll have to only end up with one packaged swf, to be able to upload it to their servers.

Continue reading

Creating a Asteroids Flash Game Part 9: Integrating with the Kongregate API

Chris Moeller Web Creating a Flash Asteroids Game part 10 - Integrating the Kongregate API for high scores

In the last section, we created a way to keep track of the lives and score, as well as created levels, restarting, pausing, and a basic menu GUI to start the game.

In this section, we’ll add the Kongregate API to the game to allow us to keep track of the score through the Kongregate game site.

You can preview the game on Kongregate here:
http://www.kongregate.com/games/doomtoo/chrismweb-classic-asteroids

Continue reading