Post Reply 
[Python] NBA - Basketball shooting game
04-19-2023, 02:38 PM (This post was last modified: 04-21-2023 05:20 PM by Yoo.)
Post: #1
[Python] NBA - Basketball shooting game
Hi All,

I wanted to share with you what we developed with my son on his new HP Prime (birthday gift).
He is learning Python too. (I discovered it as well..)

This is a very basic baskball shooting game based on angle/velocity input and animation.

Have fun!
[Image: Screenshot%204.png?raw=true]

Source code @ : https://github.com/Yoobe/nba-hpprime

DL the hppdir @ : v1.0

Yoo
HP-48G - HP-Prime
Visit this user's website Find all posts by this user
Quote this message in a reply
04-23-2023, 01:04 AM
Post: #2
RE: [Python] NBA - Basketball shooting game
Nice program and animations, its a fun game. My only gripes are that pressing escape/home/cas doesn't exit the program to home/cas, and entering a force of 0 causes a division by zero crash. One suggestion for future improvement would be to save the highscore between app runs and display it near the current score.

- neek
Find all posts by this user
Quote this message in a reply
04-23-2023, 05:14 PM
Post: #3
RE: [Python] NBA - Basketball shooting game
Thanks for the feedback.
Yes this is not robust code yet - Alpha version we might say.

To exit the app, you can use "On" button for the moment or change code to add extra Keycode to exit.

Yoo
HP-48G - HP-Prime
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)