![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Problems with a background image in LUA PGE within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Well, I'm doing some tests with PGE Lua but I put a background image and look what hapenns: Where there ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Well, I'm doing some tests with PGE Lua but I put a background image and look what hapenns:
![]() Where there should be text these wierd things appear This is the code I've used: Code:
white = pge.gfx.createcolor(255, 255, 255)
yellow = pge.gfx.createcolor(255, 255, 0)
bg = pge.texture.load("bg.png",PGE_RAM,true)
verdana16 = pge.font.load("verdana.ttf", 16, PGE_RAM)
if not bg then
error("Failed to load texture.")
end
if not verdana16 then
error("Error cargando la fuente.")
end
while pge.running() do
pge.controls.update()
pge.gfx.clearscreen()
pge.gfx.startdrawing()
verdana16:activate()
bg:activate()
bg:draw(0,0)
verdana16:printcenter(100,yellow,"Hola")
pge.gfx.enddrawing()
pge.gfx.swapbuffers()
end
|
|
|
|
|
|
|
#2 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
Code:
white = pge.gfx.createcolor(255, 255, 255)
yellow = pge.gfx.createcolor(255, 255, 0)
bg = pge.texture.load("bg.png",PGE_RAM,true)
verdana16 = pge.font.load("verdana.ttf", 16, PGE_RAM)
if not bg then
error("Failed to load texture.")
end
if not verdana16 then
error("Error cargando la fuente.")
end
while pge.running() do
pge.controls.update()
pge.gfx.clearscreen()
pge.gfx.startdrawing()
bg:activate()
bg:draw(0,0)
verdana16:activate()
verdana16:printcenter(100,yellow,"Hola")
pge.gfx.enddrawing()
pge.gfx.swapbuffers()
end
.
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
![]() |
| Tags |
| background , image , lua , pge , problems |
| Thread Tools | |
|
|