From ae7e1fc4d7bc4d5ec4ad09aaf28f8f16982c85a5 Mon Sep 17 00:00:00 2001 From: Robert Scheibe Date: Fri, 3 Jul 2020 15:33:31 +0200 Subject: added more info --- AsteroidsInfinity/AsteroidsInfinity.py | 7 ++++--- README.txt | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) mode change 100644 => 100755 AsteroidsInfinity/AsteroidsInfinity.py diff --git a/AsteroidsInfinity/AsteroidsInfinity.py b/AsteroidsInfinity/AsteroidsInfinity.py old mode 100644 new mode 100755 index a702e26..085f3ab --- a/AsteroidsInfinity/AsteroidsInfinity.py +++ b/AsteroidsInfinity/AsteroidsInfinity.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 # The above line makes this executible in unix systems # Asteroids Infinity @@ -616,9 +616,10 @@ def main(): small_font = pygame.font.Font("font/Vectorb.ttf", 10) large_font = pygame.font.Font("font/Vectorb.ttf", 40) loadsounds() - screen = pygame.display.set_mode(screensize) + screen = pygame.display.set_mode(screensize,FULLSCREEN|DOUBLEBUF|HWSURFACE) screen.fill(backcolor) pygame.display.flip() + pygame.mouse.set_visible(False) fullscreen = 0 pygame.display.set_caption("Asteroids Infinity") volume = 100 @@ -1048,9 +1049,9 @@ def main(): beattype = 1 viewpoint[0] += viewpointspeed[0] / fps viewpoint[1] += viewpointspeed[1] / fps + screen.fill((backcolor)) Objects.update() ProtoObjs.update() - screen.fill((backcolor)) #Objects.draw(screen) dirtyrects = [] for sprite in ProtoObjs.sprites(): diff --git a/README.txt b/README.txt index 951a49c..741fe62 100644 --- a/README.txt +++ b/README.txt @@ -26,3 +26,18 @@ Path=/home/pi/src/joystick Terminal=false Categories=Application; """ + +add game to lxd menu, add game.desktop file in directory ~/.local/share/applications +""" +[Desktop Entry] +Type=Application +Name=Asteroids +Comment=Asteroids pygame +Icon=/usr/share/pixmaps/minecraft-pi.png +StartupNotify=true +NoDisplay=false +Exec=/home/pi/src/AsteroidsInfinity/AsteroidsInfinity.py +Path=/home/pi/src/AsteroidsInfinity +Terminal=false +Categories=Application;Game; +""" -- cgit v1.2.3