Language: C Project Overview: Computer games are excellent way to stretch your programming ability, and practice both problem solving and developing your own solutions and
Language: C Project Overview: Computer games are excellent way to stretch your programming ability, and practice both problem solving and developing your own solutions and algorithms. The aim of this project is to recreate an absolute arcade classic released by Atari in 1980 - Centipede! Centipede (see Figure 1) is a vertically oriented shooter by Ed Logg and Dona Bailey. Designed intentionally to engage female players, the game consists of a centipede that winds its way from top to bottom of the screen (where the player is located). The screen is populated with some number of mushrooms. When the centipede hits a mushroom, it drops one row towards the player and changes direction. The more mushrooms, the faster the centipede typically descends towards the player. The player can fire and must shoot the centipede. The shot segment becomes a mushroom. If the player shoots a segment other than the head, the centipede splits into two, effectively gaining a new head and both descend towards the player. Mushrooms can be destroyed, but take four shots to destroy. The arcade version of the game also features fleas, spiders and scorpions. See the Wikipedia description for more detailed discussion of the gameplay. If you are unfamiliar with the game, watch the following youtube video demo: https://www.youtube.com/watch?v=dxoK8hosHjA, and read this overview: https://en.wikipedia.org/wiki/Centipede_(video_game)
Project Requirements: Your task is to implement a working single player game of Centipede, based on the arcade original. A fully featured implementation of the game is a lot to ask in the time available, so the game can and should be simplified to make the problem more tractable. Its wise to start conservatively with the most basic functionality and add more features should the time be available. Minimally, you should aim to create a game that should: - Display a single centipede and at least one player ship. - Move the centipede back and forth descending one row at a time. - Allow the player to move side to side. - Allow the player to fire a projectile. - Detect collisions between the projectile and the centipede. - Keep score. Advanced features (mushrooms, splitting when hit mid centipede, fleas etc.) can be added for more credit as time allows (see the marking scheme). Getting Started Youll need to do some research to learn the rules of operation of the game, and youll need to learn how to use a library of C functions that can assist you in drawing ASCII based graphics to the screen the ncurses library. To get stated, we recommend that you: Watch the YouTube video of the game to get an idea of how it works: https://www.youtube.com/watch?v=dxoK8hosHjA Make notes on the features of the game you can see pay particular attention to the phases of gameplay (start, middle, end). What is displayed on the screen and how does it change? Read the introduction to the ncurses library (sections 1-1.3): http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html Look back over term 1 and remind yourself of how to log into UNIX using the virtual machine and compile C programs. Try the hello world example: http://tldp.org/HOWTO/NCURSES-ProgrammingHOWTO/helloworld.html - youll need to #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started