Skip to content

Instantly share code, notes, and snippets.

@shinysu
shinysu / pattern01.py
Last active September 20, 2021 17:02
patterns
'''
*
* *
* * *
* * * *
* * * * *
* * * * * *
'''
@shinysu
shinysu / pattern01.py
Created September 19, 2021 04:07
Patterns
'''
*
* *
* * *
* * * *
* * * * *
* * * * * *
'''
@shinysu
shinysu / game.py
Created September 18, 2021 10:30
Space shooter - complete
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.bottom = HEIGHT
player.x = WIDTH / 2
def draw():
@shinysu
shinysu / game.py
Created September 18, 2021 10:14
Complete game with one enmy
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.bottom = HEIGHT
player.x = WIDTH / 2
def draw():
@shinysu
shinysu / game.py
Created September 18, 2021 10:02
scoring logic
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.bottom = HEIGHT
player.x = WIDTH / 2
def draw():
@shinysu
shinysu / game.py
Created September 18, 2021 09:41
Creating new enemies
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.bottom = HEIGHT
player.x = WIDTH / 2
def draw():
@shinysu
shinysu / game.py
Created September 18, 2021 09:25
space shoopter - Creating bullets
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.bottom = HEIGHT
player.x = WIDTH / 2
def draw():
@shinysu
shinysu / game.py
Created September 18, 2021 07:35
Space shooter game _final gist_multiple players
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.x = WIDTH / 2
player.y = HEIGHT - 50
@shinysu
shinysu / game.py
Created September 18, 2021 07:28
player colliding with enemy
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.x = WIDTH / 2
player.y = HEIGHT - 50
@shinysu
shinysu / game.py
Created September 18, 2021 06:46
create enemies
import pgzrun
WIDTH = 1000
HEIGHT = 700
player = Actor('playership')
player.x = WIDTH / 2
player.y = HEIGHT - 50