Cool Monkey LLC
  • Docs
  • FAQ
  • Contact
  • Download
Documentation
  • Scroller2d
  • Character
Structure

Character

A structure representing all the properties and types needed to create the specific friend or enemy character.

Declaration

struct Character

Overview

Use the Character struct to define each object to be used by the Scroller2d engine or your own custom implementation.

Topics

Initializers

init()
init(from: any Decoder) throws

Instance Properties

var actions: Actions?
var allowedTimesToHit: Int?
var animation: AnimationProperty?
var characterType: String?
var collisionMasks: CollisionDetection?
var devices: [DeviceProperties]?
var elementName: String?
var id: UUID?
An autogenerated unique identifier.
var image: String?
var imageDirection: String?
var imageType: String?
var isDynamic: Bool?
var isVisible: Bool?
var objectClassType: String?
var originalCharacterPosition: String?
var physics: PhysicsProperty?
var projectiles: [ProjectileProperties]?
var sceneObjectType: String?
var size: String?
var soundEffects: [GameSound]?
var targetDistances: TargetDistances?
var useGravity: Bool?
var usePrecision: Bool?

Default Implementations

  Reflectable Implementations

See Also

Characters and Obstacles

struct Obstacle
A structure representing all the properties and types needed to create the specific obstacle.


  • Changelog
  • contact
  • Search
Scroller2d