Giter Site home page Giter Site logo

ciezo / snake-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40.96 MB

A Java Snake Game with beautiful custom made graphics

License: Apache License 2.0

Java 96.87% Shell 3.13%
java javaui javagui gui gui-application game game-development object-oriented-programming

snake-game's Introduction

Hi there ๐Ÿ‘‹

This account is affliated with Cloyd Van S. Secuya. The objective and purpose of having another account is for my projects allocation which I like to "divide" the ones that are creative, which is placed here, while my other account is for holding professional projects.

GitHub Stats

GitHub stats


Go check out my other account!

Cloyd Van Secuya

snake-game's People

Contributors

ciezo avatar deee01 avatar

Watchers

 avatar

snake-game's Issues

On Gameplay Window and Gameplay what happened was the Snake character is moving over the whole components

Problems
While playing the game and as I embedded the Snake character from SnakeProto to the SnakeGame's game_frame, it was moving over bounds, and the whole components inside the panel.

Enumeration:

  1. Snake is moving over the gameplay panel on game_frame
    
  2. Snake character is not able to move well when setBounds on Y coordinate is set to more thant 100 
    
  3. Snake movement is not processing at all when we try to modify the setBounds
    

Detailed Descriptions
After many tries, solutions, and implementations we have finally embedded a Snake character instance with complete game mechanics onto the game_frame, however, we still continue to experience problems with the positioning of the overall layout because the whole Snake instance from SnakeProto class is OVER THE COMPONENTS of the gameplay panel and game_frame


Screenshots
Put all your screenshots here! This will be helpful for debugging, fixes, and improvements!!
image

The snake character from SnakeProto instance is over the top of the UI components!
Turned on gridlines for better X and Y grids

Problem with initializing and setting up gameplay window

We cannot properly instantiate the gameplay window though there have been many attempts to remove the old components when initializing the gameplay panel to which where the gameplay elements such as dashboard, background gameplay, and snake are added.

The attachment below allows the preparation and initialization of a pop-up window for level picker
image

Then, this function is invoked when Grass biome level is picked
image




HOWEVER, AFTER MANY TRIES AND ATTEMPTS WE CANNOT REMOVE THE OLD COMPONENTS FROM THE HOME PANEL

On Snake what happened was the apple object/s sometimes do not appear on the screen

Problems
While using the app, I have experienced several times that the apple positioning sometimes goes wrong. That is to say, we have problems with its x and y coordinates

Enumeration:

  1. Apple sometimes not rendering nor appearing on screen
    

Detailed Descriptions
When running the game, the snake character moves just fine, however, sometimes upon instantiating the Snake game, we experience difficulties with the appearance, rendering, and positioning of the apple object.


Screenshots

On Home window and Gameplay Window what happened was music streaming from Home window does not stop

Problems
When you click Play from home window, you proceed to choose a level, and when you launch the gameplay window the music stream from Home window does not stop

Enumeration:

  1. Both background music from Home and Gameplay window are seemingly playing simultaneously!
    

Detailed Descriptions
Both music are playing together. Music from Home Window and music from Gameplay window as well are playing together


Screenshots

On Home window what happened was there are problems with hovering over Play, About, Exit buttons

Problems
This has been an occurring problem ever since before the launch of unstable release. What currently is happening is that Play, About, Exit buttons found on the game's home window or page are seemingly overlapping due to the fact that their panels may be oversized!

Enumeration:

  1. Hover over Play button is too early! Hit hover box is too big
    
  2. Hover over About button has the same problem like Play button as well, but sometimes you can't hover over it because Play button is overlapping its boundaries
    
  3. Hover over Exit button bounds is too big! Same issues with Play and About button as well
    

Detailed Descriptions
Please fix the problem with Home window about buttons


Screenshots

Wrong position of gameplay background

assets/backgrounds/grass_biome-BG_lv1.png

This happened within the SnakeProto where we always test the snake gameplay

This is the file being fetched from source in which it initializes a new JLabel instance to set a new ImageIcon. It seems that the file is being added and loaded properly to the JPanel, however, it is in the wrong position!

Such case brings us an abomination in which what we see on the window is a picture on top of the screen which covers the whole snake gameplay at all.

See attached image
image
Figure 1: A normal gameplay window where we can see the snake properly
















image
Figure 2: The background image is placed rather on top! Pay attention to the small streak of blue line on top of the window

Cannot restart gameplay in SnakeProto

Once the snake dies either by biting itself or getting hit in the wall. There is no way to restart the game.
Please, fix!

Assign a key or key-combinations to restart the game!

Apple Snake character rotation relative to its direction

Suggestions
Please, apply Snake character rotation upon movement

Enumeration:

  1. The Snake head should always face towards where it goes 
    
  2. The body of Snake should be also facing towards with the proper texture orientation
    
  3. The tail should also attached properly that should also be orientated relative to its direction inline with the head
    

Detailed Descriptions
It will be better if we apply some snake character rotation upon movement


On Snake what happened was the Snake character textures and graphical assets are not inline properly

Problems
The snake character just renders fine, however, when it moves accordingly to its own direction it does not inline properly with the rest of the Snake body parts

Enumeration:

  1. Snake head does not inline properly with the rest of the snake's body
    
  2. Snake tail does not inline well too 
    

Detailed Descriptions
Whenever we move the snake according to the desired direction, the rest of the body chunks, tail, and head do not inline properly. Please, see attached screenshots for more details, and gather more information about this issue


Screenshots
Put all your screenshots here! This will be helpful for debugging, fixes, and improvements!!

image
We cannot see the head and tail properly
Figure 1: Snake with 10 body chunks count



image
The snake head is not displayed properly along with the rest of the body
Figure 2: Snake with 2 body chunks count

On Gameplay Window what happened was if you keep long pressing the key buttons (arrow keys and WASD) the sound effect does not stop playing

Problems
Keep long pressing and don't release the WASD keys or arrow keys in moving the snake. And the sound effect when moving the snake does not stop playing LOL

Enumeration:

  1.  Error playing sound effect, does not stop when long pressed with its assigned keys 
    
  2.  Fix the method in keyEvents
    

Detailed Descriptions
Make it play once only!


Screenshots
Put all your screenshots here! This will be helpful for debugging, fixes, and improvements!!

Assign 'WASD' Keys

Arrow keys (up, down, left, right) are working properly.
We need to assign 'WASD' keys as well in moving the Snake character.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.