- Learning Java by Building Android Games
- John Horton
- 341字
- 2021-08-06 19:16:19
Summary
We discussed that so far, it has not been not important to completely understand exactly how the code works. This is because it will act just as a container for the code we write in the rest of the book. However, as we cover in detail topics such as methods in Chapter 4, Discovering Loops and Methods, and classes in Chapter 6, OOP – Using Other People's Hard Work, we will begin to make sense of all of the code in our games.
We discussed the somewhat complex Android life cycle in detail. We learned that all we need to understand at this stage is that we must write our code within the correct methods that relate to different phases of the life cycle. Then we will have no trouble making good progress with learning Java. As with classes and methods, all will be explained along the way and become clearer with practice.
We also learned the key areas of the Android Studio UI. We built our start menu for our math game using the Android Studio designer. Furthermore, we created the Java code necessary to make the game appear on the player's device. This was achieved mainly by modifying the code that was automatically generated for us.
This was probably the most difficult chapter of the book because it was necessary to introduce a few things such as Java classes, Java methods, and the Android life cycle. We did this because we need to know what is going on around us as we learn Java.
From now on, however, we can take things a step at a time in a very logical manner. If you have reached this point, you will have no problem completing the toughest of the projects in this book.
If this chapter made your brain ache a little, rest assured that the fact that you have made it this far is a very good indication that you are going to be a Java ace someday soon. Starting from the basics, let's learn some Java now.
- 案例式C語言程序設計
- Java 開發從入門到精通(第2版)
- Learn Type:Driven Development
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- Rust編程:入門、實戰與進階
- 零基礎玩轉區塊鏈
- 實用防銹油配方與制備200例
- VMware vSphere 6.7虛擬化架構實戰指南
- Python神經網絡項目實戰
- Instant RubyMotion App Development
- .NET 3.5編程
- 批調度與網絡問題的組合算法
- Mastering openFrameworks:Creative Coding Demystified
- Java高手是怎樣煉成的:原理、方法與實踐
- 快樂編程:青少年思維訓練