@ericqweinstein/

Space Invaders

Python

A little Space Invaders clone, written in Python.

fork
loading
Files
  • main.py
  • fleet.py
  • game.py
  • invader.py
  • laser.py
  • player.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8969969507651205","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"JycnCkEgbGl0dGxlIFNwYWNlIEludmFkZXJzIGNsb25lLCB3cml0dGVuIGluIFB5dGhvbi4KJycnCgpfX2F1dGhvcl9fID0gJ0VyaWMgV2VpbnN0ZWluJwoKaW1wb3J0IGN1cnNlcwoKZnJvbSBjdXJzZXMgaW1wb3J0IHdyYXBwZXIKZnJvbSBnYW1lIGltcG9ydCBHYW1lCgoKZGVmIG1haW4oc3Rkc2NyKToKICAgIGN1cnNlcy5jdXJzX3NldChGYWxzZSkKCiAgICBzdGRzY3Iubm9kZWxheShUcnVlKQogICAgc3Rkc2NyLmNsZWFyKCkKCiAgICBHYW1lKHN0ZHNjcikucnVuKCkKCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAgd3JhcHBlcihtYWluKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'''
A little Space Invaders clone, written in Python.
'''

__author__ = 'Eric Weinstein'

import curses

from curses import wrapper
from game import Game


def main(stdscr):
    curses.curs_set(False)

    stdscr.nodelay(True)
    stdscr.clear()

    Game(stdscr).run()


if __name__ == '__main__':
    wrapper(main)