Bladeren bron

Just initial creation of the GameMap node.

master
Bryan Miller 6 jaren geleden
bovenliggende
commit
5ab616717c
1 gewijzigde bestanden met toevoegingen van 14 en 3 verwijderingen
  1. +14
    -3
      game/nodes.py

+ 14
- 3
game/nodes.py Bestand weergeven

@@ -1,11 +1,11 @@

from .gbe.nodes import *
from . import gbe
import pygame

class NodeInterface(NodeSurface):
class NodeInterface(gbe.nodes.NodeSurface):
def __init__(self, name="Interface", parent=None):
try:
NodeSurface.__init__(self, name, parent)
gbe.nodes.NodeSurface.__init__(self, name, parent)
except NodeError as e:
raise e

@@ -14,3 +14,14 @@ class NodeInterface(NodeSurface):
self.draw_rect((0, 0, size[0], 10), pygame.Color(255,0,0,128), 1)
self.draw_circle((int(size[0]/2), int(size[1]/2)), 16, pygame.Color(255,0,0,255), 2, pygame.Color(0,255,0,255))



class NodeGameMap(gbe.nodes.Node2D):
def __init__(self, name="GameMap", parent=None):
try:
gbe.nodes.Node2D.__init__(self, name, parent)
except NodeError as e:
raise e

def on_render(self):
pass

Laden…
Annuleren
Opslaan