Advertisement
xerpi

verbs

May 29th, 2011
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. ar={ger="ando",inf="ar",par="ado",
  2. indicativo={
  3. presente={"o","as","a","amos","áis","an"},
  4. preterito_imperfecto={"aba","abas","aba","abamos","abais","aban"},
  5. }
  6. }
  7. er={}
  8. ir={}
  9.  
  10. verb = os.osk("","",100,100,0)
  11. verb = string.sub(verb,1,#verb-2)
  12.  
  13.  
  14. while true do
  15. controls.read()
  16.  
  17.  
  18. if controls.press("cross") then
  19. verb= os.osk("","",100,100,0)
  20. verb=string.sub(verb,1,#verb-2)
  21. end
  22.  
  23. screen.print(10,30,"Presente")
  24. screen.print(100,30,"Pretérito imperfecto")
  25.  
  26.  
  27. for i = 1, 6 do
  28. screen.print(10,30+i*15,verb..ar.indicativo.presente[i])
  29. screen.print(100,30+i*15,verb..ar.indicativo.preterito_imperfecto[i])
  30.  
  31. end
  32.  
  33.  
  34.  
  35. if controls.select() then a() end
  36. screen.flip()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement