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
Battle of Saiyans: Goku v Vegeta is a 1 v 1, (Player vs CPU) 2D Martial arts fighting game

Battle of Saiyans: Goku v Vegeta is a 1 v 1, (Player vs CPU) 2D Martial arts fighting game inspired by the popular anime series Dragon Ball Z The game

ARZ 3 Feb 16, 2022
A little python script for finding the best word choice in a Wordle game

A little python script for finding the best word choice in a Wordle game, by assuming that at each step you want to minimise the average number of possible answers left after guessing that word (note

zeb 26 Mar 16, 2022
Termordle - a terminal based wordle clone in python

Termordle - a terminal based wordle clone in python

2 Feb 08, 2022
Hexagon game. Two players: AI and User. Implemented using Alpha-Beta pruning to find optimal solution for agent.

Hexagon game. Two players: AI and User. Implemented using Alpha-Beta pruning to find optimal solution for agent.

Anton 1 Oct 18, 2021
A networking library for multiplayer games.

Aerics A networking library for multiplayer games. Getting Started Install Python Open cmd/terminal and type: pip install Aerics Examples Creating a

Yusuf Rençber 3 Jan 04, 2023
A Street Fighter game in Pygame

What is Street Fighter? Street Fighter, commonly abbreviated as SF or スト, is a Japanese competitive fighting video game franchise developed and publis

Sameer Sahu 3 Aug 20, 2022
Minimalistic generic chess variant GUI using pyffish and PySimpleGUI, based on the PySimpleGUI Chess Demo

FairyFishGUI Minimalistic generic chess variant GUI using pyffish and PySimpleGUI, based on the PySimpleGUI Chess Demo. Supports all chess variants su

Fabian Fichter 6 Dec 20, 2022
FlappyBird game with python and pygame

FlappyBird game with python and pygame

Mohammad Dori 4 Jul 15, 2022
An implementation of John Conway's Game of Life.

This is an implementation of John Conway's Game of Life in Python, and a very basic and straightforward one at that.

Mae 3 Feb 11, 2022
A fully automated system that transforms Twitch clips into gaming compilations

A fully automated system that transforms Twitch clips into gaming compilations Authors: Christian C., Moritz M., Luca S. Related Projects: Neural Netw

215 Dec 27, 2022
The original Tetris tile-matching game as adopted by IBM PC.

🕹️ Tetris Game The original Tetris tile-matching game as adopted by IBM PC. Game developed purely on python using the Dear PyGui Framework. 📖 Instru

14 Nov 12, 2022
Brax is a differentiable physics engine that simulates environments made up of rigid bodies, joints, and actuators

Brax is a differentiable physics engine that simulates environments made up of rigid bodies, joints, and actuators. It's also a suite of learning algorithms to train agents to operate in these enviro

Google 1.5k Dec 31, 2022
Sukoku-solver Python About Sudoku is one of the most popular puzzle games of all time

Sukoku-solver Python About Sudoku is one of the most popular puzzle games of all time. As a logic puzzle, Sudoku is also an excellent brain game. Bein

Harshith VH 1 Nov 20, 2021
Mandaw 2 Mar 01, 2022
AWBW Replay Parser - a Python package to open and step through AWBW game replays.

AWBW Replay Parser This repository is home to the AWBW Replay Parser, a Python package to open and step through AWBW game replays. This project is una

Tarkan Al-Kazily 2 Feb 09, 2022
Chess - A python gui application

Chess Python version 3.10 or greater is required to play. Note This is a gui application, and as such will not run inside WSL.

Jonxslays 1 Dec 16, 2021
Simple python 3D vector3 math library wrapping some types from GLM library using pybind11.

vmath Simple python 3D vector3 math library wrapping some types from GLM library using pybind11. Description Both pure python version and C++ version

6 Aug 02, 2022
A Game of Life implementation in Python

Game of Life in Python (Golipy) Golipy is a simulator of John H. Conway's Game of Life, developed in Python based on the Pygame library. This is a toy

Alber 2 Dec 10, 2021
Guess number game with PyQt5

Guess-Number-Project Guess number game with PyQt5 you can choose a number in your mind and then computer will guess a nummber and you guide the comput

MohammadAli.HBA 1 Nov 11, 2021
To be easier to create backup files for the game StoneShard

StoneShard_save_backup_tool A tool to create backups and load them. Setup Configure the program by opening the "config.json" file. In this file you wi

Lucas V. Moog Brentano 6 Sep 15, 2022