Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 11th, 2010 | Syntax: None | Size: 1.00 KB | Hits: 74 | Expires: Never
Copy text to clipboard
  1. load object "d:\seu objeto.x",1
  2.  
  3. position object 1,1100,0,1100
  4. scale object 1,10,10,10
  5. yrotate object 1,-90
  6. fix object pivot 1
  7.  
  8. Rem Carrega a textura da matrix.
  9. Load image "Indique aqui uma imagem de sua preferencia",1
  10. Rem Cria o Cubo e o posiciona.
  11.  
  12. Rem Cria a matrix e ajeita as suas propriedades
  13. Make matrix 1,1000,1000,25,25
  14. Randomize matrix 1,7
  15. Prepare matrix texture 1,1,1,1
  16. Update matrix 1
  17. Sync on
  18. Rem DO=Laco de Repetiçao
  19. DO
  20.  
  21. if upkey()=1
  22. move object 1,1
  23. loop object 1,45,210
  24. else
  25. set object frame 1,0
  26. endif
  27.  
  28. Rem Crio algumas variaveis para servir de posiçao do cubo
  29. X=object position x(1)
  30. Z=Object position z(1)
  31. Y=Get ground height(1,X,Z)+30
  32. Rem posiciona o nas Variaveis
  33. Position object 1 ,X,Y,Z
  34. Rem Movimentaçao
  35.  
  36. If rightkey()=1 then yrotate object 1,wrapvalue(Object angle y(1)+3)
  37. If leftkey()=1 then yrotate object 1,wrapvalue(Object angle y(1)-3)
  38. Rem camera isometrica
  39. Position camera X+25,y+15,z+25
  40. Point camera X,Y,Z
  41. Rem Atualiza a tela
  42. Sync
  43. Rem Loop=Fim do DO
  44. Loop