IAT167-Map Example.docx

4 Pages
109 Views
Unlock Document

Department
Interactive Arts & Tech
Course
IAT 167
Professor
Jack Stockholm
Semester
Winter

Description
Mainas packageimport flashdisplaySpriteimport flasheventsEventpublic class Main extends Sprite properties go here private var OintMapBlockMAPBLOCKROAD private var WintMapBlockMAPBLOCKGRASSprivate var blockTypeintprivate var mWidthintMapBlockMAPBLOCKWIDTH private var mHeightintMapBlockMAPBLOCKHEIGHT the overall size should be 16 columns and 10 rows public static const MAPROWS int10 public static const MAPCOLUMNSint16 make an array to hold the pattern private var mapArrayArrayW W W W W W W W W W W W W W W W O W W W W W W W W W W O W W W WO W W W W W W W W W W O W W W WO W W W W W W W W W W O W W W WO O O W W W W W W O O O W W W WW W O W W W W W W O W W W W W W W W O O O O O O O O W W W W W W WW W W W W W W W W W W W W W W WW W W W W W W W W W W W W W W WW W W W W W W W W W W W W W W W constructor function public function MainvoiddrawMap public function drawMapvoid var mapblockMapBlockvar rowint10for var iint0 imapArraylength i blockTypemapArrayi
More Less

Related notes for IAT 167

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit