posted 12 years ago
Hello all,
I know I post on here a lot but A: I have so many questions and B: This is best place for me to get help.
I currently have sprites working, I can move them around and stuff but I want to keep the sprite in the window, sort of like a border so the sprite cannot move outside of view.
I have already tried using a method called keepInView() and it basically got the x and y of the player entity and went kinda something like this:
But this didnt work....and I've tried playing around in the code and I've had no luck anywhere...
Here's my code for all 3 files so far:
Launcher.java :
Panel.java
Entity.java
Any help is greatly appreciated....
Also, where can I get some really good LWJGL tutorials? I'm going to try that once I have the hang of this