- totalement remanié la structure de mon dépôt, cela commençait à être trop le foutoire ;-(

This commit is contained in:
Christian Zufferey
2018-11-18 10:36:16 +01:00
parent 3bfc2949d2
commit b2b632a6cd
61 changed files with 56 additions and 1214 deletions

22
Dojo/fleche.lua Normal file
View File

@@ -0,0 +1,22 @@
print("Hello zuzu\nVersion 0.1.1")
-- Dessine une flèche sur la console
-- hv 180706.1059
-- source:
taille_fleche= 6
for i=1, 2*taille_fleche do
-- pointe de la fleche
if i==1 then print(string.rep(" ",taille_fleche).."*")
-- tete de la fleche
elseif i==2 or i<taille_fleche then print(string.rep(" ",taille_fleche-i).."*"..string.rep(" ",2*i-1).."*")
-- bas de la tete de la fleche
elseif i==taille_fleche then print(string.rep("*",taille_fleche*2+1))
-- queue de la fleche
elseif i>taille_fleche then print(string.rep(" ",taille_fleche).."*")
end
end