Your final assignment is to implement a high score list for a very simple game. The game itself is just a place holder that randomly generates scores. Your job is to keep a list of high-scores and allow the player to page through them. Requirements Have a “play” button which starts the game. While the […]
Lab 9 – Lists
September 21st, 2010 · No Comments · Uncategorized
Make sure you upload your Ass 2 to your webpage in today’s lab if you have not done so already. Task 1: Rewrite the code from last week’s lab to use variable-length arrays (lists) rather than builtin arrays. Task 2: Allow the user to plant extra flowers by clicking on the screen.
Tags:
Lost Property
September 19th, 2010 · No Comments · Uncategorized
I found a small silver palm-top computer in a black case in the class after today’s lecture. I took it up to Security in the Mathews building.
Tags:
Lab 8 – Arrays
September 14th, 2010 · No Comments · Lab
This week’s lab involves experimenting with arrays. Start with the following behaviour: // Flowers.js var flowerPrefab : GameObject; var heights : float[]; var flowers : GameObject[]; function Start() { // make as many instances of the prefab // as there are entries in the ‘heights’ array // scale each one according to the height // […]
Tags:
Exam
August 31st, 2010 · No Comments · Uncategorized
I’ve just written the final exam for the subject. It will cover your understanding of javascript and the principles of programming I have been teaching in lectures. The breakdown is as follows: 20 marks are multiple choice, mostly testing your comprehension of small pieces of code (if statements, while statements, for loops, etc). 10 marks […]
Tags:
Lab 6 – Breakout
August 24th, 2010 · No Comments · Lab
The task in this lab is to automatically generate different levels for the Breakout game written in the lecture. For each of the three layouts below, write a script which creates bricks in this arrangement. Use two for loops to create the bricks. The outer loop should count the layers. The inner loop should count […]
Tags:breakout
Assignment 2 demo
August 23rd, 2010 · No Comments · Assignments
An example app for ass2 can be found at: http://www.cse.unsw.edu.au/~cs1400/ass/ass2/Missile.html
Assignment 2: Missile Command
August 22nd, 2010 · No Comments · Assignments
You’re task for assignment 2 is to create a game similar to the old Atari game Missile Command. You don’t have to completely reproduce that game, but you should the following elements: Multiple ‘enemy’ objects falling from the sky A launcher base at the bottom of the screen. When the user clicks on an enemy, […]
Tags:
Lab 5
August 17th, 2010 · No Comments · Lab
Your task in this lab is to practise using for loops and prefabs. We’re going to make a simple game in which the player has to click on a bunch of moving targets to destroy them. Create a target object of your choice. Give it a script to make it move around randomly. Create a […]
Tags:for loops·mouse events·prefabs
Lab 4
August 11th, 2010 · No Comments · Uncategorized
Tasks for lab 4: Check out the Ass1 demo if you haven’t had a chance to yet. Show your Ass1 storyboards to your tutor for feedback. Returning to last week’s lab, make the ‘treasure’ objects move around randomly. Work on your assignment.
Tags: