Talk:Student Projects
From GeoMod
Programming... Gosh!!! I never knew things could be so difficult for me... I've been spending all my time since the last 4 days to learn this stuff but I've still not mastered. I won't say I've not learnt anything but still I've to get a hang of the whole thing.
I've tried my best to make those 20 tiles... I think I've done it but don't have much confidence in myself as of now. Please let me know my mistakes. I would gladly accept any criticisms etc
My Tiles Program:
from visual import *
lx=4 # Total Length of tiles on X-Axis
ly=4 # Total Length of tiles on y-Axis
nx=5 # Number of Tiles on X-Axis
ny=4 # Number of Tiles on X-Axis
dx=lx/nx # Length of one tile
dy=ly/ny # Width of one tile
tiles = []
for a in range (0,nx): # for creating tiles on x-axis
for i in range (0,ny): # for creating tiles on y-axis
tiles.append(box (length = 0.8, height = 1, width=1))
tiles[-1].x=(i-3) * dx
tiles[-1].y=(ny-a)*dy
tiles[-1].z=(-3)
print i
for i in tiles:
i.color=color.red
Lensy'd website was too good... esp the 'Notes' which he put up today. It cleared out lots of concepts. I believe it was indeed a good guide for a person like me who is entirely new to the Whole World of Programing.
Thanks Lensyl...

