Giter VIP home page Giter VIP logo

pygame-touhou's Introduction

A Touhou-like Game Demo Written in Python

1. What's this

Just a demo of stg game written in python2.7 with pygame.

2. About Pictures and Music and SE

All of these come from Touhou Project.

3. Why the codes are so bad?

Because all codes are mainly written in less than a week, in order to hand in before deadline :( .

4. About all modules

  • main.py

    Create the game window and the game loop.

  • animation.py

    Animation Manager. Store all animation and can create it onto the screen.

  • background.py

    Blit pictures onto the screen as background.

  • bullet.py

    Store all bullets and remove the bullets out of screen. Have functions for colliding judgement. All bullets are treated as either circles or rectangles.

  • cache.py

    After rotating sprites or changing the color and hue, this will store them.

  • dialogue.py

    A dialogue window. Play before the boss.

  • enemy.py

    Enemy or boss store the data and status of sprites. Manager can create enemy or boss onto the screen.

  • globe.py

    Just store global variable.

  • hud.py

    Blit life and power and score onto the screen. Head Up Display.

  • item.py

    Different item override the buffer ( buf, but mistakenly use 'buffer') function. Item manager creates and remove items, and call buffer to change the player's status.

  • level1.py

    Instantiation all enemies and bullets.

  • music.py

    Music manager. Play bgm and se.

  • orbit.py

    Store the moving orbit for enemies and bullets.

  • player.py

    Maintain all information about players. Deal with key events. Deal with fire and miss and invincible status.

  • scene_xxx.py

    Store the data structure needed and blit them.

  • tama.py

    tama means bowlder in Japanese. This file maintains the number of sub-gun according to power.

  • pic/resource.py

    Read all pictures and bgm and se. Splitting all pictures into appropiate format for animation or background or hud manager. Put bgm and se into music manager.

pygame-touhou's People

Contributors

marakato avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.