I need a 2d shape based snake game made in java
- or -
Post a project like this1941
£40(approx. $50)
- Posted:
- Proposals: 1
- Remote
- #2231233
- Awarded
Description
Experience Level: Entry
I need someone to code me a 2-dimmensional shape based game of Snake. This needs to be done in Intellij and YOU ARE NOT ALLOWED TO USE ADDITIONAL APIs (application programming interfaces), LIBRARIES, OR COPY OTHER CODE it needs to be your own work
The first part of the this coding project is to create an application capable of holding a collection of different shapes, drawing these shapes to the screen, allowing these shapes to be moved by the user, and resized on the screen. The second part asks you to extend this basic set of building blocks to construct a simple game of snake.
The aspects that will be looked at are:
a) Your user interface should be run as an application that can hold a grid of filled squares. The grid of squares should be of length 20 and of height 20. Initially the grid should be empty. The title of the application frame should be "coding project snake"
b) Shapes should be encapsulated in their own classes. An abstract class ‘Shape’ should first be created. This should then be extended to create classes to encapsulate the following types of shape: Squares, Rectangles, Circles, Triangles, Pie shapes (portions of a circle). The shapes should all be stored in a single collection. Each shape should encapsulate methods to allow it to be drawn to the screen at arbitrary
positions, rotations, and sizes
c) Two event handler classes should be created to respond to keyboard events (e.g. pressing the arrow keys) and mouse events (e.g. pressing the mouse buttons).
d) The game should keep a record of scores (how long you survive for in seconds). This should be done via a text file. A new class should be created to allow new scores to be entered into this text file. Methods should be added to return the top 10 scores of all time. These scores should be displayed on-screen at the end of a round of your game. Appropriate exception handling should be used (for example for missing files).
e) Do not simply put all code in a single class. You should apply object-oriented principles and use appropriate comments throughout your code (see details below).
f) To receive the full invoice for this project, you will need to develop a game of snake using these basic building blocks. Your game should be 2D and use the Shape classes, event handlers, and score tracker developed above. After the end of a round of your game a score should be allocated (this could be based on some outcome of the game, e.g. the length of time you survive for). The score should be displayed to players after finishing a game along with their all-time ranking. An interface should be available to allow the top 10 all-time best scores to be displayed.
The program should contain brief comments indicating precisely what each method does and what each instance variable is used for. You should not write any comments stating what individual lines of code do; but in places it may be appropriate to state what a block of code does (e.g. “received a mouse event”).
The program should be structured appropriately and laid out neatly with consistent indentation and enough commenting to understand the code.
This needs to be completed by friday the 7th (as timezones as i am GMT 0) and this should be doable as the goal of the snake program is that it should not be too overcomplicated.
The first part of the this coding project is to create an application capable of holding a collection of different shapes, drawing these shapes to the screen, allowing these shapes to be moved by the user, and resized on the screen. The second part asks you to extend this basic set of building blocks to construct a simple game of snake.
The aspects that will be looked at are:
a) Your user interface should be run as an application that can hold a grid of filled squares. The grid of squares should be of length 20 and of height 20. Initially the grid should be empty. The title of the application frame should be "coding project snake"
b) Shapes should be encapsulated in their own classes. An abstract class ‘Shape’ should first be created. This should then be extended to create classes to encapsulate the following types of shape: Squares, Rectangles, Circles, Triangles, Pie shapes (portions of a circle). The shapes should all be stored in a single collection. Each shape should encapsulate methods to allow it to be drawn to the screen at arbitrary
positions, rotations, and sizes
c) Two event handler classes should be created to respond to keyboard events (e.g. pressing the arrow keys) and mouse events (e.g. pressing the mouse buttons).
d) The game should keep a record of scores (how long you survive for in seconds). This should be done via a text file. A new class should be created to allow new scores to be entered into this text file. Methods should be added to return the top 10 scores of all time. These scores should be displayed on-screen at the end of a round of your game. Appropriate exception handling should be used (for example for missing files).
e) Do not simply put all code in a single class. You should apply object-oriented principles and use appropriate comments throughout your code (see details below).
f) To receive the full invoice for this project, you will need to develop a game of snake using these basic building blocks. Your game should be 2D and use the Shape classes, event handlers, and score tracker developed above. After the end of a round of your game a score should be allocated (this could be based on some outcome of the game, e.g. the length of time you survive for). The score should be displayed to players after finishing a game along with their all-time ranking. An interface should be available to allow the top 10 all-time best scores to be displayed.
The program should contain brief comments indicating precisely what each method does and what each instance variable is used for. You should not write any comments stating what individual lines of code do; but in places it may be appropriate to state what a block of code does (e.g. “received a mouse event”).
The program should be structured appropriately and laid out neatly with consistent indentation and enough commenting to understand the code.
This needs to be completed by friday the 7th (as timezones as i am GMT 0) and this should be doable as the goal of the snake program is that it should not be too overcomplicated.
Jack A.
85% (4)Projects Completed
4
Freelancers worked with
4
Projects awarded
100%
Last project
17 Mar 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies