Home

Awesome

<div align="center"> <img src="./docs/logo.png" width="600"/> </div> <br />

docs PyPI - Python Version PyPI license PyPI - Downloads PyPI - Downloads issue resolution open issues

Documents: http://cpgames.readthedocs.io/

Games

Create interesting games in 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).

Support List

IDEnglish NameChinese NameCore CodeIntroduction
Game1bunnybadger兔子和獾(射击游戏)clickclick
Game2voicecontrolpikachu仿八分音符的声控小游戏clickclick
Game3puzzlepieces拼图小游戏clickclick
Game4ski滑雪游戏clickclick
Game5tankwar经典坦克大战小游戏clickclick
Game6flappybird飞扬的小鸟小游戏clickclick
Game7trexrush仿谷歌浏览器小恐龙游戏clickclick
Game8towerdefense塔防游戏clickclick
Game9catchcoins接金币小游戏clickclick
Game10aircraftwar飞机大战clickclick
Game11tetris俄罗斯方块clickclick
Game12sokoban推箱子clickclick
Game13alieninvasion外星人入侵小游戏clickclick
Game14pacman吃豆人小游戏clickclick
Game15gemgem消消乐clickclick
Game16twentyfourpoint24点小游戏clickclick
Game17pingpong乒乓球小游戏clickclick
Game18breakoutclone打砖块小游戏clickclick
Game19bomberman炸弹人小游戏clickclick
Game20maze走迷宫小游戏clickclick
Game21whacamole打地鼠clickclick
Game22gobang五子棋小游戏clickclick
Game23twozerofoureight2048小游戏clickclick
Game24greedysnake贪吃蛇小游戏clickclick
Game25minesweeper扫雷小游戏clickclick
Game26angrybirds愤怒的小鸟clickclick
Game27flipcardbymemory记忆翻牌小游戏clickclick
Game28magictower魔塔小游戏clickclick
Game29bloodfootball热血足球小游戏clickclick

Install

Whl install

wget https://github.com/CharlesPikachu/Games/releases/download/v0.1.2/cpgames-0.1.2-py3-none-any.whl
pip install cpgames-0.1.2-py3-none-any.whl

Pip install

run "pip install cpgames"

Source code install

(1) Offline
Step1: git clone https://github.com/CharlesPikachu/Games.git
Step2: cd Games -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/Games.git@master"

Quick Start

import random
from cpgames import cpgames

game_client = cpgames.CPGames()
all_supports = game_client.getallsupported()
game_client.execute(random.choice(list(all_supports.values())))

Screenshot

img

Projects in Charles_pikachu

Citation

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

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

More

WeChat Official Accounts

Charles_pikachu
img