User Tools

Site Tools


en:guides:beginners:survival

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:guides:beginners:survival [2018/06/29 05:23 (7 years ago)] – In line with init projects sausageen:guides:beginners:survival [2024/11/19 03:56 (10 months ago)] (current) – Highlights sausage
Line 3: Line 3:
 Keeping alive is key in a platformer. The monsters need to be a threat to our hero. If a monster touches our hero, he should explode in a shower of bits. That's game over. Keeping alive is key in a platformer. The monsters need to be a threat to our hero. If a monster touches our hero, he should explode in a shower of bits. That's game over.
  
-For the explosion for our hero, let'use this object from the ''orx/tutorial/data/object'' folder in the Orx project:+For the explosion for our hero, let'copy the ''+.png'' file from the ''orx/tutorial/data/object'' folder in the Orx project and copy it to ''data\texture'' as ''plus.png'':
  
 {{ :guides:beginners:plus.png?nolink |}} {{ :guides:beginners:plus.png?nolink |}}
Line 11: Line 11:
 <code=ini> <code=ini>
 [SparkGraphic] [SparkGraphic]
-Texture = +.png+Texture = plus.png
 Pivot   = center Pivot   = center
  
Line 57: Line 57:
 Before we can deal with the collision between monster and hero, we need to ensure the flags of the hero knows about monsters: Before we can deal with the collision between monster and hero, we need to ensure the flags of the hero knows about monsters:
  
-<code=ini>+<code=ini [highlight_lines_extra="5"]>
 [HeroBodyPart] [HeroBodyPart]
 Type        = box Type        = box
Line 85: Line 85:
 </code> </code>
  
-So if the hero and the monster touch, disable the hero and place a ''HeroExploder'' on top of him.+So if the hero and the monster touch, destroy the monster, disable the hero and place a ''HeroExploder'' on top of him.
  
 Compile and run it: Compile and run it:
en/guides/beginners/survival.1530274995.txt.gz · Last modified: 2018/06/29 08:23 (7 years ago) (external edit)