import sys
import pygame
+import pygame.locals as pgl
+from naja.constants import SCREEN
+from naja.engine import Engine
+from naja.sound import sound
from naja.options import parse_args
+from naja.scenes.menu import MenuScene
def main():
- '''Launch the nagslang'''
+ '''Launch the naja'''
parse_args(sys.argv)
pygame.display.init()
pygame.font.init()
- raise NotImplementedError("Sorry, we haven't written a game yet.")
+ pygame.display.set_mode(SCREEN, pgl.SWSURFACE)
+ pygame.display.set_caption('Naja')
+ sound.init()
+
+ screen = pygame.display.get_surface()
+ scene = MenuScene(None)
+ engine = Engine(screen, scene, None)
+ engine.run()
+
+
+if __name__ == '__main__':
+ main()