GAME: Racer

+- HP Forums (http://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: GAME: Racer (/thread-5628.html)



GAME: Racer - Mark Power - 02-12-2018 04:06 PM

Hi Everyone, I've been following a tutorial on building an Outrun style racing game. My kids and buddies think it is now ready to unleash. Have fun and let me know what features you'd like me to try to squeeze in next.

[Image: splash.png][Image: night.png][Image: setup.png]



How to install this app:
  • Make sure to update to the latest firmware (8151 or higher).
  • Make sure to update to the latest Connectivity Kit (8151 or higher).
  • Copy the Racer32.hpappdir folder into your My Documents\HP Connectivity Kit\Content folder on your PC.
  • Run the Connectivity Kit and connect your calculator to your PC (or optionally run the virtual emulator).
  • Drag the Racer32.hpappdir folder on the left pane of the connectivity kit window, just inside "App Library" category and drop it there.

How to play
  • Select Racer from the Apps screen
  • Press [ENTER] to start a race with the default setup, any other key for instructions. Get back here by pressing [View]
  • Optionally go to Setup... and alter the number of laps to race and whether you want AutoAccelerate (on by default), easy or hard track, day or night mode, and traffic to get in your way
  • Select Start Race
  • Use [1] and [2] for steering
  • Use [+] and [-] for accelerate and decelerate
  • Keep off the grass!

Limitations
  • Two tracks but you can build your own in ResetRoad() if you are feeling brave.
  • I've added AutoAccelerate so that you don't have to hold down the [+] key to get the car moving. This might help you play on the emulator - but it's not configured correctly for this at present so is too fast
  • Only 20 road segments drawn per frame to keep the frame rate up. Some serious optimisation is needed to improve this.
  • v23 should fix failure to start

Thanks
  • Sega
  • Jake Gordon for his excellent javascript racer tutorial http://codeincomplete.com/posts/2012/6/22/javascript_racer/
  • Tim Wessman and all at HP for truly amazing hardware and spectacular firmware
  • mandresve for showing us how to view png files
  • Han for his tutorial on TRIANGLE which I still haven't used but which inspired me to try 3d out the hard way

V28 is now available. This adds:
  • Easy or hard tracks
  • Day and night modes
  • Traffic to get in your way
  • Lane markings

v30 is now available. Minor update adds:
  • Splash screen to allow quick start using default settings (thanks to DJ Omnimaga for the suggestion)
  • Fixed display of lap counter and lap time (thanks to critor's video showing this unexpected behaviour)

v32 is now available. Minor update adds:
  • Timing is now implemented more effectively so that the game runs at roughly the same speed on the virtual HP Prime as on the real calculator.
  • When using a virtual Prime you can steer using the cursor pad on the emulated calculator, or using the keyboard left and right cursor keys.
  • Using the real calculator steering can be via left and right on the cursor pad, or the original 1 and 2 keys.

  • v35 adds compatibility with firmware 13333 which has an issue with DIMGROB. This version should be compatible with earlier versions of firmware if you have not yet updated to 13333.