TheCherno / Cherno

The Cherno engine, for Ludum Dare.
GNU General Public License v3.0
76 stars 35 forks source link

Rotation? #19

Closed ghost closed 10 years ago

ghost commented 10 years ago

Will the engine have rotation? Should it?

SebastienGllmt commented 10 years ago

If you look at our Texture.java class (https://github.com/TheCherno/Cherno/blob/master/Cherno/src/com/thecherno/cherno/engine/graphics/Texture.java) we're creating a BufferedImage and then throwing it away in favor of a pixel array. If we want things like rotation, I suggest we stop using pixel arrays you can use the createGraphics method in the BufferedImage class to gain access to all the methods here http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html which includes rotate and many other tools.

TheCherno commented 10 years ago

Rotation will be done, using pixel arrays.