Skip to content
Ahmed Abdel Samea Khalifa edited this page Nov 26, 2016 · 9 revisions

This page list all the remaining types of Sprite types. Sprites can be divided into different groups according to its functionality.

List of Other Sprite Types:

Immovable:

Description: Its a static object that can't be affected with any kind of movement.

Passive:

Description: It is same as Immovable but it can move.

Flicker:

Description: It is a passive object that is destroyed automatically after certain number of updates.
Properties:

  • limit: number of updates before the flicker object is destroyed.

OrientedFlicker:

Description: It is same as Flicker but it hold a direction with it.
Properties:

  • limit: number of updates before the flicker object is destroyed.

Missile:

Description: It is a special Passive sprite which moves in a certain direction.

RandomMissile:

Description: It is a special Missile sprite where the direction is selected randomly.


RandomNPC:

Description: Every update, it changes its direction randomly and moves in that direction.

Chaser:

Description: It chases a certain game sprite.
Properties:

  • stype: the sprite name for the chased sprite.

Fleeing:

Description: Opposite to Chaser, it flees from a certain game sprite.
Properties:

  • stype: The sprite name it tries to flee from it.

AlternateChaser:

Description: Its a mixture between Chaser and Fleeing where it chase a certain sprite and flee from another sprite. For example: Ghosts in PacMan, it chases normal player and flees from him when he has a power pill.
Properties:

  • stype1: the sprite name for the chased sprite.
  • stype2: the sprite name it tries to flee from it.

RandomAltChaser:

Description: It is a special kind of AlternateChaser. Based on a defined probability it moves randomly while rest of the time same as AlternateChaser.
Properties:

  • stype1: the sprite name for the chased sprite.
  • stype2: the sprite name it tries to flee from it.
  • prob: the probability of moving either randomly or like AlternateChaser.

SpawnPoint:

Description: It produces other sprites for using a fixed or random rate.
Properties:

  • stype: The sprite name for the spawned sprite.
  • total: The maximum number of sprite it can produce then kill itself (Default is 0 which means infinite)
  • prob: The probability at each update the sprite is spawned.
  • spawnorientation: The direction set to the spawned sprite (Default is NONE which means the spawned object will take same orientation of the parent).

Bomber:

Description: It is a special type of SpawnPoint where it moves to the right (by default).
Properties:

  • stype: The sprite name for the spawned sprite.
  • total: The maximum number of sprite it can produce then kill itself (Default is 0 which means infinite)
  • prob: The probability at each update the sprite is spawned.
  • spawnorientation: The direction set to the spawned sprite (Default is NONE which means the spawned object will take same orientation of the parent).

RandomBomber:

Description: It is special kind of Bomber where it moves randomly every update step.
Properties:

  • stype: The sprite name for the spawned sprite.
  • total: The maximum number of sprite it can produce then kill itself (Default is 0 which means infinite)
  • prob: The probability at each update the sprite is spawned.
  • spawnorientation: The direction set to the spawned sprite (Default is NONE which means the spawned object will take same orientation of the parent).

BomberRandomMissile:

Description: It is special kind of Bomber which spawns one object at random out of a set of possible spawn types.
Properties:

  • stypeMissile: The sprite names of the spawn types, separated by a comma (e.g. stypeMissile=red,green,yellow).
  • updateItype(int itype, int newtype): Method to update one of the spawn types (itype) with a new type (newtype).
  • total: The maximum number of sprite it can produce then kill itself (Default is 0 which means infinite)
  • prob: The probability at each update that a sprite is spawned.
  • spawnorientation: The direction set to the spawned sprite (Default is NONE which means the spawned object will take same orientation of the parent).

Spreader:

Description: It is a special sprite where it spawns a specific sprite in the four surrounding directions based on a certain probability.
Properties:

  • stype: The sprite name for the spawned sprite (Default is null which clones itself).
  • spreadprob: The probability a sprite is spawned in each direction.

Door:

Description: A special Immovable sprite where the VGDL engine label it as a portal.

Portal:

Description: A special Door sprite where it saves a sprite name in it which can be used in the InteractionSet Section.
Properties:

  • stype: A sprite name that can be used in the InteractionSet.

Resource:

Description: A sprite that define a certain resource and changes it using a certain amount when collected.
Properties:

  • resource: The defined resource name.
  • value: The amount of resource value increased when it is collected.
  • limit: The maximum value for the resource that it can't exceed it.

Examples:

alien   > Bomber stype=bomb prob=0.01 spawnorientation=DOWN img=alien

alien is a Bomber sprite that spawn bomb sprite downwards with a probability equal to 1%.

bullet  > RandomMissile img=bullet

bullet is a RandomMissle.

gold    > Resource resource=money limit=11 img=gold

gold is a Resource sprite which changes money value held by the avatar and with maximum of 11.

exit    > Door img=goal

exit is a Door sprite.

Table of Contents:

Clone this wiki locally