×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Chat] Cafofo dos Lunáticos
« ‹ 2 / 189 › »
[Chat] Cafofo dos Lunáticos
Tini
« Sénateur »
1403214960000
    • Tini#0095
    • Profil
    • Derniers messages
    • Tribu
#21
  0
Oi pessoas
Montesquieu
« Censeur »
1403215260000
    • Montesquieu#1567
    • Profil
    • Derniers messages
#22
  0
Boonchakalak a dit :
E ai! o/

aqui ta mt bem
obg por perguntar
+Thogabriel
« Citoyen »
1403215980000
    • +Thogabriel#0000
    • Profil
    • Derniers messages
    • Tribu
#23
  0
Cria topico decente pelo menos ne
Favelada
« Consul »
1403216340000
    • Favelada#6672
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Oi pessoal
Stheblindd
« Citoyen »
1403216580000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#25
  0
Limparam a seção!

Graças a Deus.
Mumich
« Citoyen »
1403216640000
    • Mumich#6666
    • Profil
    • Derniers messages
    • Tribu
#26
  0
se alguem quiser tentar arrumar meu script do game of life, ta ai, tentem entender por si mesmos:

n=20
m=20
cell={}
for i=1,n do
cell={}
for j=1,m do
cell[j]=0
end
end

cell[2][6]=1
cell[3][6]=1
cell[2][7]=1
cell[3][7]=1
cell[12][6]=1
cell[12][7]=1


