Skip to content

Instantly share code, notes, and snippets.

View spheppner's full-sized avatar
🎯
Focusing

Simon Heppner spheppner

🎯
Focusing
  • Austria
  • 10:35 (UTC +02:00)
View GitHub Profile
@spheppner
spheppner / vector_template.py
Created September 27, 2018 15:21 — forked from horstjens/vector_template.py
pygame vector template game
# -*- coding: utf-8 -*-
"""003_static_blit_pretty_template.py"""
import pygame
import random
def make_text(msg="pygame is cool", fontcolor=(255, 0, 255), fontsize=42, font=None):
"""returns pygame surface with text. You still need to blit the surface."""
myfont = pygame.font.SysFont(font, fontsize)
@spheppner
spheppner / textrouge003.py
Created March 31, 2017 14:56 — forked from horstjens/textrouge003.py
textrouge003 with randomize hunger, jumping and far more dangerous statues. Still without functions
import random
# legend: #=rock .=floor f=food $=gold
DUNGEON = '''
###############################################
#.....fff.#..............#f#.$#.....#.......#$#
#....S....#..............###....###.#.....#.#.#
#....S.S..f.....$...f.........##$......f..#...#
###############################################
''' # add more lines to the dungeon!
PLAYER = '@'