User Tools

Site Tools


en:tutorials:spawner

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:spawner [2015/10/29 02:34 (5 years ago)]
sausage ↷ Links adapted because of a move operation
en:tutorials:spawner [2018/06/21 16:49 (22 months ago)] (current)
Line 6: Line 6:
 //NB: If you want to see how to use orx while using ''​C++''​ for your game, please refer to the [[locale|localization tutorial]].//​ //NB: If you want to see how to use orx while using ''​C++''​ for your game, please refer to the [[locale|localization tutorial]].//​
  
-See previous ​[[main_previous#​Basic|basic tutorials]] for more info about basic [[object|object creation]], [[clock|clock handling]], [[frame|frames hierarchy]],​ [[anim|animations]],​ [[viewport|cameras & viewports]],​ [[sound|sounds & musics]], [[FX|FXs]], [[physics]],​ [[scrolling]] and [[locale|C++ localization]].+See previous basic tutorials for more info about basic [[object|object creation]], [[clock|clock handling]], [[frame|frames hierarchy]],​ [[anim|animations]],​ [[viewport|cameras & viewports]],​ [[sound|sounds & musics]], [[FX|FXs]], [[physics]],​ [[scrolling]] and [[locale|C++ localization]].
  
 This tutorial shows how to create and use spawners for particle effects.\\ This tutorial shows how to create and use spawners for particle effects.\\
Line 129: Line 129:
 We'll then skip this one and directly have a look to the parent folder'​s one. We'll then skip this one and directly have a look to the parent folder'​s one.
  
-As you can see by looking at [[https://orx.svn.sourceforge.net/svnroot/orx/trunk/​tutorial/​bin/​11_Spawner.ini|the config file]], we provide values for all basics system (''​Display'',​ ''​Physics'',​ ''​Input'',​ ''​Viewport'',​ etc...).\\+As you can see by looking at [[https://bitbucket.org/orx/orx/src/default/​tutorial/​bin/​11_Spawner.ini|the config file]], we provide values for all basics system (''​Display'',​ ''​Physics'',​ ''​Input'',​ ''​Viewport'',​ etc...).\\
 As we've already covered all this in previous tutorials, we won't do it here again. As we've already covered all this in previous tutorials, we won't do it here again.
  
Line 211: Line 211:
 WaveDelay ​  = 0.01</​code>​ WaveDelay ​  = 0.01</​code>​
  
-Spawners can use far more attributes than the three defined above as we can see in [[https://​bitbucket.org/​orx/​orx/​src/​aa132a9d08c7a15d1c07282e344a4559ec769ca3/​tutorial/​bin/​CreationTemplate.ini]],​ but those are the most important ones.+Spawners can use far more attributes than the three defined above as we can see in [[https://​bitbucket.org/​orx/​orx/​src/​default/​tutorial/​bin/​CreationTemplate.ini]],​ but those are the most important ones.
  
 First, the ''​Object''​ attribute tells the spawner which kind of object it's going to spawn. In this case it's an object which is called ''​Particle''​ and that we won't describe here ((it's mainly a graphical object with varying color, shape and physical properties that we use as a... particle! =))). First, the ''​Object''​ attribute tells the spawner which kind of object it's going to spawn. In this case it's an object which is called ''​Particle''​ and that we won't describe here ((it's mainly a graphical object with varying color, shape and physical properties that we use as a... particle! =))).
Line 370: Line 370:
 This event'​s payload will contain the parameter name ((here it'd be ''​texture''​ or ''​offset''​)),​ its type and its config default value.\\ This event'​s payload will contain the parameter name ((here it'd be ''​texture''​ or ''​offset''​)),​ its type and its config default value.\\
 You can then change its value on-the-fly to suit your needs.\\ You can then change its value on-the-fly to suit your needs.\\
-There'​s a simple sine wave distortion example that you can see in the bounce demo which is included in orx's source package, [[https://​bitbucket.org/​orx/​orx/​src/​2de6026f32be/​code/​plugins/​Demo/​orxBounce.c|source]] and [[https://​bitbucket.org/​orx/​orx/​src/​2de6026f32be/​code/​bin/​BounceAlt.ini|config]].+There'​s a simple sine wave distortion example that you can see in the bounce demo which is included in orx's source package, [[https://​bitbucket.org/​orx/​orx/​src/​default/​code/​plugins/​Demo/​orxBounce.c|source]] and [[https://​bitbucket.org/​orx/​orx/​src/​default/​code/​bin/​BounceAlt.ini|config]].
  
 ===== Resources ===== ===== Resources =====
  
-Source code: [[https://​bitbucket.org/​orx/​orx/​src/​2de6026f32be/​tutorial/​src/​11_Spawner.c|11_Spawner.c]]+Source code: [[https://​bitbucket.org/​orx/​orx/​src/​default/​tutorial/​src/​11_Spawner.c|11_Spawner.c]]
  
-Config file: [[https://​bitbucket.org/​orx/​orx/​src/​2de6026f32be/​tutorial/​bin/​11_Spawner.ini|11_Spawner.ini]]+Config file: [[https://​bitbucket.org/​orx/​orx/​src/​default/​tutorial/​bin/​11_Spawner.ini|11_Spawner.ini]]
en/tutorials/spawner.1446086047.txt.gz · Last modified: 2017/05/30 07:50 (3 years ago) (external edit)