官术网_书友最值得收藏!

Chapter 3. Speaking Java – Your First Game

In this chapter, we will start writing our very own Java code at the same time as we begin understanding Java syntax. We will learn how to store, retrieve, and manipulate different types of values stored in the memory. We will also look at making decisions and branching the flow of our code based on the values of this data.

In this order, we will:

  • Learn some Java syntax and see how it is turned into a running app by the compiler
  • Store data and use it with variables
  • Learn how to express yourself in Java with expressions
  • Continue with the math game by asking a question
  • Learn about decisions in Java
  • Continue with the math game by getting and checking the answer

Acquiring the preceding Java skills will enable us to build the next two phases of our math game. This game will be able to ask the player a question on multiplication, check the answer and give feedback based on the answer given, as shown in the following screenshot:

Speaking Java – Your First Game
主站蜘蛛池模板: 繁峙县| 德化县| 营口市| 沁阳市| 横峰县| 包头市| 固安县| 通州市| 家居| 巴马| 正定县| 甘南县| 民勤县| 四会市| 德化县| 娱乐| 赤壁市| 伊金霍洛旗| 阿拉尔市| 西乡县| 芜湖市| 雷波县| 密云县| 武夷山市| 会泽县| 西乡县| 清河县| 乌拉特后旗| 烟台市| 嵩明县| 香格里拉县| 保德县| 景宁| 古浪县| 侯马市| 辽源市| 高密市| 金溪县| 新化县| 雷波县| 辉县市|