Submit Your Own Code

PSP Lua CodeBase : Custom Print Function

Description:
 This example shows you how to make a custom function to replace screen:print()

-- EVILMANA.COM PSP LUA CODEBASE
-- www.evilmana.com/tutorials/codebase
-- Custom Print Function
-- SUBMITTED BY: Charlie

white = Color.new(255,255,255)

function text(x,y,inputString)
return screen:print(x,y,inputString,white)
end

while true do
screen:clear()

text(10,10,"hello")

screen.flip()
end

Back to CodeBase
 

Please welcome daryy, our newest member.

Who's Online: 6 Guests, 0 Users

Total Members: 556
Total Posts: 13059
Total Topics: 1480
Total Categories: 8
Total Boards: 35

Recent Posts:

Re: PGELua Help - need term for a special rotation fix (mathematical issue) by yaustar
Re: Lua Loader? by Buddy4point0
Re: Lua Loader? by osgeld
Re: Lua Loader? by acer5050
Re: Lua Loader? by bumuckl
Re: Lua Loader? by acer5050
Re: Lua Loader? by bumuckl
Lua Loader? by acer5050


Copyright © 2006-2007 www.EvilMana.com All rights reserved.
EvilMana Logo by emcp and Charlie