28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 17 ■ Enhancing Game Play: Creating a Scoring Engine, Adding Treasure and an Enemy Auto-Attack Engine<br />

Inside the second if(takeSides) structure, in the if(!onScreen) structure, initialize the destination location to 100<br />

pixels, and nest another counter if(spriteMoveL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!