Hi all,
I want to create a circle, which bounces in the screen. My Problem is that the Circle is very pixelated.
This is my current config.lua :
local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { graphicsCompatibility = 1, width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "letterbox", }, }
And this is my main.lua :
-- Hide status bar display.setStatusBar(display.HiddenStatusBar); display.setDefault("background", 255, 10, 255, 1); local physics = require("physics"); \_H = display.contentHeight; \_W = display.contentWidth; topSpace = display.contentHeight / 12; physics.start(); physics.setGravity(0, 0) local topWall = display.newRect (0, topSpace, display.contentWidth, 1); local bottomWall = display.newRect (0, display.contentHeight, display.contentWidth,1); local leftWall = display.newRect (0, topSpace, 1, display.contentHeight); local rightWall = display.newRect (display.contentWidth, topSpace, 1, display.contentHeight); physics.addBody (topWall, "static", {bounce = 0.1 } ); physics.addBody (bottomWall, "static", {bounce = 0.1 } ); physics.addBody (leftWall, "static", {bounce = 0.1 } ); physics.addBody (rightWall, "static", {bounce = 0.1 } ); local r = 50 local player = display.newCircle(\_W/2, \_H/2, r); player.x = \_W/2; player.y = \_H/2; physics.addBody (player, "dynamic", { radius=r, friction=1, bounce=1 } );
I attach two screenshots.
It would be great if someone can help me 
Lukas