function cellEvolve()
count={}
cell2={}
for i=1,n do
cell2={}
count={}
for j=1,m do
cell2[j]=cell[j]
count[j]=0
end
end
for k=1,n do
for l=1,m do
if k~=1 then
if l~=1 then
if cell2[k-1][l-1]==0 then
count[k][l]=count[k][l]+1
end
end
if cell2[k-1][l]==1 then
count[k][l]=count[k][l]+1
end
if l~=1 then
if cell2[k-1][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
end
if l~=1 then
if cell2[k][l-1]==1 then
count[k][l]=count[k][l]+1
end
end
if l~=n then
if cell2[k][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
if k~=n then
if l~=1 then
if cell2[k+1][l-1]==1 then
count[k][l]=count[k][l]+1
end
end
if cell2[k+1][l]==1 then
count[k][l]=count[k][l]+1
end
if l~=n then
if cell2[k+1][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
end
end
end
for a=1,n do
for b=1,m do
if cell2[a]==1 then
if count[a]<2 then
cell2[a]=0
elseif count[a]==2 or count[a]==3 then
cell2[a]=1
elseif count[a]>3 then
cell2[a]=0
end
elseif cell2[a]==0 then
if count[a]==3 then
cell2[a]=1
else
cell2[a]=0
end
end
if cell2[a]==1 then
tfm.exec.displayParticle(13,300+a*10,100+b*10,0,0,0,0)
end
cell[a]=cell2[a]
end
end
end

function eventLoop()
cellEvolve()
end
Ronan
« Citoyen »
1403216700000
    • Ronan#3434
    • Profil
    • Derniers messages
#27
  0
Tuliomumic a dit :
se alguem quiser tentar arrumar meu script do game of life, ta ai, tentem entender por si mesmos:

n=20
m=20
cell={}
for i=1,n do
cell={}
for j=1,m do
cell[j]=0
end
end

cell[2][6]=1
cell[3][6]=1
cell[2][7]=1
cell[3][7]=1
cell[12][6]=1
cell[12][7]=1


function cellEvolve()
count={}
cell2={}
for i=1,n do
cell2={}
count={}
for j=1,m do
cell2[j]=cell[j]
count[j]=0
end
end
for k=1,n do
for l=1,m do
if k~=1 then
if l~=1 then
if cell2[k-1][l-1]==0 then
count[k][l]=count[k][l]+1
end
end
if cell2[k-1][l]==1 then
count[k][l]=count[k][l]+1
end
if l~=1 then
if cell2[k-1][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
end
if l~=1 then
if cell2[k][l-1]==1 then
count[k][l]=count[k][l]+1
end
end
if l~=n then
if cell2[k][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
if k~=n then
if l~=1 then
if cell2[k+1][l-1]==1 then
count[k][l]=count[k][l]+1
end
end
if cell2[k+1][l]==1 then
count[k][l]=count[k][l]+1
end
if l~=n then
if cell2[k+1][l+1]==1 then
count[k][l]=count[k][l]+1
end
end
end
end
end
for a=1,n do
for b=1,m do
if cell2[a]==1 then
if count[a]&lt;2 then
cell2[a]=0
elseif count[a]==2 or count[a]==3 then
cell2[a]=1
elseif count[a]&gt;3 then
cell2[a]=0
end
elseif cell2[a]==0 then
if count[a]==3 then
cell2[a]=1
else
cell2[a]=0
end
end
if cell2[a]==1 then
tfm.exec.displayParticle(13,300+a*10,100+b*10,0,0,0,0)
end
cell[a]=cell2[a]
end
end
end

function eventLoop()
cellEvolve()
end

só entendi a parte do displayParticle, lol
Favelada
« Consul »
1403216820000
    • Favelada#6672
    • Profil
    • Derniers messages
    • Tribu
#28
  1
Gente a seção esta limpinha

http://gshow.globo.com/platb/files/2472/2012/10/CarminhaGrito.gif
Alriy
« Citoyen »
1403217600000
    • Alriy#0095
    • Profil
    • Derniers messages
    • Tribu
#29
  0
Tuliomumic a dit :
Sugiro mudar o nome do chat, n faz sentido o termo Mini-Lua, Lua é a linguagem de script, não é um cargo.

Algo como

[Chat] Cafofo dos Lunáticos, [Chat] Cafofo dos Scripters, ou algo do tipo ficaria melhor

A ideia do nome foi do Ruffles, mas falarei com ele sobre isso.
Obs: Curti os dois nomes :3
Omitotowch
« Citoyen »
1403217900000
    • Omitotowch#0095
    • Profil
    • Derniers messages
    • Tribu
#30
  0
Tópico lindo, cafofo novo em!
+Thogabriel
« Citoyen »
1403218500000
    • +Thogabriel#0000
    • Profil
    • Derniers messages
    • Tribu
#31
  0
Paulmarques a dit :
Gente a seção esta limpinha

http://gshow.globo.com/platb/files/2472/2012/10/CarminhaGrito.gif

Eu ri
Omitotowch a dit :
Tópico lindo, cafofo novo em!

Lindo
Brenower
« Censeur »
1403218560000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Cafofo novo nada
isso é para tampar as tretas do antigo
+Thogabriel
« Citoyen »
1403219340000
    • +Thogabriel#0000
    • Profil
    • Derniers messages
    • Tribu
#33
  0
As tretas de quando o Breno era wannabe
Brenower
« Censeur »
1403219460000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#34
  0
+thogabriel a dit :
As tretas de quando o Breno era wannabe

E tu tbm
+Thogabriel
« Citoyen »
1403219580000
    • +Thogabriel#0000
    • Profil
    • Derniers messages
    • Tribu
#35
  0
Brenower a dit :
+thogabriel a dit :
As tretas de quando o Breno era wannabe

E tu tbm

Quando eu era wannabe levei perma e nao tinha lua

Vlw flw
Brenower
« Censeur »
1403219760000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#36
  0
+thogabriel a dit :
Brenower a dit :
+thogabriel a dit :
As tretas de quando o Breno era wannabe

E tu tbm

Quando eu era wannabe levei perma e nao tinha lua

Vlw flw

merecia o perma mesmo
galoto marvado
Stheblindd
« Citoyen »
1403219940000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#37
  0
Brenower a dit :
merecia o perma mesmo
galoto marvado

vou pegar a pipoca q essa treta vai ser das boa
Kombizinha
« Citoyen »
1403221140000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#38
  0
[reservado]

E.E To Na Pag 2 Huehuehu
Favelada
« Consul »
1403221560000
    • Favelada#6672
    • Profil
    • Derniers messages
    • Tribu
#39
  0
+thogabriel a dit :
Paulmarques a dit :
Gente a seção esta limpinha

http://gshow.globo.com/platb/files/2472/2012/10/CarminhaGrito.gif

Eu ri

Kkkkk
Otaviopecato
1403221620000
    • Otaviopecato#0000
    • Profil
    • Derniers messages
#40
[Modéré par Alriy]
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Chat] Cafofo dos Lunáticos
« ‹ 2 / 189 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27