2012年11月25日 星期日

MySql 安裝

所需檔案

安裝步驟

(0) 如果需要才安裝 .Net Framework 4

(1) 安裝MySql

1

2

3

4

5

(2) 進入MySql Console

2

(3) 建立所需Table

CREATE DATABASE IF NOT EXISTS `bingodb` DEFAULT CHARACTER SET utf8;

USE `bingodb`;

DROP TABLE IF EXISTS `userinfo`;

CREATE TABLE `userinfo` (
`UID` varchar(300) DEFAULT NULL,
`NAME` varchar(300) DEFAULT NULL,
`SCORE` int(11) DEFAULT NULL,
`LINE` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


(4) 設定MySql外網存取權限



GRANT ALL ON *.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD';


(5) 設定防火牆


1


(6) 測試


1

SmartFoxServer 2X 安裝

所需檔案

 

安裝步驟

(1) SmartFoxServer 2X 安裝

1

2

(2) SmartFoxServer 2X 更新

1

2

3

4

(3) SmartFoxServer 2X 設定

1

2

3

4

(4) 防火牆設定

1

(5) 外網Router設定

1

(6) 測試

1

2012年11月19日 星期一

Adobe AIR for Game

 

開發環境安裝

  1. Flash Builder
  2. Flash Professional
  3. Latest AIR SDK
  4. Latest Flex SDK
  5. Merge Flex and AIR SDKs
  6. 設定步驟

參考資料

Toolkit

實機測試所需檔案(尚未完成)

  • iOS (Certificate & Provisioning file)
  • Android (usb_drivers)

Game Development Resources

ActionScript code snippets

Flash Game Engine support Adobe AIR

Flash Audio Resource

效能調校

Starling Q & A

Q & A

其他參考資料

Actionscript Third Party

Action Script Resource Management

Flash Builder shortcuts

File

  • Find Next : Ctrl + K
  • Find Previous : Ctrl + Shift + K
  • Word Completion : Alt + /
  • Quick Fix : Ctrl + 1

Source

  • Toggle Comment : Ctrl + /
  • Correct Indentation : Ctrl + I
  • Rename : Ctrl + Alt + R

Navigate

  • Open Declaration : F3
  • Open Call Hierachy : Ctrl + Alt + H
  • Open Type : Ctrl + Shift + T
  • Open Resource : Ctrl + Shift + R
  • Last Edit Location : Ctrl + Q
  • Go to Line : Ctrl + L
  • Back : Alt + Left
  • Forward : Alt + Right

Run

  • Resume : F8
  • Terminate : Ctrl + F2
  • Step Info : F5
  • Step Over : F6
  • Run : Ctrl + F11
  • Debug : F11
  • Toggle Breakpoint : Ctrl + Shift + B

2012年11月18日 星期日

TODO

[尚未解決的問題]



  • MySql connector for iOS 在 select時, 中文會出錯的BUG (key word: my_bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt)


[2012.11.16]



  • 幫cole安裝xcode最新版


  • 幫cole安裝Parellel Desktop


  • 備份以及安裝Tom給的光碟 for Adobe AIR


  • Start Adobe AIR for Android Project




iOS開發環境相關聯結

Deploying iPhone Apps to Real Devices






2012年11月17日 星期六

Analysis of Bingo porting from iOS to Adobe AIR

 

Bingo Features

  • Game Effect : cocos2d
  • Real-time Multiplayer Gaming : SmartFoxServer 2X
  • Score Ranking : MySql

Reference

cocos2d for iOS

cocos2d for Android

cocos2d-x :

SmartFoxServer 2X

MySql for iOS (code snippet)

MySql for iOS (package)

MySql for Android

Connect MySql to Android

Access MySql via WebService

mysql-connector-android

Bingo on Adobe AIR issue


Game Effect

air for ios game developed in flash using actionscript 3.0

Adobe AIR for the iPhone and Android OS using Flash Pro CS5

convert into Adobe AIR/Android app


Real-time Multiplayer Gaming : SmartFoxServer 2X has client API for Flash


MySql

asSQL is an Actionscript 3 Mysql Driver

Using Flex, PHP, and JSON to Modify a MySQL Database

Flex & PHP Tutorial - Transmitting data using JSON

Flex, PHP, JSON, MySQL - Advanced Updating


Conclusion: 移植到Adobe AIR應該沒問題


Adobe AIR


cons & pros


Adobe AIR: 10 reasons to love it, 10 reasons to hate it.

The Pros and Cons of Adobe AIR

Adobe Flash – Pros And Cons


Adobe AIR Developer Center