LWJGL(Lightweight java game library) game project in third person perspective (TPP) #9
Particles 😀 Yes, it is most noticeable feature in this update, I made some tests, tried few render methods, and I finally used display lists, because they were best for rendering so many points (with move). I finally learned how to use Vertex Buffer Objects, they give nice performance (I managed to render 300 000 static particles with around 48 fps). Of course I heard that using shaders will give better performance, but I don’t know how to use shaders yet. I also blended particles, they give really cool glow. After I learned VBO’s, I changed render for platforms, to get better framerate ( I noticed like 30 fps better, but unfortunately lost multitexturing on them) . Next thing I implemented were Sprites – 2D apples, always faced to camera. They are randomly created on platforms. Player can collect them, amount is counted and showed on user interface. Last thing I should mention is fixed camera view, to avoid seeing what is behind walls. Hm, I definitely need to change models and make this tower more interesting.
Here You can see how it looks:
Link for source and resources:
Btw, message me if there are any problems with downloading or if something in code is confusing, I am not professional coder, some parts may not be clear.