Image saving and creation help.
Posted: Sun Nov 18, 2012 1:37 pm
I have a small game I have been working on this weekend, so far the game detects collisions to walls and I can fire a bullet. However I am in need of a way to create an image for the walls. I have a table that holds all of the coordinates of where the walls will be in collision with the player and drawing on those coordinates takes far to much time to do every time I draw to the screen. Now I dont have to save the image but is there anyway to compile all of those points into one image like a sprite and refresh it like that. If there are any Ideas or help it would be great to hear them. Thank you in advance
I got it to run a bit smoother using a sprite batch but I would still like it to run faster by saving that image and cant seem to get it to save with the image encoder in love2d is there any example code someone could offer on how to use the encodeImage and saving that to a png or bmp thanks again in advance.
I got it to run a bit smoother using a sprite batch but I would still like it to run faster by saving that image and cant seem to get it to save with the image encoder in love2d is there any example code someone could offer on how to use the encodeImage and saving that to a png or bmp thanks again in advance.