flappy-bird-engine-0.0.4


توضیحات

A game engine for Flappy Bird powered by Pygame.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل flappy-bird-engine-0.0.4
نام flappy-bird-engine
نسخه کتابخانه 0.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Joshua Billson
ایمیل نویسنده jmbillson@outlook.com
آدرس صفحه اصلی https://github.com/JoshuaBillson/Flappy_Bird_Engine.git
آدرس اینترنتی https://pypi.org/project/flappy-bird-engine/
مجوز -
# Flappy Bird Game Engine The purpose of this project is to provide a simple game engine for running Flappy Bird. The engine is powered by Pygame and can be used simply by importing the GameEngine class into a project and utilizing the provided methods. ## Gameplay The space bar is used to jump and the score is tracked as the number of elapsed seconds since the game began. Hitting the pipes, ground, or ceiling results in instant death. ## Constants **game_engine.WINDOW_SIZE**<br/> A tuple declaring the width and height of the game window. ## Classes **game_engine.GameEngine**<br/> This class maintains the state of the game and provides several methods for updating its state. It is the only class needed to start, run, and maintain the game. ## Functions **game_engine.GameEngine(window, fps)**<br/> Creates a GameEngine object for running a game of Flappy Bird.<br/> *window (pygame.Surface):* A window inside which the game is drawn.<br/> *fps (int):* The number of game frames to be rendered per second, recommended value is 30.<br/> **game_engine.GameEngine.start_game()**<br/> Starts a new game with a brief 3 second countdown allowing for the player to ready themselves. **game_engine.GameEngine.events()**<br/> Handles player diven events, to be called once each frame.<br/> **game_engine.GameEngine.update_state()**<br/> Updates the state of the game, to be called once each frame. **game_engine.GameEngine.draw_frame()**<br/> Draws the current frame to the screen, called once each frame. **game_engine.GameEngine.next_frame()**<br/> Waits an appropriate length of time to ensure the desired FPS is maintained, called once at the end of each frame.


نیازمندی

مقدار نام
==1.9.6 pygame
==0.34.2 wheel


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl flappy-bird-engine-0.0.4:

    pip install flappy-bird-engine-0.0.4.whl


نصب پکیج tar.gz flappy-bird-engine-0.0.4:

    pip install flappy-bird-engine-0.0.4.tar.gz