Carnegie Mellon University

GridCity Project

GridCity Programming


Image Files shipped with GridCity


Themes

The original release of GridCity looks something like the following.

Streets
6
5
4
3
2
1
0
0 1 2 3 4 5 6 Avenues

The basic images that GridCity uses are:

Background:
Wall:
Vehicle:
Parcel:

You can change the look of GridCity to have many other themes. Here are a few examples of what GridCity can look like when you use some of the alternate graphics that are further described below.

Streets
6
5
4
3
2
1
0
0 1 2 3 4 5 6 Avenues
Streets
6
5
4
3
2
1
0
0 1 2 3 4 5 6 Avenues
Streets
6
5
4
3
2
1
0
0 1 2 3 4 5 6 Avenues

Backgrounds

Below is a list of images available for use as backgrounds. To change the image used as a background in a GridCity world, use the setBackground() method in the World class (see
Javadoc, see example).

Road&Leaves.gif
Ocean.gif
PlainRoad.gif
Road&Gray.gif
Space.gif
Original.gif


Walls

Below is a list of images available for use as walls. To change the image used as a wall in a GridCity world, use the setWall() method in the World class (see
Javadoc, see example).

AllLeaves.gif
Asteroids.gif
Earth.gif
Jupiter.gif
LifePreserver.gif
RoadBlockWall.gif
Tree.gif
RoadblockWhiteRoad.gif
wallShowingLeaves.gif
Textured.gif
WhiteRoadblock.gif
WhiteRoadblockGray.gif
OriginalWall.gif
BlankWall.gif
House.gif
CrossRoad.gif


Vehicles

Below is a list of images available for use as vehicles. To change the image used as a vehicle in a GridCity world, use the setAttribute() method in the Vehicle class and change the attribute "imageName" to be the first part of the filename (see
Javadoc, see example).

busEast.gif
carEast.gif
classicEast.gif
cycleEast.gif
deliverEast.gif
OriginalVanEast.gif
horseEast.gif
towEast.gif
bigTruckEast.gif
blueVanEast.gif
boatEast.gif
frogEast.gif
garbageTruckEast.gif
greenVanEast.gif
motorcycleEast.gif
redVanEast.gif
spaceShipEast.gif
truckEast.gif
ladyBugEast.gif


Parcels

Below is a list of images available for use as parcels. To change the image used as a parcel in a GridCity world, you must define a class that extends the Parcel class and uses the setAttribute() method to set the attribute "imageName" to be the filename of the image file (see
Javadoc, see example). After this is done, you can then edit world files directly or use the World Editor to recognize your newly defined parcels (see documentation for the World Editor, see example).

BlueBox.gif
envelope.gif
garbage.gif
GreenBox.gif
MoonRock.gif
OrangeBox.gif
RedBox.gif
trash.gif
carParcel.gif
OriginalParcel.gif
Balloon.gif
one.gif
two.gif
three.gif
four.gif
five.gif
six.gif
seven.gif
eight.gif
nine.gif
1Box.gif
2Box.gif
3Box.gif
4Box.gif
5Box.gif
6Box.gif
7Box.gif
8Box.gif
9Box.gif
10Box.gif
flowers.gif

Summer 1999 GridCity, ActiveTutors [tutors@cs.heinz.cmu.edu]