Learning Java by Building Android Games, 2nd Edition

0
(0)

Learning Java by Building Android Games, 2nd Edition
 

  • Author:John Horton
  • Length: 774 pages
  • Edition: 2nd Revised edition
  • Publisher: Packt Publishing
  • Publication Date: 2018-08-29
  • ISBN-10: 1788839153
  • ISBN-13: 9781788839150
  • Sales Rank: #133557 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Learning Java by Building Android Games: Learn Java and Android from scratch by building six exciting games, 2nd Edition

    Get ready for a fun-filled experience of learning Java by developing games for the Android platform

    Key Features

    • Learn Java, Android, and object-oriented programming from scratch
    • Build games including Sub Hunter, Retro Pong, Bullet Hell, Classic Snake, and a 2D Scrolling Shooter
    • Create and design your own games, such as an open-world platform game

    Book Description

    Android is one of the most popular mobile operating systems presently. It uses the most popular programming language, Java, as the primary language for building apps of all types. However, this book is unlike other Android books in that it doesn’t assume that you already have Java proficiency.

    This new and expanded second edition of Learning Java by Building Android Games shows you how to start building Android games from scratch. The difficulty level will grow steadily as you explore key Java topics, such as variables, loops, methods, object oriented programming, and design patterns, including code and examples that are written for Java 9 and Android P.

    At each stage, you will put what you’ve learned into practice by developing a game. You will build games such as Minesweeper, Retro Pong, Bullet Hell, and Classic Snake and Scrolling Shooter games. In the later chapters, you will create a time-trial, open-world platform game.

    By the end of the book, you will not only have grasped Java and Android but will also have developed six cool games for the Android platform.

    What you will learn

    • Set up a game development environment in Android Studio
    • Implement screen locking, screen rotation, pixel graphics, and play sound effects
    • Respond to a player’s touch, and program intelligent enemies who challenge the player in different ways
    • Learn game development concepts, such as collision detection, animating sprite sheets, simple tracking and following, AI, parallax backgrounds, and particle explosions
    • Animate objects at 60 frames per second (FPS) and manage multiple independent objects using Object-Oriented Programming (OOP)
    • Understand the essentials of game programming, such as design patterns, object-oriented programming, Singleton, strategy, and entity-component patterns
    • Learn how to use the Android API, including Activity lifecycle, detecting version number, SoundPool API, Paint, Canvas, and Bitmap classes
    • Build a side-scrolling shooter and an open world 2D platformer using advanced OOP concepts and programming patterns

    Table of Contents

    Chapter 1 Java, Android & Games
    Chapter 2 Java Basics & An Introduction to Object Oriented Programming – Starting the Sub Hunter Game
    Chapter 3 Java Variables, Operators, Expressions and Android Debugging – Spawning a Sub to Hunt
    Chapter 4 Making Decisions with Java If, Else & Switch – Getting the Player’s Input
    Chapter 5 The Android Canvas Class, Drawing to The Screen – Firing Depth Charges
    Chapter 6 While, Do While, For Loops, Break & Continue – Enhancing Sub Hunter Game
    Chapter 7 Java Methods – Finishing Sub Hunter Game
    Chapter 8 Object Oriented Programming – Starting the Pong Game
    Chapter 9 Interfaces, Threads & Exceptions – Coding the Pong Game Loop
    Chapter 10 Coding a class for the player’s bat & Handling Input
    Chapter 11 Collisions, Sound FX and Supporting Different Android Versions – Finishing the Pong Game
    Chapter 12 Handling LOTS of Objects with Arrays – Welcome to Bullet HELL
    Chapter 13 Drawing with Bitmap Graphics – Coding the Player and Finishing the Game
    Chapter 14 Java Collections, The Stack, the Heap & Garbage Collection – Starting the Snake Game
    Chapter 15 Using Java Enumerations – Building the Snake Class
    Chapter 16 Android Localization, Hola! – Building a Retro Game Loop
    Chapter 17 Finishing the Snake Game

    中文:

    书名:通过构建Android游戏学习Java,第二版

    通过构建Android游戏学习Java:通过构建六个激动人心的游戏从头开始学习Java和Android,第二版

    准备好通过为Android平台开发游戏来学习Java的有趣体验

    主要特点

    • Learn Java, Android, and object-oriented programming from scratch
    • 构建包括潜艇猎人、复古乒乓球、子弹地狱、经典蛇和2D滚动射击在内的游戏
    • 创建和设计您自己的游戏,例如开放世界平台游戏

    图书描述

    Android是目前最流行的移动操作系统之一。它使用最流行的编程语言Java作为构建所有类型应用程序的主要语言。然而,这本书不同于其他Android书籍,因为它不假定您已经精通Java。

    这个新的和扩展的第二版通过构建Android游戏来学习Java,向您展示如何从头开始构建Android游戏。随着您探索关键的Java主题,如变量、循环、方法、面向对象编程和设计模式,难度将稳步增长,包括为Java 9和Android P编写的代码和示例。

    在每个阶段,您将通过开发游戏将您所学的知识应用到实践中。您将构建游戏,如扫雷者,复古乒乓球,子弹地狱,和经典的蛇和滚动射击游戏。在后面的章节中,您将创建一个计时赛的开放世界平台游戏。

    到本书结束时,你不仅已经掌握了Java和Android,还将为Android平台开发六款很酷的游戏。

    你将学到什么

    • 在Android Studio中设置游戏开发环境
    • 实现屏幕锁定、屏幕旋转、像素图形、播放音效
    • 对玩家的触摸做出反应,并设计以不同方式挑战玩家的智能敌人
    • 学习游戏开发概念,如碰撞检测、动画化精灵工作表、简单跟踪和跟踪、人工智能、视差背景和粒子爆炸
    • 以每秒60帧(FPS)的速度设置对象动画,并使用面向对象编程(OOP)管理多个独立对象
    • 了解游戏编程的基本知识,如设计模式、面向对象编程、单例、策略和实体组件模式
    • 了解如何使用Android API,包括活动生命周期、检测版本号、SoundPool API、Paint、Canvas和Bitmap类
    • Build a side-scrolling shooter and an open world 2D platformer using advanced OOP concepts and programming patterns

    目录表

    第1章Java、Android和amp;游戏
    第2章Java基础&面向对象编程入门&《潜猎者》游戏
    第3章Java变量、运算符、表达式和Android调试&派生Sub to Hunt
    第4章使用Java If,Else&Switch;获取玩家的输入进行决策
    Chapter 5 The Android Canvas Class, Drawing to The Screen – Firing Depth Charges
    第6章While,Do While,for Loop,Break;Continue&Enhance Sub Hunter Game
    第7章Java方法&完成子猎人游戏
    第8章面向对象编程&启动乒乓球游戏
    第9章接口、线程和异常&编写乒乓球游戏循环
    第10章为球员的BAT和AMP;处理输入编写类
    第11章碰撞、音效和支持不同的Android版本–完成乒乓球游戏
    第12章使用数组处理大量对象欢迎来到子弹地狱
    第13章使用位图图形绘制编码玩家并完成游戏
    第14章Java收集、堆栈、堆垃圾收集&开始Snake游戏
    第15章使用Java枚举构建Snake类
    第16章Android本地化,霍拉!–建立一个复古游戏循环
    第十七章完成蛇的游戏

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册