If you play now, let me know if you find any bugs/problems, so I can fix it before our demo time!
11/18/2015
]]>I tried for more than half an hour, I simply could not get the widget to display, when I tried to edit in the Text mode, the iframe code is just gona when I click Update. I gave up, below is a link:
http://xiaotang923.itch.io/pacman?secret=ZTDkRcy9SbIBK9YNs6w1JhMP6kg
Arrow keys to move
]]>
close shot on the specular (the white part is the reflected light):
Overall shot:
]]>
Code:
to square x y z w =
push
a = 0
for n through w
if n%4 == 0
if n < w/2
a = a + 2
else
a = a – 2
end
end
moveto x, y+a+w*5/7, z+n
moveto x, y, z+n
moveto x+w, y, z+n
moveto x+w, y+a+w*5/7, z+n
moveto x, y+a+w*5/7, z+n
end
pop
push
for n through w
moveto x+n, y+a+w*5/7, z
moveto x+n, y, z
end
pop
moveto x, y, z+w
for n through w
moveto x+n, y+w*5/7, z+w
moveto x+n, y, z+w
end
end
w = 500
push
square 0, 0, 0, w
pop
depth = w/2 – 15
for n through 30
moveto 0, 0, depth+n
moveto 0, w + w/4, depth + n
end
depth = w/2
height = 90
moveto 0, w + height, depth
moveto 0, w + height, depth – 60
for n through 20
moveto 0, w + height – n, depth + 60
moveto 0, w + height – n, depth – 60
end
I was able to finish the magnet part fairly quickly, but then I waited until the Tuesday class where I can ask all sorts of questions. After Chris explained thoroughly about the things that puzzled me since the beginning of the semester, I felt like this assignment is not hard at all conceptually.
It only took me one night to finish all of the rest, and didn’t even need to debug, just like sweet dreams :D
Here are some screenshots:
(PS: my girlfriend picked this color scheme, so don’t judge me! XD)
]]>Then I just followed the instruction, and finished the program. At this point, it outputs very weird images, I didn’t know why, later with Chris’s help, I realized I needed
to cast the numbers written to file into ints. Then everything worked beautifully. My pox will have a different color scheme for every run, but somehow after adding a
lot of bumps, especially when stacked together, there are color mutations which made it looks very interesting.
4 bumps:
100 bumps:
1000 bumps:
]]>
Roy
]]>