Typographical Conventions
This is a long tutorial
containing a lot of information. To make it easier to follow,some simple
conventions are used:

createps 發表在 痞客邦 留言(0) 人氣()

Introduction

Unity is a powerful tool for game development, suitable for many game genres, from firstPperson shooters to puzzle games
簡介
Unity 是一個強大的工具,遊戲 發展,適合於許多 遊戲類型,從 firstPperson 射手益智遊戲

createps 發表在 痞客邦 留言(0) 人氣()

Basic Functions

The following are basic global functions that are available in Lua. For security reasons, certain functions in the standard Lua distribution are not available. For more information see Changes to Lua.
以下是基本的全球可用的函數在Lua出於安全原因,某些功能在標準 Lua的分佈情況不詳。欲了解更多信息,請參閱變更到Lua

createps 發表在 痞客邦 留言(0) 人氣()

Getting Started with Corona
Ansca Mobile's Corona will fundamentally change how you approach iOS and Android software development, whether you're an engineer, a web developer, or a designer.
The Corona SDK allows you to rapidly create native applications and high-performance games for the iPhone, iPad, and Android. You get full access to device-specific features such as the camera, keyboard, GPS, accelerometer, video playback, audio recording, multitouch input and embedded web views. Your application will automatically leverage the performance benefits of being a native executable, especially hardware-accelerated OpenGL graphics and sound.

createps 發表在 痞客邦 留言(0) 人氣()

Quick Start Guide Part2
Modifying Your First Program
Before moving on to more advanced game development examples, let's make some simple changes to your program.
As you may have guessed, the second line of this program sets the color of the text that you created in the first line:

createps 發表在 痞客邦 留言(0) 人氣()

Quick Start Guide
 
You only need two things to get started with Corona:

A copy of Corona
Any text editor

createps 發表在 痞客邦 留言(0) 人氣()

《秘境探險 2》分享動畫製程中的幾個獨特要點
 
就如同大家所知,Naughty Dog 的《秘境探險 2》Uncharted 2 昨日於Game Developers Choice Awards(得獎名單)又一舉拿下了五項大獎!在這人人稱羡的遊戲背後,Naughty Dog 那獨具開創性的「開發模式」也著實令多數人嘖嘖稱奇阿!

createps 發表在 痞客邦 留言(0) 人氣()

關於遊戲設計風格的整理說明
好一陣子前在網路上看到了一種分類:
分為角色、故事、風格、玩法
四種角度的切入點
當時看完這個分類與定義後
雖然解開了不少疑問
但總覺得還存在著很多尷尬的可能
那一次的體認,得知了自己較傾向於「玩法」設計上的風格
直到看完猴子靈藥《你的遊戲設計風格是哪種類型?》 這篇新文章後 
才真正獲得一個更具體微觀的解答
此文中把遊戲設計風格分成六大類:

createps 發表在 痞客邦 留言(0) 人氣()

皮克斯創始人之一、動畫界傳奇的 John Lasseter 在接受一家德國媒體《南方德國報》採訪時暢談了他所謂堅持的“七大創意原則”,他表示這七大原則是他實現其動畫電影創作目標的根源所在。
原則一:永遠不要只抱著一個點子 

createps 發表在 痞客邦 留言(0) 人氣()

Apple Corona in 5 minutes Part 2
Animation and Sound
Let's animate the text and add some sound every time the user taps the button. Start with the “HelloWorld2” project and add the following lines at the end of main.lua so that the text will move vertically down by 100 pixels:

createps 發表在 痞客邦 留言(0) 人氣()

apg_image001.JPG
Corona in 5 minutes  Part 1

Let's start with a quick introduction to the Corona
SDK. We'll focus just on the essentials without getting stuck in the details.
We're not trying to be complete or precise. Rather, we want to get you as
quickly as possible to the point where you can start creating cool, useful, or
engaging apps.

createps 發表在 痞客邦 留言(0) 人氣()

方法二

