]> icculus.org git repositories - theoddone33/hheretic.git/blob - pyhexen.py
Add menu, fix fuzz/shadow pass to use dest instead of source color.
[theoddone33/hheretic.git] / pyhexen.py
1 import sys
2 import pyhexen
3 import pygame
4 from pygame.locals import *
5
6 def input(events):
7         for event in events:
8                 if event.type == QUIT:
9                         sys.exit(0)
10
11 wad = pyhexen.wad.WadReader ()
12 wad.InitMultipleFiles (['heretic.wad'])
13
14 vid = pyhexen.vid.Video (wad)
15 vid.Init ()
16
17 vid.SetPalette (wad.CacheLumpName('PLAYPAL'))
18 vid.DrawRawScreen (wad.CacheLumpName('TITLE'))
19 vid.DrawPatch (4, 160, wad.CacheLumpName('ADVISOR'))
20
21 vid.WaitVBL ()
22
23 while True:
24         input (pygame.event.get())
25