Reader small image

You're reading from  Learning Java by Building Android Games - Third Edition

Product typeBook
Published inMar 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781800565869
Edition3rd Edition
Languages
Right arrow
Author (1)
John Horton
John Horton
author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton

Right arrow

Summary so far

Take a look at these bullet points, which describe everything we have discussed so far.

  • We will have component classes such as MovementComponent, GraphicsComponent, SpawnComponent, and InputComponent. These will be interfaces with no specific functionality.
  • There will be concrete classes that implement these interfaces, such as DiverMovement, PlayerMovement, StandardGraphics, BackgroundGraphics, PlayerInput, and so on.
  • We will have specification classes for each game object that specify the components that each object in the game will have. These specifications will also have extra details such as size, speed, name, and graphics file required for the desired appearance.
  • There will be a factory class that knows how to read the specification classes and assemble generic but internally different GameObject instances.
  • There will be a level class that will know which and how many of each type of GameObject is required and will "order" them...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Java by Building Android Games - Third Edition
Published in: Mar 2021Publisher: PacktISBN-13: 9781800565869

Author (1)

author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton