Major Softwares

  INDEX PAGE

  1. 簡介
  2. Java, Android和LibGDX好書推介
  3. Java, Android和LibGDX要學的知識
  4. 用Windows寫Java程式
  5. 用Eclipse寫Java程式
  6. 用Eclipse寫Android程式
  7. 用Eclipse寫LibGDX程式
  8. Standard Java Naming Conventions
  9. System.out.println()的用法和意思
  10. Where is main() method in Android?

LibGDX - Splash & Menu Screen

  1. LibGDX: World, Texture, Background, Camera, Viewport, Screen & OpenGL
  2. LibGDX: Texture, TextureRegion, SpriteBatch & Sprite
  3. UML(Unified Modeling Language): Class Diagram
  4. Type Casting, Upcasting & Downcasting
  5. @Override的用法和意思
  6. LibGDX: Scene2d & Graphical User Interface(GUI)
  7. LibGDX: Splash Screen
  8. LibGDX: Texture Packer
  9. LibGDX: BitmapFonts, JSON & Skin
  10. Android: R.java File
  11. Android: onClick事件的5種實現方式
  12. LibGDX: Game Menu Screen
  13. LibGDX: Advanced Game Menu Screen (using Abstract Screen)
  14. LibGDX: Disposable Interface
  15. Java & LibGDX: super keyword
  16. LibGDX: Advanced Game Menu Screen (using AssetManager)
  17. Java: Array, Arrays, List, ArrayList & LibGDX: Array
  18. LibGDX: File I/O (Preferences)
  19. LibGDX: Game Level Selection Screen
  20. LibGDX: Advanced Game Level Selection Screen (using AssetManager)

LibGDX - Tiled 2D Platform Game

  1. LibGDX: Lifecylce (Render() Method)
  2. LibGDX: Delta Time
  3. LibGDX: Animation & Spritesheet
  4. LibGDX: Keyboard, Mouse & Touch Screen Control
  5. Input Control (Polling VS Event Driven Input)
  6. LibGDX: Tiled (Background and Foreground)
  7. LibGDX: Jumping Action
  8. LibGDX: Tiled (Collision Detection)
  9. LibGDX: Tiled (Bullet Class)
  10. LibGDX: Audio (Sound & Music)
  11. LibGDX: Tiled (Scrollable Background with Camera & HUD)
  12. LibGDX: WorldController & WorldRenderer Class

LibGDX/Java - Card Game No.1 - Blackjack

  1. LibGDX: Install & Setup Android Studio IDE
  2. LibGDX: Use Android Studio to Run Java Hello World
  3. LibGDX: Use Android Studio to Run LibGDX Hello World
  4. Adobe Illustrator: Basic Components Part 1
  5. Adobe Illustrator: Basic Components Part 2
  6. Adobe Illustrator: BlackJack Table & Cards
  7. LibGDX: Blackjack Animation
  8. LibGDX: Interpolation
  9. Java: toString() Method
  10. Java: Blackjack Shuffle Methods
  11. LibGDX: Blackjack Shuffle Method
  12. Java: Blackjack Card Game

LibGDX - Others

  1. Making and Displaying App Icon
  2. LibGDX: Displaying Traditional and Simplified Chinese Characters
  3. LibGDX: Handling Different Screen Resolutions

Unity Game Engine & C#

  1. Visual Studio: C# Hello World
  2. Unity: C# Hello World
  3. Unity: Handling Different Screen Resolutions
  4. Unity: Life Cycle
  5. Unity: StartCoroutine, StopCoroutine, IEnumerator & Yield
  6. Unity: Splash Screen
  7. Unity: Fonts, Traditional and Simplified Chinese Characters
  8. Unity: GameObject, Class Object, new & Instantiate
  9. Unity: Start Screen with Glowing Animated Button
  10. Unity: C# Get & Set Modifier
  11. Unity: Delegates & Events
  12. Unity: File I/O, Read & Write Text File & PlayerPrefs
  13. Unity: Game Level Selection Screen
  14. Unity: Game Menu Screen & ScreenManager
  15. Unity: Encrypt and Decrypt Text File
  16. Unity: Options Menu Screen
  17. Unity: Convert Numbers Image to Custom Font

Unity - Card Game No.1 - Blackjack

  1. Unity: Blackjack Card Game - Part 1 (Full Game)
  2. Unity: Blackjack Card Game - Part 2
  3. Unity: Blackjack Card Game - Part 3
  4. Unity: Blackjack Card Game - Part 4
  5. Unity: Blackjack Card Game - Part 5
  6. Unity: Blackjack Card Game - Part 6
  7. Unity: Blackjack Card Game - Part 7

以下是預告-Coming soon!


Secret Weapon No.1

  1. Unity: Card Game No.2

Advanced Programming

  1. Unity: GPS Programming
  2. Unity: User Login System
  3. Unity: Augmented Reality (AR)

Secret Weapon No.2

  1. Unity: GPS & AR Application

第5節 - 用Eclipse寫Java程式

這一節我會介紹用Eclipse寫一個簡單的Java程式-Hello World。Eclipse是一個整合開發環境(Integrated Development Environment- IDE),是一種輔助程式開發人員開發程式的應用軟體。

如果大家有看第4節 - 用Windows寫Java程式,大家便了解到在Windows視窗下寫Java程式真是太複雜,時常要打很多指令(Command)和沒有除錯(Debug)功能。

注意,除了Java程式外,Eclipse還可用來寫Android或LibGDX程式。

Step1 - 開啟Eclipse

節1步在你下載Eclipse的folder內按Eclipse.exe開啟Eclipse。

注意,下載完Eclipse的壓縮檔案(Zip file),解壓縮(unZip),放在你想放的路徑就可以運行Eclipse,Eclipse是不須要安裝的。

Eclipse Java Hello World 1

Step2 - Select a Workspace

節2步會彈出Select a workspace視窗,選擇你希望把HelloWorld Project儲存的位置。

Eclipse Java Hello World 2

Step3 - 開新的Java Project

節3步是開一個新的Java Project,Project是一個"大folder"用來儲存你將要寫的程式(不同的Java Classes)、圖案檔案、音樂檔案等等。

注意,Project名是Hello; 而Hello World程式檔案名是HelloWorld.java,不要混淆!

File > New > New Project

Eclipse Java Hello World 3

再輸入 Hello > Finish

Eclipse Java Hello World 4

Step4 - 建立一個HelloWorld的Class檔案

節4步在剛剛建立好的Hello Project內建立一個HelloWorld的Class檔案,HelloWorld.java檔案會自動產生。

File > New > Class

Eclipse Java Hello World 5

再輸入 HelloWorld > Finish

Eclipse Java Hello World 6

Step5 - HelloWorld.java檔案會自動產生

節5步,HelloWorld.java檔案會自動產生在Hello>src>內。

Eclipse Java Hello World 7

Step6 - 輸入我們的HelloWorld程式

節6步在HelloWorld.java內,輸入我們的HelloWorld程式。

Eclipse Java Hello World 8

Step7 - 執行程式和輸出結果

節7步,現在可執行程式和輸出結果。

Run > Run As> 1 Java Application

Eclipse Java Hello World 9

OK

Eclipse Java Hello World 10

Hello, World!! 便會顯示在Console內。

Eclipse Java Hello World 11