Uploaded by pj

a6q2

advertisement
1.) Improve graphics of invaders:
-we can make them more modern looking
File: images
-We can add a new image of like a modern looking alien (35*35px)or spacecraft in the file and change the name File SpaceInvaders.properties:
- Change the name of the image in invader property to the ones that we added so that these new images could accessed by PropertiesDiskStorage.java and ImageCache.java
And the same thing can be with life-indicators
3.)addition of a new weapon for the user to use
-File: model/
- add a class just like laser
1.)define height width and move_distance and change_freg just like laser
2)define a method called collideEvery clock tick, move MOVE_DISTANCE. Check for reaching the top or colliding with another object. If neither of these happen, change image every changeFreq ticks.
3) a method obejctHit that checks when the missile will hit.(reaching 75% of the game area)
-File:model/Game.java
1.)add attribute for nuke
2.)add a method named addnuke
3.)Game.getGameOjects add an if statement for nuke
-File: model/Player.java
1.)in fire method add info about nuke so that player can access it
-File:images
add image of the nuke in the image folder
-File:SpaceInvaders.properties
add nuke in the above
Download