So I recently upgraded to Ubuntu 11.10 64-bit (or amd64; I don't know the difference) and it was a clean install. I was previously using Ubuntu 11.04 32-bit and programming in Processing just fine.
After the upgrade, I downloaded Processing 1.5.1 but when I tried running it, I was greeted with this error:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
at processing.app.Base.<clinit>(Base.java:587)
Could not find the main class: processing.app.Base. Program will exit.
So now I'm a bit lost. I don't know if Processing supports 64-bit Linux and I've been researching this for almost a week now and I haven't been able to find any helpful results. I decided to try download Processing 2.0a1 to see if the issue was fixed in this future release but unfortunately I receive the exact same error.
So, I'm starting to try and program games and use Object Oriented Programming while doing it. Processing has been great so far with it's ease of use and me not having to worry about making a game loop, etc. but I hit a wall and I'm not sure how to do this (or how I should
properly do this to be more accurate.)
So here is the game and the (little) progress I have made:
Since I'm relatively new to game programming and OOP, I've been a bit confused (as you can tell from my code comments). What I want to be able to implement next is a click event (I know how to do that...) that will cause the player class to call shoot() which will create a new Bullet object (I'm a bit iffy on this and whether that's right) and lastly, have the bullet actually update and draw on screen.
While reviewing my code, I feel like I've messed up my draw method by putting in myPlayer methods. Should I have a broader umbrella method that updates
all classes? I'm not even sure how I could do that but that's just what my brainstorming came up with.
So... How do I go about doing this? Am I doing this right or am I way off?