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
MCTS (among other things) for 2048

2048 Created by Chad Palmer for CPSC 474, Fall 2021 Overview: This is an application which can play 2048 and simulate games of 2048 with a variety of

Chad Palmer 1 Dec 16, 2021
Warden - Warden guessing game 1

Warden first python project and first posted project sorry for errors warden gue

hasher 3 Jan 09, 2022
Graphical impimetaion of Conway's Game of Life in Python using pyglet

Conway's Game of Life in Python Konstantin Opora Conway's Game of Life: graphical implementation in python using pyglet. developed in Python 3.10.0 Re

Konstantin Opora 1 Nov 30, 2021
Game Boy emulator written in Python

If you have any questions, or just want to chat, join us on Discord. It is highly recommended to read the report to get a light introduction to Game B

Mads Ynddal 3.7k Dec 30, 2022
Disables the chat in League of Legends for Windows.

Disables the chat in League of Legends for Windows. If you simply can't stop yourself from typing LeagueStop will play KEKW.mp3 each time you try. The sound will stack & becomes horribly annoying.

1 Nov 24, 2021
A fun, casual and strategic game made using Python!

Steve's Pixels A fun, casual and strategic game made using Python! Prerequisites See requirements.txt Demo video demo.mp4 Usage python -m steves_pixel

Jaivardhan Bhola 9 Sep 17, 2022
PyChess - a chess client for Linux/Windows

PyChess - a free chess client for Linux/Windows The mission of PyChess is to create a free, pleasant, PyGObject based chess game for the Linux desktop

559 Dec 28, 2022
Allows you to email people wordle spoilers. Very beta, not as many features

wordlespoiler Allows you to email people wordle spoilers. Very beta, not as many features How to Use 1.) Make a new gmail account. Go to settings (Man

0 Jan 04, 2023
A python3 project for generating WorldEdit shematics for the MineClone2 game for Minetest from images.

MineClone2 MapArt This is a python3 project you can use with the MineClone2 game for Minetest. This project take an image and output a WorldEdit shema

3 Jan 06, 2023
Client-Server design (guess the closest number to the average score game)

Multiplayer game (enter the number closest to the average) Design Client-Server design The client's side is responsible for sending numbers from the g

Adam Piszczek 0 Jun 29, 2022
Console 2D GameEngine {C2DGE} [0.1.0]

Console 2D GameEngine {C2DGE} [0.1.0] By Grosse pastèque#6705 The Project's Goal : This projects was just a challenge so if you have bad reviews, it's

Big watermelon 1 Nov 06, 2021
16-bit PvP platform minigame made for a final high-school project

16-bit PvP platform minigame made for a final high-school project

Flavien 1 Feb 10, 2022
Text-Adventure-Game [Open Source] A group project by the Python TASK Force

Text-Adventure-Game [Open Source] A group project by the Python TASK Force

Mircea Dumitrescu 2 Sep 17, 2021
2D Minecraft Clone made with Python & Pygame & OpenGL

2D Minecraft Clone This is a 2D clone of the well-known game Minecraft made in Python using Pygame and ModernGL I started this mostly as a self-improv

Kadir Aksoy 2 Sep 25, 2022
An ongoing process to make a physics engine using python.

Simple_Physics_Engine An ongoing process to make a physics engine using python. I am using this goal as a way to learn python in and out. I am trying

Jon Sherrick 1 Jan 18, 2022
Super Mario Kart November 1991 Prototype Repair by MrL314

Super Mario Kart November 1991 Prototype Repair by MrL314

MrL314 51 Dec 26, 2022
This is a good project to train your logic game with python language

JO-KEN-PÔ!!! | Description | basic. I make this game only to train. This is a good project to train your logic game with python language. This game is

Elianderson Silva 1 Jan 24, 2022
Python codes for the classic Hang Man game

Python codes for the classic Hang Man game. The user will be assigned a random word to guess, one character at a time. If the user gets everything right, the program says Well Done!, but if the user

p.katekomol 1 Jan 25, 2022
Input-based tic tac toe game made in only python.

Tic Tac Toe Tic Tac Toe is a game in which two players seek in alternate turns to complete a row, a column, or a diagonal with either three O's or thr

Ayza 5 Jun 26, 2022
An exploration of a fantasy world, to autobattle your way to ruling the demesne.

Not Quite Paradise 2 (no relation to NQP, I just like the name enough to want to keep it.) Badges! Current position: Quality of last commit: Who dunni

9 Mar 12, 2022