exploring+visual+programming

上传人:j7****6 文档编号:62378790 上传时间:2018-12-20 格式:PPT 页数:27 大小:326.50KB
返回 下载 相关 举报
exploring+visual+programming_第1页
第1页 / 共27页
exploring+visual+programming_第2页
第2页 / 共27页
exploring+visual+programming_第3页
第3页 / 共27页
exploring+visual+programming_第4页
第4页 / 共27页
exploring+visual+programming_第5页
第5页 / 共27页
点击查看更多>>
资源描述

《exploring+visual+programming》由会员分享,可在线阅读,更多相关《exploring+visual+programming(27页珍藏版)》请在金锄头文库上搜索。

1、Exploring Visual Programming,Preliminaries,The purpose of this document is to introduce you to SimBuilder by helping you create a small project. SimBuilder is designed for building simulations, such as a model of the water cycle. No programming experience is required. In this experiment we want to e

2、valuate the usefulness of this tool to a science teacher to simulate environments or lab experiments as curricula aids in their classrooms with SimBuilder. The last page of this document contains an interaction guide.,http:/ 天津塔吊租赁 河北塔吊租赁 西安塔吊租赁 塔吊租赁 http:/ the Water Cycle Model,Double click to open

3、 the Squeak environment. Select Water Cycle This will open your first example of a simulation. Now, Press to start this model. Watch the Simulation. What actions are taking place? Press after a few minutes of observing the model. Squeak SimBuilder Tutorial Virginia Tech Visual Languages Group AgentS

4、heets Tutorial Virginia Tech Visual Languages Group-Draft,Squeak,Exploring The Sun,Lets investigate the players To investigate the Sun Click or Click the Sun and its Halo will appear. Select the purple eyedropper Change color tool to and change the Sun from yellow to bright orange. To investigate th

5、e rules or that govern the suns behavior, Select the blue eyeball to Open a Viewer of me. This will show you the set of graphical rules for this player. What does the Sun do? You program by simply selecting a rule, then dragging and dropping the out of the scripting window and placing it somewhere i

6、n the world other than the green playground. (Take a few minutes to explore scripts in the viewer) Squeak SimBuilder Tutorial Virginia Tech Visual Languages Group,Changing The Behavior of Clouds,Examine some of the more complicated behaviors by selecting the Cloud and reviewing its behavior. Take a

7、moment to review the interaction guide to gain a better understanding of the interactions between agents behaviors Make Clouds more active. Currently the behavior of the cloud is to move forward 5 spaces. Find the script that causes this behavior. Lets make the clouds move a lot more. Click on the d

8、esired script Increase the value to 10 for moving forward. Press to see how your changes affect the simulation. Press and try another change. Make the clouds move vertically. Currently the behavior of the cloud is to move horizontally across the sky. Lets try to change the behavior of the cloud so t

9、hat it will move vertically. Click or Click your cloud and its Halo will appear. Select Rotate and move your cloud just a tiny bit for its direction arrow to appear. In order to change the direction that the player moves Click on the green arrow and change its direction so that it points to the righ

10、t. Press to see how the simulation has changed. Squeak SimBuilder Tutorial Virginia Tech Visual Languages Group,Creating a Bird,A simulation in Agentsheets is simply a set of agents that work together to create visual effects. A key aspect of creating new simulations is to build new agents. We will

11、begin with the small task of adding a new agent to the Water Cycle project. Drawing a bird Select . Use a brush and the color palette to draw something that looks like a bird. Refer to the interaction guide for Gallery Tools if you need to refresh your memory. This is just for fun. Do not worry if y

12、ou are not a good artist. Once finished Press . Your bird has been added to the playground. Its just as easy as that ! Squeak SimBuilder Tutorial Virginia Tech Visual Languages Group,Giving the Bird Behaviors,In this playground, we want the bird to be able to fly through the sky. Double click on you

13、r bird and its viewer will appear. The viewer is a window to select behaviors for your agent. Lets add the behavior that your agent will move in one direction. Select and Drag it out of the viewer and place it anywhere, preferably not in the playground. Press to see how your bird acts within the pla

14、yground. Your bird should fly across the playground. If it doesnt you may need to check out which direction your bird is flying. Click or Click your bird and its Halo will appear. Select Rotate and move your bird just a tiny bit for its direction arrow to appear. Click on the green arrow and change

15、its direction so that it points to the right. Try putting a bird on the ground. Does it move? What would you need to make it move? Now you have all the basic tools you need to create your own Simulations! Squeak SimBuilder Tutorial Virginia Tech Visual Languages Group,Creating a Volcano Simulation,A

16、 sample environment that you could simulate is a volcano erupting. A volcano involves the interaction of several complex factors. Pressure is built up over a period of time. Once the pressure reaches a certain level the pressure is released as sparks, smoke, lava, and heat.The lava causes the earth and the mountain to become larger

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号