# Need help for a simple game

**URL:** <https://discourse.processing.org/t/need-help-for-a-simple-game/17128>\
**Category:** Project Guidance\
**Created:** [January 17, 2020, 3:33am UTC](https://discourse.processing.org/t/need-help-for-a-simple-game/17128 "2020-01-17T03:33:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [January 19, 2020, 8:37pm UTC](https://discourse.processing.org/t/need-help-for-a-simple-game/17128/7 "2020-01-19T20:37:42Z")

</div>

For storing different kind of objects in an Arraylist see

> [@How to make a game with many different objects (ArrayList)](https://discourse.processing.org/t/how-to-make-a-game-with-many-different-objects-arraylist/16839/6):
>
> here is an example using interface and implements // demo for interface and implements // Interface allows to bring different kinds of objects in one ArrayList ArrayList\<BasicItem3D\> list = new ArrayList(); void setup() { size(950, 650, P3D); for (int x=0; x\<7; x++) { for (int y=0; y\<7; y++) { if (random(100) \> 50) list.add(new ClassBox( 300.0+x\*74, 100.0+y\*74, random(-150, 150))); else list.add(new ClassSphere( 300.0+x\*74, 100.0+y\*74, random(-150, 150…

---

_[View the full topic](https://discourse.processing.org/t/need-help-for-a-simple-game/17128)._
