Home Game Development rendering – Make a sport with libgdx utilizing solely single shapes

rendering – Make a sport with libgdx utilizing solely single shapes

0
rendering – Make a sport with libgdx utilizing solely single shapes

[ad_1]

I wish to make a easy sport that makes use of solely easy shapes to symbolize the sport objects. like circles, rectangles, and so on. What is one of the simplest ways to do that?

What I attempted:

  1. Draw the factors in a Pixmap and wrap it in a Sprite.
  2. Use ShapeRenderer
  3. Use the FormDrawer library
  4. Use a Mesh and creating the vertices
  5. Using ImmediateModeRenderer20

I wish to add some results to those shapes, like make strains glow utilizing shaders, and so on. what’s one of the simplest ways to do one thing like this? I discovered manner #4 slightly tough. I did not fairly perceive how this works. By #5 I can’t save the factors in a Float Array and iterate the identical array to attract the factors. By #1 I do not know if I might add some results. #2 possibly has efficiency points.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here