Thats because it doesn't know where the batandball.py file is. You need to 'cd' to where you have saved it, and try again.anakinmorgan wrote:I am running wheezy raspian i think its called its the new one from the website raspberry pi.
I have tried to run from the LXTerminnal
I put in as you said python batandball.py but it comes up with python: cant open file 'batandball.py' error 2 no such file or directory
You have done all right! What you see this is the expected display output when running the example "Bat and Ball", magpi 1- may 2012 page 28 & 29, game from console on a raspberry pi with display output directed to the Linux "framebuffer".GMT64 wrote:...
Bat and Ball game ... I just get a black screen with the bat and ball on it, and I can move the bat around and hit the ball. However, I do not have a 'box' showing the name of the game ... the playing field appears to be a black area on a black background - so I have to guess where it will bounce off the wall. '...
I'm running this from the command-line (having typed-in the program using nano). In fact, I had to use 'sudo' to make it work at all, otherwise I get errors.
What am I doing wrong? Why do I not see a 'box' with a title?
Code: Select all
# main game loop while done == 0: screen.fill((70,70,0)) # fill screen with dark yellow # event handling for event in pygame.event.get(): # if we click something ... if event.type == pygame.QUIT: # if we click close ... done=1 # this will cause the loop to finish. if event.type == KEYDOWN: # if we type something ... if event.key == K_ESCAPE: # if we pressed the escape key ... done = 1# this will also cause the loop to finish.
You need to copy all of the files with the extension '.desktop' from /home/pi/Desktop to your user's Desktop directory. For example (logged in as your new user; you can omit the first line if already in your home directory):GMT64 wrote:When I start my Pi and enter the user/password as pi/raspberry, I start LXDE and get 8 or 9 icons/programs on the screen along with the large raspberry logo. I can click on the icons and run the programs. All well and good.
However, I don't want to be using the pi/raspberry user ... I have set-up another user for me to use (just my initials, nothing complicated). When I start LXDE I find that I do not have any icons on the screen ... how do I get the icons there if I don't know what they are called, what the 'standard set of programs/icons' are, or which programs the icons should be associated with.
Does anyone else get this? Is it something that I have done wrong? I have not seen any instructions telling me how to set-up LXDE, I just assumed that with my own username I'd get the same stuff as username 'pi'.
Thanks for your advice.
Code: Select all
cd ~ sudo cp /home/pi/Desktop/*.desktop ~/Desktop