IAT 167 Lecture Notes - Lecture 10: Tile-Based Video Game, 2.5D, Concatenation

75 views5 pages

Document Summary

Level: game environment for gameplay (entrance, exit and map layout) Space: layout, features, item placement, mood/ atmosphere. Flow: how your level is to be played and how player navigates through your environment. Choke points (narrow paths on a map) Guiding character to jump between suspended/ grounded platforms or over obstacles to advance the game. Playing area consists of small graphic images (tiles) Create an array for tile layout (fill a 2d array with integers that represents a tile. Id) e. g. int [] [] map = new int [128] [64]; [map. length = 128] [map[i]. length = 64] e. g. int [] [] map = new int [128] [64]; Arraylist tiles = new arraylist (); int tilesize = 64; [squares of 64x64] If (i !=0 && j != 0 && i != map. length-1 && j! [if not on the edge of the map] If (random (0,4) <1) { [1/4 chance for a block] map[i][i] = 1; block = true;

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers