<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with #mario - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=%23mario</link>
      <pubDate>Sun, 08 Aug 2021 20:33:56 +0000</pubDate>
         <description>Tagged with #mario - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/tagged%23mario/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>AI endless runner</title>
      <link>https://forum.processing.org/two/discussion/25717/ai-endless-runner</link>
      <pubDate>Tue, 26 Dec 2017 05:33:49 +0000</pubDate>
      <dc:creator>ctrembla</dc:creator>
      <guid isPermaLink="false">25717@/two/discussions</guid>
      <description><![CDATA[<p>Can anyone link me to something or suggest stuff to create an AI endless runner that learns from his mistakes? Like he falls into a hole and dies he restart and uses a new move when reaches there or does same then next time does new. I'm not looking to hard code if cliff &lt; 5 jump. I want him to fall into the cliff then restart then figure out he needs to get over it.</p>
]]></description>
   </item>
   <item>
      <title>How to fix/get rid of "magnetism" with velocity+gravity+jump+collision in p5.js Play?</title>
      <link>https://forum.processing.org/two/discussion/24808/how-to-fix-get-rid-of-magnetism-with-velocity-gravity-jump-collision-in-p5-js-play</link>
      <pubDate>Mon, 30 Oct 2017 20:13:32 +0000</pubDate>
      <dc:creator>Ma_Sa_</dc:creator>
      <guid isPermaLink="false">24808@/two/discussions</guid>
      <description><![CDATA[<p>I'm trying to figure out how to make "human" to move, jump and "bump" like in Super Mario. So far I made basic velocity movement on X axis, collision with canvas edges, velocity += gravity (works fine), made jump. I added small random platforms to test jump, jumping on top of them is fine, the problem is human gets stuck on the side of platform.</p>

<p>I think there is a way to detect which side of platform human is colliding with, but I just can't figure it out yet :) pls help :)</p>

<p>P.S. I can give some code if needed :)</p>
]]></description>
   </item>
   <item>
      <title>Display decor using tables</title>
      <link>https://forum.processing.org/two/discussion/10963/display-decor-using-tables</link>
      <pubDate>Sat, 23 May 2015 19:18:43 +0000</pubDate>
      <dc:creator>Spacetcha</dc:creator>
      <guid isPermaLink="false">10963@/two/discussions</guid>
      <description><![CDATA[<p>Hello,</p>

<p>I inform you I'm not a programmer and don't know the word and the best practices.</p>

<p>My project is to create a donkey kong video game using Processing, the old version of DK with Mario and ladders, etc..</p>

<p>In order to display the decor and then use those data to interact with Mario, I would like to add those data in a table.</p>

<p>I don't know if I'm clear but I need help for this.
Thank you;</p>

<hr />

<pre><code>int
ecran_w = 1200, 
ecran_h = 675, 
mario_pos_x = 50, 
mario_pos_y = 570;

boolean
engagementSaut = false, 
keyup = false, 
keyright = false, 
keyleft = false, 
keydown = false, 
keyspace = false;

ArrayList 
DecorList = new ArrayList();

PImage
photoVictoire, 
mario_r, 
mario_l, 
DonkeyKong, 
Peach;

Decor decor = new Decor(0, 600, 1200, 25, 255, 165, 0);


void setup() {
  frameRate(150);
  size(ecran_w, ecran_h);
  background(0);

  photoVictoire = loadImage("DK 64 Victory.png");
  mario_r = loadImage("Mario_R.png");
  mario_l = loadImage("Mario_L.png");
  DonkeyKong = loadImage("Donkey Kong.png");
  Peach = loadImage("Peach.png");
}

void draw() {
  background(0);

  image(DonkeyKong, 50, 144);
  image(Peach, 500, 55);

  decor.init();
  decor.display();
}


class Decor {
  int x, y, largeur, hauteur, couleurRed, couleurGreen, couleurBlue;

  Decor(int xpos, int ypos, int l, int h, int cR, int cG, int cB) {
    x = xpos;
    y = ypos;
    largeur = l;
    hauteur = h;
    couleurRed = cR;
    couleurGreen = cG;
    couleurBlue = cB;
  }

  void display() {
    for (int i = 0; i &lt; DecorList.size (); i++) {
      Decor xpos = (Decor) DecorList.get(i); 
      Decor ypos = (Decor) DecorList.get(i);
      Decor l = (Decor) DecorList.get(i);
      Decor h = (Decor) DecorList.get(i);
      Decor cR = (Decor) DecorList.get(i);
      Decor cG = (Decor) DecorList.get(i);
      Decor cB = (Decor) DecorList.get(i);

      fill(couleurRed, couleurGreen, couleurBlue);
      rect(x, y, largeur, hauteur);
    }
  }

  void init() {  
    if (DecorList.size()&lt;8) {
      DecorList.add (new Decor(0, 600, 1200, 25, 255, 165, 0));
      DecorList.add (new Decor(0, 500, 1200, 25, 255, 165, 0));
      DecorList.add (new Decor(0, 400, 200, 25, 255, 165, 0));
      DecorList.add (new Decor(300, 400, 600, 25, 255, 165, 0));
      DecorList.add (new Decor(0, 300, 500, 25, 255, 165, 0));
      DecorList.add (new Decor(700, 300, 500, 25, 255, 165, 0));
      DecorList.add (new Decor(0, 200, 1200, 25, 255, 165, 0));
      DecorList.add (new Decor(500, 100, 200, 25, 255, 165, 0));
    }
  }
}
</code></pre>

<hr />

<p>This is what I have :
<img src="http://forum.processing.org/two/uploads/imageupload/060/CVEX6O3QOYDH.png" alt="DK (1)" title="DK (1)" /></p>

<p>This is what it should look like (the orange ones)
<img src="http://forum.processing.org/two/uploads/imageupload/803/CGM7FVQWZTR2.png" alt="DK (2)" title="DK (2)" /></p>
]]></description>
   </item>
   <item>
      <title>Platformer scrolling is moving background, how to implement simple AI that works with this system</title>
      <link>https://forum.processing.org/two/discussion/18334/platformer-scrolling-is-moving-background-how-to-implement-simple-ai-that-works-with-this-system</link>
      <pubDate>Wed, 28 Sep 2016 22:42:29 +0000</pubDate>
      <dc:creator>chrisc10196</dc:creator>
      <guid isPermaLink="false">18334@/two/discussions</guid>
      <description><![CDATA[<p>The question is a bit vague. Hopefully this will help.</p>

<p>Currently I am developing a Mario game and I am not using a camera tracking system that follows my mario object as I'm unaware of how to do this in Processing. Thus, when I move right - my mario position is always at x = 100 and my background image moves to the left which gives an illusion of movement.</p>

<p>This has worked as a great way to implement movement for Mario. However now I have an issue:</p>

<p>If you recall, when Mario hits a  <a rel="nofollow" href="http://www.gamepodunk.com/uploads/cf753ea459461cc46586057416dc92f0.png">coin block</a>, he can either spawn a mushroom powerup that has it's own AI or just a coin that gives you 200 points.
This <a rel="nofollow" href="http://www.retrogames.cz/play_005-NES.php?language=EN">website</a> might help refresh your memory if you need it</p>

<p>The following issue is arising because the world is all relative to Mario and his movement and I need to change this for these powerups/AI.
I think visually this will explain it better: <a href="http://i.imgur.com/RpGIG6g.png" target="_blank" rel="nofollow">http://i.imgur.com/RpGIG6g.png</a></p>

<p>When I hit the coin block, it's creating a mushroom block at the position of the coin block. But because the world is relative to mario's position, when I move to the right/left - that mushroom itself follows left/right too. My first hurdle is to get the movement to not follow Mario.</p>

<p>Now, my choice is try make it independent of Mario or implement a camera system that follows Mario and thus makes everything else independent. I'm not really leaning to the latter because I'm amount 1000 lines in and this assignment is due in a couple of weeks.</p>

<p>If you want code, it's all here: <a href="https://github.com/chrisc96/Processing-Java-Projects/tree/master/ProcessingProjects/Game" target="_blank" rel="nofollow">https://github.com/chrisc96/Processing-Java-Projects/tree/master/ProcessingProjects/Game</a>
It's a bit daunting so if you need any explanations, do ask and I'll do my best to assist.</p>

<p>Chris</p>
]]></description>
   </item>
   <item>
      <title>Add engine</title>
      <link>https://forum.processing.org/two/discussion/13546/add-engine</link>
      <pubDate>Tue, 17 Nov 2015 20:42:55 +0000</pubDate>
      <dc:creator>fakqcze</dc:creator>
      <guid isPermaLink="false">13546@/two/discussions</guid>
      <description><![CDATA[<p>Hello. I want to make a game same as PjsGameEngine - mario... with different things. But how can i use his engine?</p>
]]></description>
   </item>
   <item>
      <title>Where can I find a 2D game-engine for processing?</title>
      <link>https://forum.processing.org/two/discussion/10672/where-can-i-find-a-2d-game-engine-for-processing</link>
      <pubDate>Wed, 06 May 2015 15:48:09 +0000</pubDate>
      <dc:creator>OMG</dc:creator>
      <guid isPermaLink="false">10672@/two/discussions</guid>
      <description><![CDATA[<p>I'm trying to follow this tutorial to create a Mario Game: <a href="http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/mario.html" target="_blank" rel="nofollow">http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/mario.html</a> and its says that we need to use a "a library for writing 2D sprite-based games, using Processing.js". Do you know where can I find it?. I check this thread from April 2014 but there's no answer :(</p>

<p>Thank you so much.</p>
]]></description>
   </item>
   </channel>
</rss>