Although PGE has new file commands, the old ones are still in there and, according to me, just as good. So you can still use that. screen:print cannot be used in PGE. You need to load a font and use that.
font = pge.font.load("verdana.ttf", 12, PGE_RAM) --location of ttf, pixel size, mem location(either PGE_RAM or PGE_VRAM)
white = pge.gfx.createcolor(255, 255, 155) --r,g,b
--Main Loop
while pge.running() do
pge.controls.update()
pge.gfx.startdrawing()
pge.gfx.clearscreen()
font:activate() --Activate font for drawing
font:print(40, 25, white, "Hello World!") --print the font at x, y, color, text
pge.gfx.enddrawing()
pge.gfx.swapbuffers()
end
Make sure that your font is activate() first as shown above only between pge.gfx.startdrawing() and pge.gfx.enddrawing(). Also your font must have a specified color which is the third argument in print()