hypatia-software-organization/hypatia-engine

View on GitHub
demo/game.py

Summary

Maintainability
A
0 mins
Test Coverage
# examples/game.py
# Lillian Lemmer <lillian.lynn.lemmer@gmail.com>
#
# This module is part of Hypatia and is released under the
# MIT license: http://opensource.org/licenses/MIT

"""This is a game demo which showcases Hypatia's features.

"""

#import collections

#import pygame
#from pygame.locals import *

from hypatia import game
from hypatia import render

__author__ = "Lillian Lemmer"
__copyright__ = "Copyright 2015, Lillian Lemmer"
__credits__ = ["Lillian Lemmer"]
__license__ = "MIT"
__maintainer__ = "Lillian Lemmer"
__email__ = "lillian.lynn.lemmer@gmail.com"
__status__ = "Development"



# should be in settings.ini?
VIEWPORT_X, VIEWPORT_Y = 60, 60


# init
viewport_size = (VIEWPORT_X, VIEWPORT_Y)
scene = game.Scene.from_tmx_resource('debug')
game = game.Game(scene=scene, viewport_size=viewport_size)
game.start_loop()

##### new
#game = Hypatia(__name__)