Question
C or c++ only and Allegro 5 Particle System (based on ParticleSystem sample) Functional Requirements The program will have a display size of 640x480. A
C or c++ only and Allegro 5
Particle System (based on ParticleSystem sample) Functional Requirements The program will have a display size of 640x480. A player object with a bitmap that looks like a rocket is displayed (bitmap background must be transparent). The player object has 4 versions of the rocket image for 4 directions and is controlled by keyboard. The rocket moves constantly. Player can only change direction. An array of particles follows the rocket in proper direction. They will be a constant stream of particles coming out at the end of rocket and going backward a little before they disappear. Every particle that disappears, will appear again at the end of rocket to create the constant stream. Direction of this stream is always the opposite of rockets direction. All particles have a small random movement in addition to base movement described above. Implementation Requirements Include Objective/Requirements/Algorithm at top of the code Use arrays for particles and structures for particles and player. You can use one GameObject structure, or define two for Player and Particle
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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