Professional Documents
Culture Documents
BÀI TẬP TUẦN 1
BÀI TẬP TUẦN 1
____________________________________________________________________________________
3
4
2
M0
2
1
4
2
4
2
3
0
EN
D
4
2
1
Class
Game
Attributes
-running (Boolean)
-width ,height ,scale...
-
Methods
-main( ), init( ) , start( ) ,
stop( ) ...
-run( ) , move( ) , repaint ( ) ...
-getPlayer( ) ,getMonster( ) ...
Player
Monster
Map
KeyManager
pick ( )
-incHealth( ) ,
incAttack( ),decHeath( ) ...
- x,y (position)
-width ,height ,...
- keyPressed ( ) , keyReleased
( ) ,...
- loadImage ( ) , ...
ImageManag
er