Skip to main content

Cleanup Challenge

  • Chapter
  • First Online:
Game Development with Construct 2
  • 800 Accesses

Abstract

In Cleanup Challenge, the player controls a character (who we will call “the cleaner”), whose goal is to collect pieces of trash scattered around a roadway and return them to a trash can on the opposite side, which ends the game. At the same time, cars are racing across the street, which runs horizontally across the screen. If the person gets hit by a car, the game is over and no points are awarded. The player must strategically decide which pieces of trash they will be able to recover. This is made more challenging by slight variations in the speed of the cars that race past. At the beginning of the game, the trash is randomly scattered across the screen, which adds to the replayability value. The cleaner has eight-direction movement, controlled by the arrow keys, and collects trash by coming into contact with it.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.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

Notes

  1. 1.

    Thanks to Andrew Viola for providing the graphics for this and other player characters in the book.

  2. 2.

    Even if you are using only a single image for a sprite, it is treated as an animation with just one frame (and therefore, properties such as Speed and Loop will have no effect on how it is displayed).

  3. 3.

    If you change the size to a different value and the text suddenly disappears in the layout area, this is usually because the font size is too large or there is too much text to be displayed in the given area. This problem can be remedied by either choosing a smaller font size or making the Text object larger.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Lee Stemkoski and Evan Leider

About this chapter

Cite this chapter

Stemkoski, L., Leider, E. (2017). Cleanup Challenge. In: Game Development with Construct 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2784-8_4

Download citation

Publish with us

Policies and ethics