Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/racefx
RaceFx a JavaFX racing game with betting capabilities
https://github.com/abranhe/racefx
college fun game game-development gaming java javafx
Last synced: about 4 hours ago
JSON representation
RaceFx a JavaFX racing game with betting capabilities
- Host: GitHub
- URL: https://github.com/abranhe/racefx
- Owner: abranhe
- License: apache-2.0
- Created: 2019-05-01T23:50:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T18:58:50.000Z (over 5 years ago)
- Last Synced: 2024-11-12T03:43:37.830Z (about 2 months ago)
- Topics: college, fun, game, game-development, gaming, java, javafx
- Language: Java
- Homepage: https://p.abranhe.com/racefx
- Size: 2.26 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
RaceFx
A JavaFX racing game with betting capabilities
## Get RaceFx
Download for MacOS Download for Windows## Contribute
Clone or download the repository and open it on your favorite Java IDE. I recomend [Netbeans](https://netbeans.org/) since it was written on it.
```
$ git clone https://github.com/abranhe/racefx.git && cd racefx
```
###### Some cool ideas?
- [ ] More cars.
- [ ] More racing themes.
- [ ] More sound effects.
- [ ] Choosing an avatar.Add your cool feature and submit a pull request. This project I made it back when I was learning, I wanted to fix it a little and make a whole new project out of it.
```
$ git checkout -b your-feature master
```## What it does?
Write a JavaFX project (extend JavaFX application) that implements a robot racing animation with betting capabilities. The application must contain/do the following:
- Size 600 x 600 pixels.
- Robot themed race tract.
- Be multithreaded.
- 5 robots with different numbers (you can use pictures if necessary) or design your own (be
creative).
- A button to start the race and a button to reset the race.
- A text field to enter a betting amount (whole dollars only max. $1000).
- A text field to enter the number of the robot the user is betting on (validate 1..5).
- When the application starts, all robots are on the left of the screen, at least 20 pixels away from
each other.
- When the start race button is pressed, the robots will start running from left to right until they
reach the right side of the scene.
- Randomize the movement of the robots so they don’t all move at the same speed. This will add
some unpredictability to the game. Your game needs to be able to detect when a robot has reached
the end of the race track and record the order of arrival of the robots.
- When all the robots have finished the race, check if the robot the user bet on is in first, second or
third place.
- If the robot the user bet on finished in first place, the user won his/her betting amount *
$1000. Display a message congratulating him/her and showing the amount won.
- If the robot the user bet on finished in second place, the user won his/her betting amount *
$500. Display a message congratulating him/her and showing the amount won.
- If the robot the user bet on finished in third place, the user won his/her betting amount *
$250. Display a message congratulating him/her and showing the amount won.
- If the robot the user bet on finished in fourth place, display a message informing the user of this
fact
## Declaimer
I build this project long time ago, with almost no knoledge. I tried to refactored a little to make it easier to underestand and to be easier to add features, but still this project is pretty buggy (I tried my best back then). I'd love if you add some new cool features!
## License
[Apache Software Foundation](https://github.com/abranhe/RaceFx/blob/master/license) © [Abraham Hernandez](https://github.com/abranhe)