Games: Create interesting games by pure python.

Overview

license issue resolution open issues

Documents: https://github.com/CharlesPikachu/Games/tree/master/docs

Games

Create interesting games by pure python.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Statement

Most of the game materals(including music, fonts and pictures) in this repository are collected from the web, copyright belongs to the original author.
This repository is created just for learning python(Commercial prohibition).

Contents

ID Name of The Game Code Introduction
Game1 Bunnies and Badgers click click
Game2 Pikachu Go Go Go click click
Game3 Puzzle pieces click click
Game4 Skier click click
Game5 Tank War click click
Game6 FlappyBird click click
Game7 T-Rex Rush click click
Game8 Tower Defense click click
Game9 Catch coins click click
Game10 Aircraft war click click
Game11 Tetris click click
Game12 Sokoban click click
Game13 Alien Invasion click click
Game14 Pacman click click
Game15 GemGem click click
Game16 24 point click click
Game17 Pingpong click click
Game18 Breakout clone click click
Game19 Bomber Man click click
Game20 Maze click click
Game21 Whac-A-Mole click click
Game22 Gobang click click
Game23 2048 click click
Game24 Greedy Snake click click
Game25 Mine Sweeper click click
Game26 Angry Birds click click
Game27 Flip Card by Memory click click

Citation

If you use this project in your research, please cite this project.

