Skip to main content

Coding Gameplay: Set Up Gameplay Methods and Animated Camera View

  • Chapter
  • First Online:
Pro Java 9 Games Development
  • 1816 Accesses

Abstract

So far you have your gameplay random quadrant selection logic coded, and you are tracking the quadrant landing for each spin. Now we need to put the bulk of the Java code into place that populates these four quadrants with the game board square random content selection for each of the five squares that are attached to any given quadrant. We also need to create the code that allows a player to select one of the topic questions by clicking an image. This will populate the quadrant with images and move the camera into position so the selected image is larger (more viewable). This means we’ll also be covering the use of Animation objects, in conjunction with your Camera object, during this chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Wallace Jackson

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Jackson, W. (2017). Coding Gameplay: Set Up Gameplay Methods and Animated Camera View. In: Pro Java 9 Games Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0973-8_20

Download citation

Publish with us

Policies and ethics