Find Jobs
Hire Freelancers

Opengl C++: Need cannon to shoot ball

$10-30 USD

Cancelled
Posted over 6 years ago

$10-30 USD

Paid on delivery
C++ code in opengl where you need to shoot moving teapots using a canon. I marked the ones that are completed with [COMPLETED] next to it so only the remaining tasks i need completed Teapots should leave the screen in one end of the window and immediately enter from opposite end of the window. Create and add a 3D cannon such that it aims forward from the viewer towards the far plane. It is okay to show only the tip (firing end) of the cannon. [COMPLETED] – The cannon can turn left and right, and up and down (yaw and pitch movements) like a real cannon. Theuser controls left-right rotation with right-left arrow keys, and up-down rotation with up-down arrowkeys. The rotation in either direction should be clamped to a certain range (say, 120 degrees) so the cannonball would stay within the view volume. [COMPLETED] – The cannon should fire a cannonball (sphere) every time the user presses the space bar. The ball should fly in the direction of the current orientation of the cannon. Once the ball goes through any wall and thus no longer visible, delete it from the scene to avoid clogging the memory. Therefore, the system will store no more than a few (fired) balls at any given time. – During the game, display text at the top of the screen that shows how many teapots are currently left. – When the cannonball hits one of the teapots (collision detection needed here), the hit teapot must immediately disappear from the scene (and so must this cannonball). The text must also be updated accordingly with a new number (one less teapots left). – When the last teapot is hit, the game is over and the text should be replaced with “Continue? (Y/N)”. If the user presses ‘y’, start the game over. If ‘n’, exit program. [COMPLETED] – The background walls (all 5 of them) must be texture mapped. You can use any tileable texture image of your choice, but make sure the image file size is less then 1MB (with no bigger than 512  512 pixel resolution). Do not use multiple texture images. [COMPLETED] – If the user presses ‘q’ at any time (even during the game), exit program. [COMPLETED] – Every time the cannonball fires, rapidly push the cannon backwards a bit to simulate the action-reaction effect. After this quick push back, the cannon should immediately come back to its original position before it can fire a new ball (see [login to view URL]). Try to make this movement as realistic as possible. – Whenever a teapot is hit, the hit teapot must fly out of the scene in a random direction towards far plane(so the depth should increase) while randomly spinning. Once the teapot goes past the wall, remove it from the scene.
Project ID: 15826719

About the project

1 proposal
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
hi i have experience in opengl i can do your task as long term thanks Relevant Skills and Experience opengl Proposed Milestones $25 USD - all when you give me task i will start right soon
$25 USD in 1 day
3.4 (5 reviews)
3.5
3.5

About the client

Flag of UNITED STATES
Cottleville, United States
5.0
2
Payment method verified
Member since Dec 2, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.