Hi, I have a Pi mainly running RaspMC atm. I was wondering, is there any way to get the Pi to somehow receive a stream of output from VLC (or other) from another PC and display it ? (So somehow you would just select an option on the Pi and it would display whatever VLC is playing on the other machin...
Couldn't resist while I was at it ;)....If you wanted to then make the bullets kill the baddies... def bulletHits( bulletRect, baddies): for b in baddies: if bulletRect.colliderect(b['rect']): baddies.remove(b) and in main loop... if pygame.key.get_pressed()[K_SPACE]: bulletAddCounter += 1 newBullet...
Just testing it, you may want to change it also so that the bullet comes out of the top, rather than center...so... newBullet = {'rect': bulletImage.get_rect(), 'speed': 2, 'surface': bulletImage, } newBullet['rect'].midbottom = playerRect.midtop I think I changed the bullet image file from the play...
I think its the 'scale' thats putting it off. There needs to be a handle on what the object actual is compared to how its displayed (and then what points are being used for stuff like collision detection etc). If you scale, where its its left/right/center etc ? Losing track a bit of the changes, but...
Hiya, Not a Python man, so someone will probably correct me. I've had a play with your code...I think you are just referencing the same bullet each time in creation, so you won't get multiple bullets (I think!). So if you try something like... if pygame.key.get_pressed()[K_SPACE]: bulletAddCounter +...
Hi all, I'm messing about with some Python stuff (pi3d), and ssh'ing (no idea if this makes any difference, maybe be the same from a direct terminal). After I've run my code, and returned to my normal terminal session, output doesn't appear scrolled correct on the screen..carriage returns seem to mo...
Hi, I'm trying to get the pi3d starting example going, https://github.com/tipam/pi3d/wiki/Pi3D-Getting-Started When I run that code I get an error... Pi3D module - version 0.07 Copyright (c) Tim Skillman, 2012 Updates available from www.github.com/tipam/pi3d Screen size 1680 1050 Traceback (most rec...
Just wondering, how feasible would it be to use Pi3D ES 2.0 on a Linux desktop to develop (don't have a separate screen for the Pi, so it hinders me a bit). I'm guessing its mainly the 3D initialisation of display and egl types etc or something which are unique to the Pi, or is there a lot more ? (h...
Should this run under windows with python installed or am I being silly? If egg files are recommended which software is recommended for the modelling and which exporter (versions) Do I need to do UV maps etc... Cheers This won't run under Windows. I think egg files are create in Panda3D. There are ...
This might be a stupid question, but is there any way of practicing and learning to use Pi3D in a Windows machine? The reason I ask is that I spent most of my time in a Windows machine, so I would like to be able to write the python scripts in the Windows Desktop and then copying the python files t...
I'm learning OpenGLES as well, so feel free to give me a shout sometime. May not know it so well, but sometimes its good to hear from people who are probably making the same mistakes!
I know nothing of Java, but I think the Rasp based images are compiled differently (due to hard vs soft float ?), so my guess would be that .so files downloaded may not work, and may need to be compiled for Raspbian. I may be wrong, but in the absence of a differently reply, it may be worth looking ...
Yep, indeed, thanks for all the work. I'm keeping an eye out for 2.0 as well, I'd been fiddling with 2.0 a bit, as it feels like its the way to go for learning, so will definitely be playing with this is as well
Hi, not a Python chap, but try this, to see if it helps break it down and makes sense... #!/usr/bin/env python class Direction: right = 1 left = 2 up = 3 down = 4 class Snake: def __init__(self): self.direction = Direction.right mysnake = Snake() print mysnake.direction
make sure you have the expat headers... sudo apt-get install libexpat1-dev If it still doesn't work, assuming you have the above, you can wget http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.36.tar.gz tar zxvf XML-Parser-2.36.tar.gz cd XML-Parser-2.36 perl Makefile.PL make make in...
I had problems with cpan, too many to persist with, some relating to memory and it locking up. I ended up using cpanminus which seemed to work a lot better anyway than normal for me...I'm not at a Pi atm, but this is what I did on my lappy to get it going, and I think commands will be similar... sud...
How were you thinking of dealing with things like array types for OpenGLES out of interest ? Speedwise, with Python I think I've found one of the slowdowns is any type of array type conversion. POGL seemed to get around this, but my eyes glaze over when I look at some of that code .