Software Engineering > Quiz > Super speed sprint race in P5 .play, Sprites provides some additional functionality over normal imag (All)

Super speed sprint race in P5 .play, Sprites provides some additional functionality over normal images-( questions with complete solution)

Document Content and Description Below

Super speed sprint race in P5 .play, Sprites provides some additional functionality over normal images-Question 1 (12 marks) - Super Speed Sprint Racer In p5.play, sprites provide some additional fun... ctionality over normal images. Using p5.play, create a simple top-down racing game similar to Super Sprint (https://en.wikipedia.org/wiki/Super_Sprint) but simpler, with the following specifications:  The program should read a track in from a file called 'track.txt'. 0 should indicate grass, 1 should indicate track and 2 should indicate start/finish line. You should find/draw appropriate images to use as tiles to represent these components, and it is recommended that you load them in as sprites. Each 'tile' should have dimensions controlled by variables, and be positioned according to the input file. If the input file is 10x10 numbers, you should draw this many tiles. The track is static, so this could be drawn in the setup phase, but you will need access to this data for detecting the car leaving the track (3 marks)  The program should draw a car as a sprite on the start finish line, facing one of the adjacent road tiles. You could find a suitable image to use. The car size should be controlled by a variable (but always smaller than the tile size) and be placed in the middle of the road. (2 marks)  The program should allow for 4 inputs - up/down and left/right on the keyboard. Up and down should modify the velocity of the car (you should impose limits so it cannot go too fast or backwards). Left and right should rotate the angle it is facing and moving. This should be done in a smooth way so the car cannot execute instant 90 degree turns. (4 marks)  If the car leaves the track and hits the grass, the game should reset to the start position (simply move the car back to its initial position) (3 marks) For this question, we are not assessing your ability to write a full game (Milestone 2 covers this), but are more interested in demonstrating your ability to use p5.play and other features. [Show More]

Last updated: 1 year ago

Preview 1 out of 3 pages

Reviews( 0 )

$5.00

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

GET ASSIGNMENT HELP
102
0

Document information


Connected school, study & course


About the document


Uploaded On

Sep 28, 2022

Number of pages

3

Written in

Seller


seller-icon
A-LEVEL GURU

Member since 1 year

17 Documents Sold


Additional information

This document has been written for:

Uploaded

Sep 28, 2022

Downloads

 0

Views

 102

Document Keyword Tags

Recommended For You

What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·