Skip to content

Ouss-commit-code/FlappyUfo-JAVA-GAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlappyUfo-JAVA-GAME

flappy Ufo JAVA GAME is a simple arcade game implemented in Java, typically using the Swing library to create a graphical user interface (GUI). The game features a bird that moves automatically across the screen, and the player controls the bird's vertical movement by pressing the spacebar to make it jump, thereby avoiding obstacles such as pipes. The objective is to navigate the ufo character through gaps between the pipes without colliding with them or the ground, with each successfully passed pipe increasing the player's score by one point.

The game is often built using object-oriented programming (OOP) principles, with classes defined for the bird, pipes, and game logic. The bird's movement is simulated using velocity, where pressing the spacebar applies an upward force, and gravity continuously pulls the bird downward. Collision detection is implemented to check if the bird hits a pipe, the ground, or the top of the screen, which results in a game over. The game loop, often managed by a Timer, updates the positions of the bird and pipes, and repaints the screen to reflect the current state.

Game logic helper : image

Preview : image

MIT License

Copyright (c) 2025 @Ouss-commit

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

FlappyUfo JAVA GAME is a simple arcade game implemented in Java, typically using the Swing library to create a graphical user interface (GUI).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages