Hi. I’m new to Codea. I’ve been working with Codea 3, and I was using noSmooth() function since my game has pixel-art based graphics. But I can’t find the similar function in Codea 4. Can anyone tell me how to disable smoothing of the sprite?
My code looks like this:
– Player.lua
–Define the Player class
Player = class()
– Initialize the player
function Player:init()
self.sprite = image.read(“my asset name”)
end
– Draw the player
function Player:draw()
sprite(self.sprite, WIDTH/2, HEIGHT/2, 80, 80)
end
What should I add to disable smoothing? Oh and also, what is the replacement of spriteMode() function?
I would really appreciate your help…