1、 外 文 翻 译 原文 1: Flying Buddha Memory Game 译文 1: 飞行佛存储游戏 原文 2: Blender Basic Network setup - Boil it down to the basics 译文 2: Blender基本网络设置 ,将其 概括为基础 Flying Buddha Memory Game Flying Buddha is a game designed by Freid Lachnowicz (artwork, models, textures) and me (Carsten Wartmann, Python and game log
2、ic). The goal of the game is to find pairs of gongs, like in the good old Memory game. Besides that, it also includes some action elements, like the dragonfly which will become angry (note the indicator on the top-right) if you jump too high. Also it requires some good timing for the controls of the
3、 Buddha. The Buddhas goal, reaching Zen is completed when he has found all pairs. For competitions the time needed to solve will be displayed on screen. Flying Buddha game controls Controls Description CURSOR KEYS Movement, you can steer in the air and slow down your fall SKEY Select a gong Load the
4、 game Games/FlyingBuddha.blend from the DVD and have fun playing it! Accessing game objects Accessing individual objects from Blenders game engine is not trivial. In the Flying Buddha game, I needed a possibility of randomly shuffling the gongs at game start. Generally speaking, it is a good thing t
5、o have as much game logic as possible contained on the object that needs that logic. This helps when re-using this object in the same or even different (Blender) scenes. So my first idea was to let the gongs choose a new position themselves. But this soon turned out to be too complicated, because of
6、 synchronizing problems and complex logic in the gongs. I then decided to use an object to control the shuffling process, and have the information about the other objects including their positions is gathered by a Near Sensor. This approach has many advantages. For example we can filter out whole gr
7、oups of objects with the Property: field, we are not bound to a fixed number of objects etc. LogicBricks Load the file Tutorials/FlyingBuddha/FlyingBuddha_simple.blend from the DVD. It contains a simpler version of the Flying Buddha game, which does not contain all the intro scenes but is fully func
8、tional (press CTRL-LEFT for a full screen view). Use this file to explore the Game Logic. The difference in the full game and this tutorial file are build-in debugging and testing logic. Most notably is that you can test the re-shuffling of the gongs every time by pressing SPACE. The logic for this
9、is on the Flamethrower object (on layer 4). Have a look at Figure fb-lbs the interesting parts in this context are the Sensors mixitbaby and near. Both are connected to a Python Controller, which is then connected to a Message Actuator. Also note the shuffle Property, this controls the number of swa
10、pped pairs. The other Bricks are not related to the shuffling, they are needed for other game parts. Figure fb-lbs. LogicBricks for shuffling the gongs As you can see, the Near Sensor only looks for objects carrying a Property with the name num. Also make sure that the Dist: setting is high enough for the Near Sensor to cover all objects. The Python Controller will be called every frame by the Property Sensor as long the Property num is in the range from 1 to 1000. Shuffle Python script Open a Text Window (SHIFT-F11) and choose the script Shuffle.py with the Menu Button.