Drawtext ne permet pas l'utilisation des chr(10) ou chr(13)
Il te faut je pense "drawtexter" tes 2 lignes.
Tu te fais une Boite et tu écris ton texte dedans
Code : Tout sélectionner
If OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateImage(0, 200, 200) And StartDrawing(ImageOutput(0))
DrawingMode(#PB_2DDrawing_Transparent)
Box(0, 0, 200, 200, RGB(255, 255, 255))
DrawText(10, 10, "vie : 100" +Chr(10), RGB(Random(255), Random(255), Random(255)))
DrawText(10, 30, "Mana : 100", RGB(Random(255), Random(255), Random(255)))
StopDrawing()
ImageGadget(0, 0, 0, 200, 200, ImageID(0))
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf