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

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
主站蜘蛛池模板: 开原市| 日照市| 乐山市| 松桃| 禹州市| 永吉县| 潞西市| 城固县| 堆龙德庆县| 安康市| 洛浦县| 辽阳县| 巴东县| 册亨县| 抚州市| 琼结县| 沈阳市| 鹤山市| 邛崃市| 泸西县| 古浪县| 乌审旗| 亳州市| 新郑市| 莲花县| 沂南县| 洮南市| 鹤壁市| 鸡西市| 罗甸县| 合川市| 河曲县| 电白县| 鄢陵县| 化德县| 湟源县| 兴仁县| 确山县| 扬中市| 威宁| 汝州市|