# Beginner/easy Platformer game example?

**URL:** https://discourse.processing.org/t/beginner-easy-platformer-game-example/746
**Category:** Beginners
**Tags:** homework
**Created:** [June 6, 2018, 1:20am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746 "2018-06-06T01:20:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![tokyo](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@tokyo](https://discourse.processing.org/u/tokyo)
#### Post date: [June 6, 2018, 1:20am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/1 "2018-06-06T01:20:16Z")

</div>

Hi, I’ve asked a couple questions here but was wondering if anyone had a platformer game example code that is very simple without much. I just need to get how to place platforms. Thanks!

---

<div class="post-metadata">

### Author: ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)
#### Post date: [June 6, 2018, 1:48am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/2 "2018-06-06T01:48:21Z")

</div>

> [@Collision and Boundaries help(Mario)?](https://discourse.processing.org/t/collision-and-boundaries-help-mario/716/12):
>
> Well, I started by filling in some details. We can have placeholder code to draw each of these things for a start. That means that each of these things is going to need a size and position - just so we can draw them! Then I added constructors for all the objects, and threw in some code to generate a few example objects: class Block { float x,y,w,h; Block(float ix, float iy){ x = ix; y = iy; w = 20; h = 20; } void draw() { fill(0,0,200); stroke(0); rect(x,y,w,…

You are unlikely to get a complete working example at this point because like three people are posting asking about a Mario game right now… And none of them has posted their own code…

---

<div class="post-metadata">

### Author: ![tokyo](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@tokyo](https://discourse.processing.org/u/tokyo)
#### Post date: [June 6, 2018, 2:32am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/3 "2018-06-06T02:32:11Z")

</div>

I would post my own code but its all over the place and I used images that you won’t have access to so it’d be hard even then to help I assume. I don’t need a full working copy of a game but rather I’d like to learn how to do it myself but to do so I need code to look at as an example because I am a beginner.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 6, 2018, 2:42am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/4 "2018-06-06T02:42:58Z")

</div>

[https://GoSubRoutine.GitHub.io/PjsGameEngine/codebase/](https://GoSubRoutine.GitHub.io/PjsGameEngine/codebase/)

> **[GoSubRoutine/PjsGameEngine](https://github.com/GoSubRoutine/PjsGameEngine)**
>
> Contribute to GoSubRoutine/PjsGameEngine development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![tokyo](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@tokyo](https://discourse.processing.org/u/tokyo)
#### Post date: [June 6, 2018, 2:52am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/5 "2018-06-06T02:52:59Z")

</div>

Thank you but I’ve seen this example and it seemed like they used some library? I was looking for something simpler, doesn’t have to be mario or a full game, just enough to kinda “teach” me how to place platforms or collisions.

---

<div class="post-metadata">

### Author: ![lmccandless](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@lmccandless](https://discourse.processing.org/u/lmccandless)
#### Post date: [June 6, 2018, 3:01am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/6 "2018-06-06T03:01:57Z")

</div>

I made this and will be posting the code very soon, like less than 24hrs. Sorry for the wait but if you are wanting to understand my code…you’ll be grateful I spent the time refactoring it before giving it to you.

> [@Game Jam entries](https://discourse.processing.org/t/game-jam-entries/213/3):
>
> Another fortnight, another game jam. This time the rules were to graphically only use a provided sprite and tile sheet. I made a map editor and paid homage to the first couple levels of super mario bros I’ll add the source code here when the voting is done/code is cleaned up [image]

If you can’t wait for the mario game, the other game posted higher on the page is also a platformer and the source code is already released.

---

<div class="post-metadata">

### Author: ![tokyo](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@tokyo](https://discourse.processing.org/u/tokyo)
#### Post date: [June 6, 2018, 3:12am UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/7 "2018-06-06T03:12:55Z")

</div>

Thank you! I’ve been stumped for a while and have made little progress so I’m hoping this’ll help and come soon. Haha I want to work on this as quickly as I can.

---

<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: [June 6, 2018, 1:26pm UTC](https://discourse.processing.org/t/beginner-easy-platformer-game-example/746/8 "2018-06-06T13:26:44Z")

</div>

Really?

Let tokyo show his code first.

This is homework and he hasn’t shown code
