A Pygame game made in 48 hours

Overview

Flappuccino

Flappuccino is a game created in 48 hours for the PyGame Community New Years Jam using Python with Pygame.

Screenshots

Background

Information on how to play is available on the game's itch.io page.

Usage

Releases

A Windows build of the game is available here.

Running from source

Grab the latest release of Python from here and install Pygame by executing pip install pygame.

Note: If the pip install pygame did not work for you, then try this:

  1. Windows: python -m pip install pygame
  2. Mac: python3 -m pip install pygame
  3. Linux: Same as windows.

Ensure main.py is in the same directory as ./data and execute python main.py.

Contributing

Pull requests are welcome! For major refactors, please open an issue first to discuss what you would like to improve. Feel free to create a fork of this repository and use the code for any noncommercial purposes.

Comments
  • Could not import .player from player [ISSUE CLOSED]

    Could not import .player from player [ISSUE CLOSED]

    info: pygame 2.0.1 (SDL 2.0.14, Python 3.8.6) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "main.py", line 4, in from .player import Player ImportError: attempted relative import with no known parent package

    opened by TTR-maniac 14
  • Not working on Linux (Ubuntu 20.04.2 LTS)

    Not working on Linux (Ubuntu 20.04.2 LTS)

    Hi, I'm running GNU/LInux Ubuntu 20.04.2 LTS with the KDE Plasma Desktop. I ran from source and installed pygame. But when I run Flappuccino, this error comes up (full log output): jeremystartm@StarPC:~/Flappuccino$ python3 main.py pygame 2.0.1 (SDL 2.0.14, Python 3.8.5) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "main.py", line 4, in from .player import Player ImportError: attempted relative import with no known parent package

    Info: Bold = Command | Italic = Command output

    opened by JeremyStarTM 8
  • NameError: name 'colorsys' is not defined

    NameError: name 'colorsys' is not defined

    I removed the "." before the imports and now this happens:

    $ python3 main.py pygame 2.0.0 (SDL 2.0.12, python 3.8.5) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "main.py", line 277, in <module> main() File "main.py", line 161, in main o.setSprite(((player.position.y/50) % 100) / 100) File "/home/shokifrend77/Downloads/flappuchino/Flappuccino-main/background.py", line 9, in setSprite color = colorsys.hsv_to_rgb(tint,1,1) NameError: name 'colorsys' is not defined

    Thanks in advance!

    opened by shokifrend007 5
  • Bean on the left, plus on the right

    Bean on the left, plus on the right

    Hi.

    Ok, so, I fixed the image. After all of that persuasion, here is the image. ~~i'm bad with gimp feel free to improve the image~~

    I have added the png for it, but I'll give you the xcf anyway. You can get the xcf here.

    opened by firefish111 5
  • Error

    Error

    Hey, so when I run the project, I receive this error PS C:\Users\orlan\OneDrive\Desktop\Flappuccino-main> & C:/Users/orlan/AppData/Local/Programs/Python/Python310/python.exe c:/Users/orlan/OneDrive/Desktop/Flappuccino-main/main.py pygame 2.1.2 (SDL 2.0.18, Python 3.10.5) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "c:\Users\orlan\OneDrive\Desktop\Flappuccino-main\main.py", line 277, in <module> main() File "c:\Users\orlan\OneDrive\Desktop\Flappuccino-main\main.py", line 17, in main pygame.display.set_icon(bean().sprite) UnboundLocalError: local variable 'bean' referenced before assignment

    opened by Snaky4life 2
  • a performance improvement and cleaner code

    a performance improvement and cleaner code

    so i wanted to merge my fork with this branch and couldnt make a pull request so i am here making a ticket. so i basically improved FPS and made the code cleaner with more comments were i understood what was going on

    opened by Emc2356 2
  • Organize the entire game

    Organize the entire game

    Organization in python is almost essential. I have organized all the classes and functions into other files and everything seems to be working!

    Thanks again.

    opened by ghost 2
  • itch.io link

    itch.io link

    Uhh, in the README.md the link which leads to the game's itch.io page goes to cursor-custodian. Can you please fix this, I would have pull requested, if I knew the game's itch.io link.

    Thanks

    opened by ghost 2
  • Why official code gives me a lotta error

    Why official code gives me a lotta error

    when i tried to execute the main.py, it says

    Hello from the pygame community. https://www.pygame.org/contribute.html
    Traceback (most recent call last):
      File "D:\Coding Stuff\Python\Flappuccino-main\main.py", line 4, in <module>
        from .player import Player
    ImportError: attempted relative import with no known parent package```
    opened by CyberVictoryMan 1
  • Fix the itch.io link and add comments

    Fix the itch.io link and add comments

    itch.io link

    So, in the README.md, one of the itch.io links' leads to cursor custodian. I have fixed that and added an additional section about pygame and it's installation to help people install the library.

    Comments and __name__ == "__main__"

    Then in the main file I added comments, and also check whether the file was imported and then the main function was called or from the same file and not from another file. This is how to do that:

    import pygame
    def main():
        print("I like coding")
    # now come to the part
    if __name__ == "__main__":
        main()
    

    A great article which proves this in detail is this. Anyways, hope this helps Flappuccino.

    opened by ghost 1
  • No parent package for .player

    No parent package for .player

    When ever i try to run main.py with any command that works i get this error

    C:\Users\{MY USER}\Downloads\Flappuccino-main\Flappuccino-main>python3 main.py pygame 2.1.2 (SDL 2.0.18, Python 3.10.6) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "C:\Users\{MY USER}\Downloads\Flappuccino-main\Flappuccino-main\main.py", line 4, in <module> from .player import Player ImportError: attempted relative import with no known parent package

    opened by craftyglitch 0
  • What should I do?

    What should I do?

    pygame 2.0.1 (SDL 2.0.12, Python 3.9.7) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/storage/emulated/0/main.py", line 9, in ImportError: attempted relative import with no known parent package

    opened by Suchir2004 1
  • Platform support: Mac/Linux/Web

    Platform support: Mac/Linux/Web

    Tested on:

    Linux pygame 2.1.2 (SDL 2.0.16, Python 3.10.6)

    Mac pygame 2.1.2 (SDL 2.0.18, Python 3.9.6)

    Web Example: https://humbertodias.github.io/Flappuccino/

    opened by humbertodias 0
  • Necessary changes and improvements to the code

    Necessary changes and improvements to the code

    Changes to make the game actually work:

    • Added import colorsys in background.py
    • Proper imports in main.py

    Improvements (unnecessary changes): Deleted unused variables and imports

    opened by Xyc330 0
  • fixing bugs on running from source on unix systems (tested on linux)

    fixing bugs on running from source on unix systems (tested on linux)

    Fixed issues with importing into the main file and in the background, and updated the README adding the fix to a problem that occurs when executing source code on Unix systems, i hope that this PR can be merge on main branch

    opened by JosepHyv 0
Owner
PolyMars
PolyMars
This is a simple game made using pygame.

Ball breaker This is a simple game made using pygame game view The game view have been updated wait for the new view to be uploaded Game_show.mp4 Lear

Rishikesh Kumar 3 Nov 5, 2021
Small game I made in 2019 using python/pygame.

Kill-The-Blokk // Shoot or Die This is a small game I made in gr.10 (2019) for my high school computer science class; the game was coded in python usi

null 1 Nov 13, 2021
Racing Fire - A simple game made with pygame.

Racing Fire A simple game in the making. Using pygame, this game is made to feel like an old arcade game. I developed a simple controller for it with

Builder212 1 Nov 9, 2021
A game made similar as space inveders with pygame

space-inveders-pygame a game made similar as space inveders with pygame . . . if you are using it make sure to change audio and imgs file i do no own

Volt_L18 2 Dec 26, 2021
The Classic Fruit Collecting game made in python with pygame

FruitCollect A classic fruit Collecting game made with pygame Install pygame before running: "pip install pygame" Rules: Random fruits will drop from

Pranav Bobby 1 Dec 1, 2021
A Python Sudoku Game Made with Pygame.

A Python Sudoku Game Made with Pygame. A Begginer Aimed at Learning Git, This Game Uses a Puzzle Generator Made by RutledgePaulV, Link to his Repo:

helaxious 3 Jun 29, 2022
Snake game made in python with the pygame library.

Pygame snake Snake game made in python with the pygame library. Requirements pip pygame Pygame Installation On the command line, type: pip install pyg

Ayza 3 Oct 2, 2022
This is a 2D Link to the Past-esque game made using Python 3.2.5 and pygame 1.9.2

Queen-s-Demise Queen's Demise This is a 2D Link to the Past-esque game made using Python 3.2.5 and pygame 1.9.2 I made this for a game development cla

Zoey 1 Dec 15, 2021
N-Queens game made using pygame library

N-Queens N-Queens game using pygame for AIML201 Testing: 1. git clone https://github.com/python-game-dev/N-Queens.git 2. cd N-Queens 3. python main.py

null 1 Sep 24, 2021
A didactic GUI chess game made in Python3 using pygame.

Chess A didactic GUI chess game made in Python3 using pygame. At the moment, there is no AI. The only way you can test the game is by playing against

Leonardo Delfino 1 Dec 22, 2021
A Game Engine Made in Python with the Pygame Module

MandawEngine A Game Engine Made in Python with the Pygame Module Discord: https://discord.gg/MPPqj9PNt3 Installation To Get The Latest Version of Mand

Mandaw 14 Jun 24, 2022
🐥Flappy Birds🐤 Video game. With your help I can go through🚀 the pipes. All UI is made with 🐍Pygame🐍

?? Flappy Fish ?? I am Flappy Fish ?? . With your help I can jump through the pipes and experience an interesting and exciting flight deep into the fi

MohammadReza 2 Jan 14, 2022
Made with pygame. Multiplayer game using socket module and threading.

Rock Paper Scissor made with python-pygame. Poorly made, as a beginner in programming. Multiplayer with server code and client code provided.

AllenJo 1 Dec 29, 2021
Inflitator is a classic doom and wolfenstein3D like game made in Python, using the famous PYGAME module.

INFLITATOR Raycaster INFLITATOR is a raycaster made in Python3 with Pygame. It is a game built on top of a simple engine of the same name. An example

Zanvok Corporation 1 Jan 7, 2022
A Tetris game made using PyGame as renderer only, for a school project.

Tetris_Python A Tetris game made using PyGame as renderer only, for a school project. Twist in the Game Blocks can pentrate through right and left bou

Ravi Arora 2 Jan 31, 2022
Wordle-Python - A simple low-key clone of the popular game WORDLE made with python and a 2D Graphics module Pygame

Wordle-Python A simple low-key clone of the popular game WORDLE made with python

Showmick Kar 7 Feb 10, 2022
PyGame-Tutorial - Refrence for building games in pygame

PyGame-Tutorial How to build games using the python library PyGame End result Ho

St. Mark's Computer Science Club 2 Jan 9, 2022
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

null 3 Oct 25, 2022
Mandaw 2 Mar 1, 2022