Added some fonts

This commit is contained in:
2023-12-23 09:55:49 +01:00
parent d811547366
commit c89e4197af
3 changed files with 3 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ class game(ShowBase):
self.__statics = Statics.statics()
#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.setText("Ich bewege mich fortlaufen!")
@@ -48,7 +49,7 @@ class game(ShowBase):
def task1(self, task):
_x = -2.8 + (task.time*0.3)
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):
print("Finished")

Binary file not shown.

Binary file not shown.