This was coded in actionscript 3. Everything was done on an OOP basis. I loved programming this game, I made my code as efficient as possible as made use of arrays, loops, timer events, etc etc.
I found the easiest way to organise my program was to make use of custom events. These were despatched if objects were off the stage, or if an external animation had finished, and I had to notify the screen handler class.
I created the game over animation in an external fla file. Using string manipulation I added all the letters and spaces to an array, and for every tick
of the timer, the textfield had one of the letters from the array added to it. I selected the correct letter using the currentCount property of the timer.
I really enjoyed visually designing the program. I used the bright colours due to their constrast with the black background. I used the green because it seemed an alien colour, and the font I thought suited the game perfectly. The font had to be embedded, which meant most of the text in the game had to be created dynamically.
This image was produced in it's entirety using ActionScript 3
The trees and grass are one single object repeated throughout the image using for loops. This enabled the file size to be kept to a minimum. The for loops had to only place the objects within the confines of the stage though, plus make sure the position was random.
This was achieved using Math.random for the placement and using if statements to check the co-ordinates of the outputted Math.random value.
The if statements had to be employed because the trees and grass's y co-ordinates couldn't go into the sky and despite the way I coded the random value, there was always a few pixels leeway that meant the co-ordinate value could be too low an y value by a few pixels
The gradient of the sky was again made using just ActionScript 3's gradient and matrix objects.
Click on the image to see the animation.
This was coded using actionscript 3. I used separate class files for each of the objects - the bauble, the tree, and the snow. The clouds were animation using the tween class.
I animated the snow using the timer event. The baubles are interactive, if you click them they move upwards then back down again. This was done by using a simple onclick event and change the x and y values. I then has to use the easing classes to achieve the realism of going upwards slowly and quickly back downwards.
Please click into one of the form fields to use the program
My brief for this project was to use actionscript 3 to create a form, collect user input, validate that input and then output information according to what was submitted. All the elements on the first screen are coded, none are library items.
I validated the user input whilst the user was focusing in and out of fields. I also validated it when the user pressed the submit button. I checked for the correct email address format, no numbers in certain fields, fields had to be ascertain length etc etc.
Once the user's information was valid, I then moved onto the next screen. The next screen is a movie clip contained in the library, whereas the first screen was done entirely in code. Each screen had it's own class file and the information was passed between class files when objects were added to the display list.
This program was created using ActionScript 2. I was initially taught ActionScript 2 in first year of my degree before being taught AS3 in second year.
The brief was simply to create a tutorial for a piece of software and add a game in that tested the user's knowledge. I added 2 ways of accessing the tutorial's features - either by using the menu or by using the next button.
I added external swfs, sound effects and animation to the program. The game was to get through a maze up to 3 times. The user got up to 3 clues depending on how many times they got through the maze without touching the sides.
Then via string manipulation, I developed the "clue" buttons to give the user a letter at a time of the answer to the question they were stuck on.
This was coded in actionscript 2. Again, this was a first year project and we didn't get taught AS3 until second year.
I simply had to produce a movie player with a short animation at the beginning. I decided to add sound as well and animate my image to the music's rhythm.
Everything was done via actionscript, the volume, the skipping the animation, choosing videos to load.
+ Comments