--- /dev/null
+from Setup import *
+from Player import Player
+
+class Game:
+
+ def __init__(self):
+ self.player = Player(center)
+
+ def update(self, delta):
+ self.player.update(delta)
+
+ def draw(self, surf):
+ self.player.draw(surf)
--- /dev/null
+from Setup import *
+
+class Player:
+ def __init__(self, pos):
+ self.position = pg.Vector2(pos)
+ self.velocity = pg.Vector2(1,0)
+
+ def update(self, delta):
+ self.position += self.velocity
+
+ # def move_and_collide(pos, vel):
+
+ def draw(self, surf):
+ pg.draw.circle(surf, (255,0,0), self.position, 10)
+
\ No newline at end of file
--- /dev/null
+import pygame as pg
+
+pg.init()
+
+SCREEN_WIDTH, SCREEN_HEIGHT = 1080, 640
+dimensions = (SCREEN_WIDTH, SCREEN_HEIGHT)
+center = pg.Vector2(dimensions) / 2
+
+pg.display.set_caption("Jam")
+# icon = pg.transform.scale(pg.image.load("logo.ico"), (32, 32))
+# pg.display.set_icon(icon)
+
+clock = pg.time.Clock()
+fps = 60
+
+screen = pg.display.set_mode(dimensions, pg.SCALED)
\ No newline at end of file
--- /dev/null
+Interdimension Pirate
+- spaceship is a pirate ship (art)
+-
+
+List of Dimensions:
+- sky
+- cave
+- boss dimension
+
+Gameplay:
+- dialogue between npcs
+- combat, parkour, building, mining
+
+story
+- stars fall out of the sky and other people collected them including the player
+- player tries to collect them from each dimension to get to the boss dimension where they came from
+
+to find the big treasure
+but u have to fight the end dimensional being
+
-import pygame as pg
+from Setup import *
+from Game import Game
-
-pg.init()
-
-SCREEN_WIDTH, SCREEN_HEIGHT = 1080, 640
-dimensions = (SCREEN_WIDTH, SCREEN_HEIGHT)
-center = pg.Vector2(dimensions) / 2
-
-pg.display.set_caption("Jam")
-# icon = pg.transform.scale(pg.image.load("logo.ico"), (32, 32))
-# pg.display.set_icon(icon)
-
-clock = pg.time.Clock()
-fps = 60
-
-screen = pg.display.set_mode(dimensions, pg.SCALED)
+scene = Game()
delta = 1000//fps
is_running = True
if pg.event.peek(pg.QUIT, pump=True):
is_running = False
+ scene.update(delta)
+ scene.draw(screen)
+
pg.display.update()
delta = clock.tick(fps)