Skip to content

Instantly share code, notes, and snippets.

@Mekire
Mekire / gist:845a827d7406a6cb96dc0245f94dcdf4
Created February 8, 2019 16:11
TGGW item and upgrades
FOOD
leaf aloe - heal <5>
(alchemy 65) potion of greater healing
silver leaf - cure disease, alleviate poison <2>
(alchemy 25) restoring potion (see POTIONS)
purple leaf - cure confusion
gold leaf - cure disease, cure poison, cure confusion
import sys
import random
import pygame as pg
CAPTION = "Strobe test"
BACKGROUND = pg.Color("darkslategray")
SCREEN_SIZE = (1280, 762)
FPS = 60
import sys
import pygame as pg
import textwrap
BACKGROUND = pg.Color("darkslategray")
SCREEN_SIZE = (500, 500)
FPS = 60
The Ground Gives Way v2.2 - Sun Jul 9 19:47:11 2017
*********** dungeon ***********
"
".####
....#........~~~......
............~~~~....&."
#@.........~~~~~~....."
The Ground Gives Way v2.2 - Mon Jul 3 21:23:45 2017
*********** dungeon ***********
"
".####
....#........~~~......
............~~~~....&."
#@.........~~~~~~....."
The Ground Gives Way v2.2 - Tue Jun 27 02:37:55 2017
*********** dungeon ***********
"
".####
....#........~~~......
............~~~~....&."
#@.........~~~~~~....."
The Ground Gives Way v2.2 - Sun Jun 25 20:47:22 2017
*********** dungeon ***********
"
".####
....#........~~~......
............~~~~....&."
#@.........~~~~~~....."
import sys
import pygame as pg
BACKGROUND = pg.Color("darkslategray")
SCREEN_SIZE = (500, 500)
FPS = 60
class App(object):
import os
import sys
import random
import pygame as pg
class _BaseSprite(pg.sprite.Sprite):
def __init__(self, color, pos, size, *groups):
super(_BaseSprite, self).__init__(*groups)
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Main.py
import os
import sys
import random
import pygame as pg