Advertisement
xerpi

verbs

May 29th, 2011
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 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. preterito_perfecto_simple={"é","aste","ó","amos","asteis","aron"},
  6. futuro={"aré","arás","ará","aremos","aréis","arán"},
  7. condicional={"aría","arís","aría","aríamos","aríais","arían"},
  8. preterito_perfecto_compuesto={"he","has","ha","hemos","habéis","han"}
  9. }
  10. }
  11. er={}
  12. ir={}
  13.  
  14. verb = os.osk("","",100,100,0)
  15. verb = string.sub(verb,1,#verb-2)
  16.  
  17.  
  18. while true do
  19. controls.read()
  20.  
  21.  
  22. if controls.press("cross") then
  23. verb= os.osk("","",100,100,0)
  24. verb=string.sub(verb,1,#verb-2)
  25. end
  26.  
  27. screen.print(10,10,"Presente")
  28. screen.print(100,10,"Pretérito imperfecto")
  29. screen.print(270,10,"Pretérito perfecto simple")
  30. screen.print(10,130,"Futuro")
  31. screen.print(100,130,"Condicional")
  32. screen.print(240,130,"Pretérito perfecto compuesto")
  33.  
  34. for i = 1, 6 do
  35. screen.print(10,10+i*15,verb..ar.indicativo.presente[i])
  36. screen.print(100,10+i*15,verb..ar.indicativo.preterito_imperfecto[i])
  37. screen.print(300,10+i*15,verb..ar.indicativo.preterito_perfecto_simple[i])
  38. screen.print(10,130+i*15,verb..ar.indicativo.futuro[i])
  39. screen.print(115,130+i*15,verb..ar.indicativo.condicional[i])
  40. screen.print(300,130+i*15,ar.indicativo.preterito_perfecto_compuesto[i].." "..verb..ar.par)
  41. end
  42.  
  43.  
  44.  
  45. if controls.select() then a() end
  46. screen.flip()
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement