Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)