~codemouse92/diamondquest/master

« back to all changes in this revision

Viewing changes to src/diamondquest/__main__.py

  • Committer: Ben Lovy
  • Date: 2020-06-02 22:50:50 UTC
  • Revision ID: git-v1:afda1a1d2bbd3b58d38f239f682cc755e5385b46
MVC Structure

Summary:
Co-authored-by: Harley Davis <hdavis3@zagmail.gonzaga.edu>
Co-authored-by: Wilfrantz DEDE <contact@dede.dev>
Co-authored-by: Moshe Uminer <mosheduminer@gmail.com>

Create settings.json

In-progress

Test Plan: N/A

Reviewers: wdede, jcmcdonald

Reviewed By: wdede, jcmcdonald

Subscribers: jcmcdonald, bdlovy, wdede

Tags: #diamondquest_project, #programming_dept

Maniphest Tasks: T1332

Revert Plan: Revert to 14dc0916a585

Differential Revision: https://phabricator.mousepawmedia.net/D291

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python3
 
2
import pygame
 
3
from pygame.locals import *
2
4
from diamondquest.hello import hello
 
5
from diamondquest.view import PyGameView
3
6
 
4
7
def main():
5
 
    hello()
6
 
    
 
8
    pygame.init()
 
9
 
 
10
    model = GameModel()
 
11
    view = PyGameView()
 
12
    running = True
 
13
    while running:
 
14
        # ControllerTick()
 
15
        # ViewTick()
 
16
        for event in ygame.event.get():
 
17
            if event.type == QUIT:
 
18
                running = False
 
19
                # Handle Events
 
20
        view.draw(model)
7
21
 
8
22
if __name__ == "__main__":
9
23
    main()