2011年6月2日 星期四

[AndEngine]Hello world! Hello AndEngine!

Hello Community,
I think its kind of obvious that this blog will cover the development of….
AndEngine Badge
AndEngine – Android 2D OpenGL Game Engine.
For now I’ve only set up this blog and the forums. While the blog is meant to cover general public announcements, like mayor releases and noteworthy projects built with AndEngine, the forums are there to cover all active development, bugs and feature-request.
So stay tuned, bookmark this blog and register at the forums for some exciting stuff soon =)
Meanwhile take a look at the Showcase.
Best Regards,
Nicolas

哈嚕 各位社群的朋友,
我想這blog非常明顯將會涵蓋AndEngine - Android 2D OpenGL 遊戲引擎的發展
從現在起我開始設置此blog還有論壇,然而這blog只有包含到一般官方的公告,像是主要發行以及利用AndEngine開發,值得注意的專案。在論壇裡包含所以主動開發、臭蟲、還有功能要求。
敬請期待,將這個blog加入書籤,還有為了快速獲得一些有趣的東西,註冊論壇會員!
祝福各位
Nicolas

[AndEngine] 利用Tortiosehg把AndEngine專案都抓下來

利用Tortiosehg把AndEngine專案都抓下來

 
安裝完成

[Android、Sqlite]SQLite Database Browser 基本使用


       SQLite Database Browser 其實非常簡單,功能沒有很複雜,可以把你的.sql檔匯入,編輯資料表欄位,增加資料表,或是改變裡面的data。最後再把它輸出。


最初的畫面。


[Android、Sqlite]SQLite Database Browser介紹

       這是從資策會Android應用程式設計課程講義上看到的軟體,SQLite Database Browser可以視覺化的調整Sqlite內部的資料。

SQLite Database Browser:http://sqlitebrowser.sourceforge.net/

What it is
SQLite Database Browser is a freeware, public domain, open source visual tool used to create, design and edit database files compatible with SQLite. It is meant to be used for users and developers that want to create databases, edit and search data using a familiar spreadsheet-like interface, without the need to learn complicated SQL commands. Controls and wizards are available for users to:

2011年4月15日 星期五

[Android]Bitmap圖形、拖拉後的反方向速度

        這是 [Android]利用Java Class繼承View來呈現Android畫面的再延伸,已經可以利用滑鼠移動球體,現在要加上加速度的慣性,還有bitmap的使用。

目標:(1)利用bitmap匯入圖片。
         (2)加速度移動。

開新的一個專案,再把JavaDrawView貼過來。

2011年4月8日 星期五

[Android]Project coding注意事項

變數命名:名稱不怕長,怕的是你兩三個月後看不懂他。

範例
 float m_fCircleCenterX = 100.0f; //m_代表是類別等級的變數,別忘了一個.java就是一個類別。
 boolean m_bRunning =true; //f:代筆他的型別為float
                                                //名稱:就盡最大可能表現出它的意義,向這個就是圓心的座標X
                                               //,當發現盡力還是表達很模糊,就請一定要加上註解。
float l_fdt = 0.1f;                  //l_區域變數
long l_nStartTime=0         //n:Number

邏輯判斷式:開頭上註解,解釋其內容。在邏輯太多層下,不容易辨識括弧,在末括號加上註解。

  //判定手指點擊是否在圓內。
if((m_fCircleCenterX - m_fCircleRadius) <= e_fPosX &&
e_fPosX <= (m_fCircleCenterX + m_fCircleRadius))
{
if((m_fCircleCenterY - m_fCircleRadius) <= e_fPosY &&
e_fPosY <= (m_fCircleCenterY + m_fCircleRadius))
{
m_bIsTouchDownCircle = true;
text=e_fPosX+","+e_fPosY;
}ifend

}ifend

XML部分:

id也請讓他意義化,text要讓他能符合多國語系的格式,也就是要text命名要呼叫value裡面的資源檔,而不是直接設值
,google應該可以找到不少資源。
Layout要可符合各種Size的手機,[Android] 利用XML來呈現Android的畫面後半有大概提到一點。

範例:回到首頁按鈕
<ImageButton
android:id="@+id/ButtonBacktoHome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Back"
android:layout_x="120px"
android:layout_y="90px"
android:src="@drawable/memo"
/>