Recently I have been experimenting with lwjgl because I was bored and found a way to make the main menu animation follow your mouse! It makes a pretty cool effect when in your main menu and has managed to entertain me for about 3 hours now using different texture packs :biggrin.gif:
If anyone could make a video I would be very grateful because my computer is really laggy :sad.gif:
I allow anyone to use this in their modpacks because I don't really care if this is spread around. Just please give credits and don't gain money off this :biggrin.gif: Pictures:
Showing pictures wouldn't really prove that it works but it's against the rules not to so here(Sorry if they are big)
I then found where the movement of the screen was held in GuiMainMenu.java. It was on around line 170. I just commented it out. Next I made a few variables and made them equal to said methods. Now I had to replicate the old animation and put in the new variables.
If this made no sense, which it did, here is the source code with comments do you know what things do. WARNING BIG!
Just tried it, it is really cool!
Got a few ideas, but no idea if they could even start to be implemented, but oh well.
Firstly, I see what Libraryaddict was saying, it follows the mouse exactly, so it's all sharp movements. Maybe you could try experimenting with the code that makes F8 the Smooth Cam in-game, see if that could be added somehow.
And secondly, I thought that the background moved too much. What I mean is that moving the mouse just 10cm across the screen makes the background do a 360. So, would
variable = Mouse.getX();
Hope some of these help, but awesome work so far.
EDIT: Damn ninjas =P.
That's I good idea :biggrin.gif: I just implemented it but at "variable / 0.75;" because 5 made it super slow. It also sort of makes it smoother :biggrin.gif: you can still spin a lot and I just can't fix that but I'll upload a new version because it is smoother :smile.gif:
Edit: I got dinner. New version will be up in around 45 mins