Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CIS 201 Assignment 6: Designing a Java Video Game using FANG, Assignments of Computer Science

An assignment for computer science i students to design and develop a java video game using the fang game engine. The assignment involves creating a game with at least two moving objects, user input, a goal, an ending, and the ability to play again or advance to the next level. Students are encouraged to document their code, use methods appropriately, and create their own work. Additional extensions are suggested for full credit, such as using an arraylist to manage multiple moving objects, implementing a high score file, adding game levels from a text file, animating sprites, and creating a help file.

Typology: Assignments

Pre 2010

Uploaded on 08/09/2009

koofers-user-gja
koofers-user-gja 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CIS 201 Computer Science I
Assignment 6: Design a Video Game
Due Wednesday, May 13, at 11:55pm
Introduction
This assignment will give you a chance to exercise your programming skills, your knowledge of
FANG, and your creativity. You may use classes, methods, files, and array lists.
Phase 1: Game
Write a video game of your design. The definition is intentionally left very broad. You have artistic
freedom, with the following constraints:
You must use Java and the FANG game engine to write your game.
There must be at least two moving objects on the screen during the gameplaying portion of
the game.
The user must provide input to the game that influences the behavior of one or more of the
objects on the screen. Input may be from the mouse or the keyboard.
The game must have a goal that the user is expected to achieve.
The game must have an ending (though “losing all of your lives” is a valid ending condition).
When the game ends, the user must have the opportunity to play again or to advance to
another level without re-starting the game from scratch.
From a Java standpoint, you must include the following:
You must have at least two classes one will extend the
Game
class, and the other will
probably extend one of the
Sprite
classes.
You must document your code according to the conventions we have been using in class.
You should use methods appropriately. Each method should do one thing. If a method has
parameters or return values, the documentation should indicate the purpose of each parame-
ter and the resulting return value.
You must do your own work. You can use any code examples given in class (in
/home/student/Classes/201/Misc
, for example), but of course you should go well be-
yond what is given in these examples.
1
pf2

Partial preview of the text

Download CIS 201 Assignment 6: Designing a Java Video Game using FANG and more Assignments Computer Science in PDF only on Docsity!

CIS 201 – Computer Science I

Assignment 6: Design a Video Game

Due Wednesday, May 13, at 11:55pm

Introduction

This assignment will give you a chance to exercise your programming skills, your knowledge of FANG, and your creativity. You may use classes, methods, files, and array lists.

Phase 1: Game

Write a video game of your design. The definition is intentionally left very broad. You have artistic freedom, with the following constraints:

  • You must use Java and the FANG game engine to write your game.
  • There must be at least two moving objects on the screen during the gameplaying portion of the game.
  • The user must provide input to the game that influences the behavior of one or more of the objects on the screen. Input may be from the mouse or the keyboard.
  • The game must have a goal that the user is expected to achieve.
  • The game must have an ending (though “losing all of your lives” is a valid ending condition).
  • When the game ends, the user must have the opportunity to play again or to advance to another level without re-starting the game from scratch.

From a Java standpoint, you must include the following:

  • You must have at least two classes – one will extend the Game class, and the other will probably extend one of the Sprite classes.
  • You must document your code according to the conventions we have been using in class.
  • You should use methods appropriately. Each method should do one thing. If a method has parameters or return values, the documentation should indicate the purpose of each parame- ter and the resulting return value.
  • You must do your own work. You can use any code examples given in class (in /home/student/Classes/201/Misc, for example), but of course you should go well be- yond what is given in these examples.

Phase 2: Extensions

Programs fulfilling the minimal requirements described above will be given credit for up to 80% of the assignment. For the remaining 20%, you should provide at least two extensions (each worth up to 10%). The following are suggested extensions:

  • Use an ArrayList to keep track of multiple moving objects. This could be similar to the pinball game done in lab or it could be like Space Invaders with an array of marching ene- mies.
  • Have a high score file stored on disk that keeps high scores from game to game. Make sure your program works even if the high score file is not there, in which case it should create one.
  • Have game levels that are described in a text file. To get full credit for this extension, you must include at least two levels. To get credit for this extension, you must describe the format of the file and how to create new ones.
  • Have animated sprites. That is, in addition to moving over time, the sprites should change over time. (Imagine an atom with whirling electrons or a spaceship with thrust fire.)
  • Add a help file expalining how to play the game when the user clicks on the Help button on the game window. Look at the FANG documentation to see how to do this.

Submission

Create a short file named README describing your game, how to run it, and listing all of the files that are required to run the game. Upload the README and the other files to moodle.