4.4.4  對List<T>進行排序
List<T>作為列表,排序也是它的一個基本功能。List<T>可以通過Sort()對列表中的元素進行從小到大排序,同時Sort()還接收自定義比較器,這樣開發人員可以根據需要指定希望的比較方式。Sort()方法的3個常用版本的定義如下:
public void Sort();  
public void Sort(IComparer<T> comparer);  
public void Sort(int index,int count,IComparer<T> comparer); 
其中,第1個版本是通過默認的比較器對列表中所有元素進行從小到大排序,如果類型T沒有默認比較器,也沒有實現接口IComparer<T>,即T不能進行比較,那麼會產生異常。參數comparer是一個實現了IComparer<T>接口的類型對象,Sort()通過comparer接口的Compare()對元素進行比較。第3個版本是部分元素進行比較,index表示起始索引(0開始計數),count表示要排序的元素個數。
IComparer<T>接口只有一個成員Compare(T x, T y),通常情況下,如果x小於y返回負數,x等於y返回0,x大於y返回整數。如示例代碼4-10中的MyIntComparer類,該類實現接口IComparer<int>,成員Compare(int x, int y)根據x和y的絕對值x和y進行比較。
示例代碼4-10演示Sort()方法和IComparer<T>的使用,泛型方法PrintList<T>()用來打印列表中的元素,該函數在後面的例子中會繼續使用。在UseSort()方法中,ary是最原始的數據,首先,用默認的比較器對元素按照從小到大排序(負數小於整數)。然後,用自定義整數比較器MyIntComparer對象mic對列表中的元素按照絕對值排序。最後,用mic對列表中第2個開始的3個元素按照絕對值排序。
示例代碼4-10
//自定義整數比較器,按照整數的絕對值進行比較  
class MyIntComparer:IComparer<int> 
{  
    //重寫int比較器,|x|>|y|返回正數,|x|=|y|返回0,|x|<|y|返回負數  
    public int Compare(int x, int y)  
    {  
        int x1 = Math.Abs(x);                   //x的絕對值x1  
        int y1 = Math.Abs(y);                   //y的絕對值y1  
        return x1 - y1;  
    }  
}  
//在同一行上打印列表中的元素  
static void PrintList<T>(string hint, List<T> lst)  
{  
    System.Console.Write(hint + ":");  
    foreach (T val in lst)                     
//遍歷並打印列表中的元素  
    {  
        System.Console.Write("{0} ", val);  
    }  
    System.Console.WriteLine();  
}  
static void UseSort()  
{  
    int[] ary = {9, 8, -11, 10, -3, 2};         //準備
數據,添加到列表中  
    MyIntComparer mic = new MyIntComparer();  
    List<int> intLst = new List<int>( );  
    intLst.AddRange(ary);                       
//將數據添加到List<int>中  
    PrintList<int>("排序前", intLst);          //打印數據  
    intLst.Sort( );                             //使
用默認比較器進行排序  
    PrintList<int>("默認排序後", intLst);    //打印數據  
    intLst.Clear( );                        //重新準備數據  
    intLst.AddRange(ary);  
    intLst.Sort(mic);                   //用自定義
的比較器進行排序,即按絕對值排序  
    PrintList<int>("絕對值排序後", intLst);   //打印數據  
    intLst.Clear( );                            //重新準備數據  
    intLst.AddRange(ary);  
    intLst.Sort(2, 3, mic);             //對第2個開始的3
個元素按絕對值排序  
    PrintList<int>("部分排序後", intLst);        //打印數據  

示例代碼4-10的輸出如下,默認排序之後元素按照從小到大排序,負數小於0和整數。按絕對排序之後,-3大於2,可見MyIntComparer起作用了。同樣部分排序的時候,第0和1兩個元素和最後一個元素都沒有參與排序。
排序前:9 8 -11 10 -3 2  
默認排序後:-11 -3 2 8 9 10  
絕對值排序後:2 -3 8 9 10 -11  
部分排序後:9 8 -3 10 -11 2 
技巧:如果希望對元素從大到小排序,可以先用Sort()方法對元素從小到大排序,然後再用Reverse()將列表中的元素倒置,就變成從大到小排序。
///////////////////////////////////////////////////////////////////////////////////////////

createps 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。