ScratchData LogoScratchData
Back to EdnaC's profile

SlidingScrollingCar

EDEdnaC•Created January 24, 2008
SlidingScrollingCar
11
8
191 views
View on Scratch

Description

An update to "DriftCar", this project adds a scrolling background - DriftCar always needed more real estate, and I was curious about scrolling in X and Y. Arrow Keys to Steer, Up Arrow to Accelerate, Down arrow for brakes. The "world" for the car is comprised of 4 sprites: UpperLeft, UpperRight, etc., with the "rotation center" of each in the corner that will be the center of the "world". This lets Scratch push the background almost off the screen so that the whole world is available. The "Map" Sprites are a bit crude... Sorry. The variable displayed in the upper left is reset (along with the timer), when you press "t". It counts updates (increments each time the program does a "move") for 10 seconds, then divides the number by 10 and stops, giving an idea of the "frame rate". If you download and are "looking at" a sprite that does a lot of calculating (like the car), it gives a value that is about 1/2 of what presentation mode gives. I'm curious what it will show in "Java".

Project Details

Project ID86855
CreatedJanuary 24, 2008
Last ModifiedJanuary 24, 2008
SharedJanuary 24, 2008
Visibilityvisible
CommentsAllowed