diff options
| author | Billy Brown | 2017-12-02 16:31:14 +0000 |
|---|---|---|
| committer | Billy Brown | 2017-12-02 16:31:14 +0000 |
| commit | 06c5a3b9cb495544cbc3b4af9d62f4d289b00beb (patch) | |
| tree | fe7d8306998f5490072e574fbec5f54424ec99d3 /client/longpong.py | |
| parent | Extracted window placement code (diff) | |
| download | longpong-06c5a3b9cb495544cbc3b4af9d62f4d289b00beb.tar.gz longpong-06c5a3b9cb495544cbc3b4af9d62f4d289b00beb.zip | |
Fixed calling code
Diffstat (limited to 'client/longpong.py')
| -rw-r--r-- | client/longpong.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/client/longpong.py b/client/longpong.py index 7300af1..62ce4d1 100644 --- a/client/longpong.py +++ b/client/longpong.py @@ -1,16 +1,16 @@ import sdl2.ext import sys -import client -import events -import game -import render +from client import Client +from events import Events +from game import Game, Rect +from render import Renderer def main(args): sdl2.ext.init() ip = args[1] - port = args[2] + port = int(args[2]) num = args[3] num_windows = int(args[4]) @@ -18,8 +18,7 @@ def main(args): events = Events() renderer = Renderer('looongpooong', (800, 600), num_windows) game = Game(client, events, renderer) - - sdl2.ext.stop() + game.start() return 0 |
