I dont know how much of what was in the Lua version I want to keep the same. For arguments sake here is the function that rendered the splash screens for the dc emu grand prix.
function logoState()
if startlogotimer == 1 then --a do once do start the timer
mahTimer:start()
startlogotimer = 0
end
logoTimer = mahTimer:time()
if logoTimer < 1000 then
screen:blit(124, 6, logo1)
end
if logoTimer > 2000 and logoTimer < 4000 then
screen:blit(124, 105, logo2)
screen:print(154, 180, "http://www.hwhq.com/", red)
end
if logoTimer > 6000 then
mahTimer:reset(0)
mahTimer:stop()
currentState = 2
end
end
hope this portion of code doesnt look horrible.
edit: im starting to get an idea of how it works. i just realized that one little section of lua that is ever so simple is going to be a nightmare. im trying to learn how sprites and timers work to get this started. i guess the good part is once i get this little and very pointless part done I will know enough about sprites to continue on.