Hey, I want to have a set of unique vertexes for something, and I was planning on just using some flavour of Set in the standard library. It says that it checks object.equals(otherObject) to check if an item should be added or not. I was wondering if I'll have to extend the PVector class to make this work, or if it's a default feature already.
Hey, I remember having a lot of issues with Quaternions when I first started out, but then I foud a great C++ class after googling for a bit for one. I've decided to port it to Java so that it can be used with Processing. You can keep track of the quaternions explicitly, or if you're lazy like me, you can just use a flavor of the rotate() function that I made at the bottom there. The original class was written by Laurent Schmalen and I just ported it over to fit in with Java.
I like how simple the networking is in Processing, and I would really like to be able to use that in a regular Java project (say in a JFrame). I was wondering if I could do this, or if there was a similar library for regular Java.
Hi, I'm trying to work on a simple multyplayer game (it's super simple.. like dots moving around) and I'm having trouble on figuring out on how to send data from to server to the clients. I've got the idea behind sending data right to a server and the server storing the clients so it can receive data from them, but I don't understand how to write data to a client one at a time, and also how the clients will read it. I know that there is the server.write function, but I don't see how the clients read it. Any help on this topic would be super useful.
Hi, I've seen some wiimote libraries for processing, but they all seem to be for macs. Are there any libraries that will work on a windows machine? Alternitavely, does anyone know any other programming languages that have wiimote libraries for windows.
Okie, I've made an object to hold and update these blob things that should fly all over the screen. Now, to make managing them easier, I stored them in an array.
//The class name is "enemy"
enemy[] Boop;
void setup(){
for (int i = 0;i < 10; i ++){
Boop[i] = new Enemy();
}
}
Am I initializing something wrong? I seem to be getting a null pointer exception.
I'm trying to turn off the whole sleep mode thing, and one of the methods I've found is ti use the PowerManager object found
here. My problem is that I get an error when I try to use
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
Actually just declaring Powermanager pm; gives me the error "cannot find symbol"
I'm not really sure if I'm using the SDK impoperly or something, because I've got the accelerometer working.
Any sort of insight into this problem or perhaps a hint as to where I can go for more info would be appreciated.
I'm making a simple thing for my new android phone that uses the accelerator to move a ball around the screen. The problem is that after a few seconds, the screen goes black and I need to press my back button to turn it back on. Is there any way to disable sleep mode while my game is running?
While googling around, I found this site
here. It says something like "use this flag: WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON"
Anyone know what the heck this means or how I can use it?
I've seen soemthing like this implemented on games and other apps that I've downloaded for my phone, and I've seen soem sortof methods for doing this with java. Has nobody else come across this problem but me?
Apparently someone
else has asked a similer question on here. But it seems they didn't get an answer either.