@misc{games2020,
    author = {Zhenchao Jin},
    title = {Games: Create interesting games by pure python},
    year = {2020},
    publisher = {GitHub},
    journal = {GitHub repository},
    howpublished = {\url{https://github.com/CharlesPikachu/Games}},
}

Projects in Charles_pikachu

  • DecryptLogin: APIs for loginning some websites by using requests.
  • Musicdl: A lightweight music downloader written by pure python.
  • Videodl: A lightweight video downloader written by pure python.
  • Pytools: Some useful tools written by pure python.
  • PikachuWeChat: Play WeChat with itchat-uos.

More

WeChat Official Accounts

Charles_pikachu
img

Comments
  • hello, I want to contribute this game.

    hello, I want to contribute this game.

    Hello? I am first time in git-hub, so if I rude tell me please... Anyway... I interested in game, and python. I want to contribute this project. I can translate annotate to English,Korean. And We can exchange Idea... And I can add more contents to Readme.md. And I can also use Python.(I am studying now...very diligently)... so can I contribute this project? If you tell me what kind of help do you need, I will help you.

    opened by minkyoyeah 4
  • SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

    SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

    When I try to open the.py file this error occurs SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details Thanks!

    opened by SDRStuff 2
  • hello~ how about adding an English annotation files??

    hello~ how about adding an English annotation files??

    if english files are added, more people more learn~? I'm thinking about making an English file. Is it okay? and game17 bgm very nice... and interesting i will use in my boring class...

    opened by minkyoyeah 2
  • Game 2 pyaudio error

    Game 2 pyaudio error

    I got the following error on python3.6.8 running game 2: Traceback (most recent call last): File "Game2.py", line 75, in cocos.director.director.init(caption="Pikachu Go Go Go") File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\director.py", line 356, in init cocos.audio.initialize(audio_settings) File "C:\Users\mik\AppData\Local\Programs\Python\Python36\lib\site-packages\cocos\audio_init_.py", line 58, in initialize music.set_control('dummy') I asked around and someone said the audio needs to be initialized and gave the docs: http://python.cocos2d.org/doc/api/cocos.director.html#cocos.director.Director.init . I'm a beginner to cocos so I don't know how to fix this. Help please.

    opened by mikelty 1
  • Importing Levels

    Importing Levels

    Hi.. Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "c:/Users/arvin/Desktop/Pacman/game.py", line 181, in main(initialize()) File "c:/Users/arvin/Desktop/Pacman/game.py", line 164, in main
    pygame.mixer.music.load(BGMPATH) pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address.

    opened by Arvind232 1
  • mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    一直报错找不到mixer这个module,我用的是Mac,需要额外安装mixer吗 Hello from the pygame community. https://www.pygame.org/contribute.html /Users/yangzho2/Downloads/Games-master/Game12/Game12.py:283: RuntimeWarning: use mixer: No module named 'pygame.mixer' (ModuleNotFoundError: No module named 'pygame.mixer') pygame.mixer.init() Traceback (most recent call last): File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 301, in main() File "/Users/yangzho2/Downloads/Games-master/Game12/Game12.py", line 283, in main pygame.mixer.init() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygame/init.py", line 100, in getattr raise NotImplementedError(missing_msg) NotImplementedError: mixer module not available (ModuleNotFoundError: No module named 'pygame.mixer')

    opened by zy660622 1
  • 怎样改变射击速度?

    怎样改变射击速度?

    (original) if event.type == pygame.MOUSEBUTTONDOWN: my_bullet = myaircraft.shot() if my_bullet: my_bullets_group.add(my_bullet) (change) #if event.type == pygame.MOUSEBUTTONDOWN: my_bullet = myaircraft.shot() if my_bullet: my_bullets_group.add(my_bullet)

    我从鼠标的点击中删除了子弹,从而改变了我的目标。 我想加快我的拍摄速度,但是我该怎么办呢?

    I deleted the shot from the click of the mouse and changed it so that I could shoot while I was still. I want to speed up my shooting, but what code should I change?

    opened by minkyoyeah 1
  • a bug with game8

    a bug with game8

    After selling a tower,'money' changed from type int into type float. And the program runs much more slowly on my old laptop,due to the CPU. (Another plane game runs normally. )

    卖塔以后钱从整型变成浮点型了 程序在我这个老笔记本上跑的很慢,因为CPU的关系. (另一个自制的打飞机运行得就还可以)

    opened by ietar 1
  • Music credits

    Music credits

    Didn’t find the music’s credits anywhere… I had to google the lyrics ! lol Thanks much for your open-source repository, it’s very fun and educational to look around !

    opened by d0ob 0
  • 导包的相对路径一直报错,怎么解决呢

    导包的相对路径一直报错,怎么解决呢

    Traceback (most recent call last): File "D:/PythonWorkspace/games/Games/cpgames/core/games/bunnybadger/bunnybadger.py", line 16, in from ...utils import QuitGame ValueError: attempted relative import beyond top-level package

    opened by itkuanggong 1
  • [BUG]

    [BUG]

    Environment (使用环境)

    • Installation method (安装方式):
    • The version of cpgames (版本号):
    • Operating system (操作系统):
    • Python version (Python版本):

    Question description (问题描述)

    Screenshot (报错截图) image

    Advice (修复建议)

    opened by tangzirui 1
Owner
student
Python module providing simple game networking

nethelper Python module providing simple game networking This module was originally created to facilitate a class on creating multiplayer games in Pyg

Cort 3 Jan 11, 2022
A fun discord bot for music, mini games, admin controls, economy, ai chatbot and levelling system

A fun discord bot for music, mini games, admin controls, economy, ai chatbot and levelling system. This bot was specially made for Dspark discord server.

2 Aug 30, 2022
FlappyBird game with python and pygame

FlappyBird game with python and pygame

Mohammad Dori 4 Jul 15, 2022
Python Interactive Mini Games

Python Interactive Mini Games Mini projects from Coursera's An Introduction to I

Ashish Choudhary 1 Jan 16, 2022
A use of the python MCPI to enhance the multiplayer and singleplayer gameplay.

Morpheus 2.0 A use of the python MCPI to enhance the multiplayer and singleplayer gameplay. To Use: You will need to install the keyboard, pysimplegui

11 Oct 11, 2022
Wordle is a word game reminiscent of mastermind

Wordle is a word game reminiscent of mastermind. The player tries to guess a five letter word within six attempts. After each attempt, hints are given. Green tiles show that the letter is in the righ

Sidharth Anand 1 Feb 09, 2022
AI that plays Flappy Bird Game using the python module NEAT.

Flappy Bird AI [NEAT] AI that plays Flappy Bird Game using the python module NEAT. Instructions Install Python Modules: pip3 install -r requirements.t

Abhisht 5 Jan 26, 2022
Quiz Game: answering questions naturally with a friendly UI to enjoy the game

About Quiz Game : The Game is about answering questions naturally with a friendl

4 Jan 19, 2022
A full featured game of falling pieces using python's pygame library.

A full featured game of falling shapes using python's pygame library. Key Features • How To Play • Download • Contributing • License Key Features Sing

Giovani Rodriguez 7 Dec 14, 2022
Launcherpi - Minecraft Launcher for Raspberry Pi computers

launcherpi Minecraft Launcher for Raspberry Pi computers. ASLO BIG THANKS TO KLO

8 Sep 24, 2022
Running Chess Night results tabulation

Running Chess Night results tabulation

Mitch LeBlanc 2 Nov 20, 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
Simple darts game using Tkinter and sqlite3. Also associated with Python.

Ever wanted to play a simple and fun game before, and it even keeps a database of your score? Well here it is!! Introducing; Darts! A simple and fun g

an aspirin 2 Dec 19, 2021
Open source Board Games Like Tic Tac Toe, Connect 4, Ludo, Snakes and Ladder etc...

Board-Games What to do... Add Board games like Tic Tac Toe, Connect 4, Ludo, Snakes and Ladder etc... How to do... Fork the repo Clone the repo git cl

Bit By Bit 1 Oct 10, 2022
This is a simple Tic Tac Toe game built with Python.

This is a simple Tic Tac Toe game built with Python.

⚝αикιт кυмαя⚝ 6 Sep 01, 2022
Yo-Snake - A blend of yolov5 and deepsnake

Yo-Snake A blend of yolov5 and deepsnake 结合了yolov5和Deepsnake模型 Deepsnake 模型代码比较复

7 Apr 01, 2022
Minecraft Script to Tellraw Datapack Generator

Minecraft Script to Tellraw Datapack Geneator (STDG) can generate a chain of tellraw command in datapack from script.

1 Jan 28, 2022
Snake Game in Python

Snake game is one of the most popular arcade games of all time. In this game, the main objective of the player is to catch the maximum number of fruits without hitting the wall or itself.

Pavan Ananth Sharma 4 Jul 05, 2022
This project is an exciting fun game for beginners to build up

This project is an exciting fun game for beginners to build up. The program generates a random number from 1 to 10, or 1 to 100 any range that is specified and the user must guess the number after a

PyLaboratory 0 Feb 07, 2022
Flappy bird using Pygames

flappy-bird Esse é um jogo que eu fiz utilizando a biblioteca de jogos do Python

Leandro Henrique 2 Jan 05, 2022