- Joined
- Nov 24, 2014
- Messages
- 3,162
- Trophies
- 2
- Age
- 29
- Location
- Bologna
- Website
- rinnegatamante.it
- XP
- 4,857
- Country
i am trying to excute this but when i draw the pixels on the ds they act strangely can anybody tell why and how can i solve itCode:bg= Screen.loadImage("/3ds/PixelDraw/Themes/bg/pixeldraw.png") my_font=Font.load("/3ds/PixelDraw/fonts/agencyfb.ttf") while true do Screen.waitVblankStart() Screen.refresh() Screen.drawImage(0, 0,bg, TOP_SCREEN) Font.print(my_font, 0,0 , "Hello World!.I am Kartik.THis my first program using lua and ipp-3ds ", Color.new(255,0,0), TOP_SCREEN) Font.print( my_font,0,15,"Press the x button to clear bottom screen",Color.new(0,0,255),TOP_SCREEN) Font.print(my_font, 0,30,"Press the x button to change the font to pretendo ",Color.new(255,0,255),TOP_SCREEN) Font.print(my_font,0,45,"Press the L+R+B+DDOWN buttons to exit ",Color.new(255,0,0),TOP_SCREEN) Font.print( my_font,0,60,"Press the DDOWN button to change the pixel color to green ",Color.new(255,0,255),TOP_SCREEN) Font.print(my_font,0,75,"Press the DUP button to change the pixel color to blue ",Color.new(0,0,255),TOP_SCREEN) Font.print(my_font, 0,90,"Press the DLEFT button to change the pixel color to yellow ",Color.new(0,255,255),TOP_SCREEN) Font.print(my_font,0,105,"Press the DRIGHT button to change the pixel color to pink ",Color.new(0,0,010),TOP_SCREEN) Screen.flip() if (Controls.check(Controls.read(),KEY_START)) then System.exit() end pad = Controls.read() if (Controls.check(pad,KEY_TOUCH)) then Screen.waitVblankStart() Screen.refresh() x,y = Controls.readTouch() Screen.drawPixel(x, y, Color.new(255,0,0), BOTTOM_SCREEN) Screen.flip() end if (Controls.check(Controls.read(),KEY_A)) then Font.unload(my_font) end if (Controls.check(Controls.read(),KEY_X)) then Screen.clear(BOTTOM_SCREEN) end end
What do you mean for act strangely?