Added some fonts
This commit is contained in:
5
Game.py
5
Game.py
@@ -36,7 +36,8 @@ class game(ShowBase):
|
|||||||
self.__statics = Statics.statics()
|
self.__statics = Statics.statics()
|
||||||
#self.__ctrl = Controls.controls(self)
|
#self.__ctrl = Controls.controls(self)
|
||||||
|
|
||||||
font1 = self.loader.load_font("/usr/share/fonts/TTF/Inconsolata-UltraExpandedExtraBold.ttf")
|
#font1 = self.loader.load_font("/usr/share/fonts/TTF/Inconsolata-UltraExpandedExtraBold.ttf")
|
||||||
|
font1 = self.loader.load_font("data/fonts/inconsolata.bold.ttf")
|
||||||
self.__onscreentext1 = OnscreenText(self.__statics._menupoints[0], font=font1, pos= (0.1,0))
|
self.__onscreentext1 = OnscreenText(self.__statics._menupoints[0], font=font1, pos= (0.1,0))
|
||||||
self.__onscreentext1.setText("Ich bewege mich fortlaufen!")
|
self.__onscreentext1.setText("Ich bewege mich fortlaufen!")
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ class game(ShowBase):
|
|||||||
def task1(self, task):
|
def task1(self, task):
|
||||||
_x = -2.8 + (task.time*0.3)
|
_x = -2.8 + (task.time*0.3)
|
||||||
print("Task läuft seit: " + str(_x))
|
print("Task läuft seit: " + str(_x))
|
||||||
self.__onscreentext1.setPos(x=_x, y=0)
|
#self.__onscreentext1.setPos(x=_x, y=0)
|
||||||
|
|
||||||
if (_x >= 2.8000):
|
if (_x >= 2.8000):
|
||||||
print("Finished")
|
print("Finished")
|
||||||
|
|||||||
BIN
data/fonts/inconsolata.bold.ttf
Normal file
BIN
data/fonts/inconsolata.bold.ttf
Normal file
Binary file not shown.
BIN
data/fonts/inconsolata.regular.ttf
Normal file
BIN
data/fonts/inconsolata.regular.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user