Download - Hero private int health move intHealth void updateHealth void shoot int jump

Transcript
Page 1: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Hero

• private int health

• move

• intHealth

• void updateHealth

• void shoot

• int jump

• void applyGravity

• void switch images

• void change images

• void canSee (good and bad)

• void wavePower

• setLocation

• intSpeed

• remove object

• int vertical speed

• int acceleration

• removeObject

Mover (smooth mover)

• move

•void applyGravity

•remove object

• int vertical speed

• int acceleration

• canSee

Jimmy Dinh /Jay Kanazawa

Page 2: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Wolf

• int health

• gravity (apply forces)

• switch images

• change images

Spider

•int health

• gravity (apply forces)

• switch images

• change images

Spiky Ball

• move

•can see (good)

• set location

• speed

• remove object

• int damage

• void getMovement

Bad Guy

• move

• void canSee (good)

• set location

• speed

• remove object

•Int damage

•void randomMovement

Rollie

• int health

• jump

• gravity (apply forces)

• switch images

• change images

Mover(smooth mover)

Page 3: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Beam

Wave

•void grow

• int radius

• switch images

Attack

• int damage

• int vectorSpeed

• int reload

• void checkBadGuy

Page 4: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Stick World

• addObject (hero, bad guys, apple, platforms)

• int level

• populateWorld (Level 1)

• populateWorld (Level 2)

• populateWorld (Level 3)

• populateWorld (Level 4, boss)

• deleteEverything

• createTitleScreen

• createInstructions

• createCredit

• createWin

• createLose

• private String keyName

• private String doorName

Page 5: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Ground

Groundsmall

GroundLarge

Groundmedium

Floating

• getMovement(up down, left right)

Spikes

• int eaten

• int counter

Page 6: Hero  private int health  move  intHealth  void updateHealth  void shoot  int jump

Door

• private String name

Key

• private String name

Apple

• int giveHealth

Separate Actors

Counter

• value

• text

• stringLength

• counter

• subtract health

• getHealth