I’m not sure how to go about rendering tiles “properly”, if I were to create each tile as an individual object and call its render method – the game’s fps would drop dramatically (to about 20fps or so)
at line 76:
https://github.com/codecub/slicktest/blob/master/tribelife/src/Slick.java
(tile rendering method)
see Grass.java:
https://github.com/codecub/slicktest/blob/master/tribelife/src/Grass.java
so yeah: “Is there a better way to render tiles individually?”
I believe the problem lies in the fact that whenever I create an object out of a grass tile, calling “different rendering methods” (different objects w/ same render method, new instance) really slows down the rendering altogether
should I just create a static render method? how will it then take into account individual tile object data (x, y etc)?
(21x15, 27*27 tile size)
and yeah, I know slick2d contains a tilemap library (but still)