wuming0624 / Duke-Basketball-Game

Create a small game using javaFX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

game

First project for CompSci 308 Fall 2015

Name: Wuming Zhang

Date started: Aug 27th

Date finished: Sep 4th

Hours worked: 25 hours

Resources used: Example code from Professor Duvell https://docs.oracle.com/javafx/2/get_started/jfxpub-get_started.htm http://gamedevelopment.tutsplus.com/tutorials/introduction-to-javafx-for-game-development--cms-23835 http://static.giantbomb.com/uploads/square_avatar/10/100719/1472102-basketball__mario_sports_mix_.png https://c2.staticflickr.com/8/7168/6547262161_6bf9071ae4_b.jpg http://retroblastradio.com/wp-content/uploads/2015/05/exp-4.jpg http://ecx.images-amazon.com/images/I/41Z54HY6TSL._SX466_.jpg https://pbs.twimg.com/media/CLxTu3JUsAAXUze.jpg http://i.cdn.turner.com/nba/nba/.element/media/2.0/teamsites/celtics/media/hs-jahlil-okafor-325x325.jpg http://assets.rollingstone.com/assets/2015/media/200816/_original/1435252914/1035x690-01-portrait-B&W-headshot-006.jpg http://img.bleacherreport.net/img/slides/photos/003/984/872/hi-res-ca35f6fae8eec7f5a8c8557df2ac1df8_crop_north.jpg?w=630&h=420&q=75 http://www.etruesports.com/files/Image/Roy%20Williams_Belmont%20loss_crop2.jpg http://s3media.247sports.com/Uploads/Assets/794/500/6_3500794.jpg https://yt3.ggpht.com/-_vQ8QnGJqE8/AAAAAAAAAAI/AAAAAAAAAAA/5oYk_9VFrhM/s900-c-k-no/photo.jpg http://image.thenewslens.com/wp-content/uploads/2014/05/rejection_ideogram.png https://cdn1.vox-cdn.com/thumbor/bwNx-yYlNDFtDIgl5GarByxFMok=/0x920:3832x3475/730x487/cdn0.vox-cdn.com/uploads/chorus_image/image/46087790/usa-today-8505841.0.jpg

Main class file: Main.java, GoJahlil.java, Basket.java

Data (non Java) files needed: ball.png, bang.png, basket.png, grayson.png, head.png, head1.png, Jahlil1.jpg, justise.png, logo3.png, Lose.jpg, Offense.png, reaper.png, rejection.png, smallhead.png, smallhead1.png, Stadium.jpg, Win.jpg (all in images forder)

How to play the game: In the offense mode, the player will get 20 balls in the beginning. The player can only move along four directions along using the keyboard and shoot the ball by clicking the mouse to wherever he wants to shoot. When the defenders show up on the screen, the player has to either avoid it by moving left and right or use the ball to knock over the defender. The baskets come towards the player at the same time as the defenders. The shot will be blocked if the defender is on the path of your shot to the basket. The total number of the balls decreases whenever the player uses a ball. Each time the player makes a basket, he gains three new balls, whereas each time the player touches a defender without shooting the ball, he loses 5 points. The speed of the defenders will increase as the game goes forward and there will be new character & new moving patterns appear. Player wins when he gets 100 balls.

In the Practice mode, the player will try to avoid the balls as long as possible by using keyboard to move around. The player loses whenever he/she hits the ball.

Keys/Mouse input: Left--A Right--D Up--W Down--S, Click the mouse to shoot, ESC to go back to starting menu.

Cheat Keys: slow down the game--keyboard LEFT, back to default--keyboard RIGHT add more points to each ball the player makes--keyboard UP, back to default--keyboard DOWN

Known bugs: The player can possibly move out of the screen by using the keyboard.

Extra features: More characters could potentially be brount in. And there could be a boss mode. Right now the hardest part of the offense mode is that the defenders will shake left and right randomly while moving down towards the player in a very high speed.

Impressions/Suggestions: Still have a lot of potential to do refactorying. And the game could definitely add more features or rules.

About

Create a small game using javaFX

License:MIT License


Languages

Language:Java 100.0%