Example #1
0
        // ================================================================ //

        public override void            create(chrBehaviorEnemy behavior, ActionBase.DescBase desc_base = null)
        {
            base.create(behavior, desc_base);

            this.melee_attack = new MeleeAttackAction();
            this.melee_attack.create(this.behavior);

            this.spring        = new ipModule.Spring();
            this.spring.k      = 300.0f;
            this.spring.reduce = 0.90f;

            // 스폰 → 착지 시에 바운드하지 않게 합니다.
            this.behavior.basic_action.jump.bounciness.y = 0.0f;
        }
Example #2
0
	// ================================================================ //

	public override void		create(chrBehaviorEnemy behavior, ActionBase.DescBase desc_base = null)
	{
		base.create(behavior, desc_base);

		this.melee_attack = new MeleeAttackAction();
		this.melee_attack.create(this.behavior);

		this.spring = new ipModule.Spring();
		this.spring.k      = 300.0f;
		this.spring.reduce = 0.90f;

		// 스폰 → 착지 시에 바운드하지 않게 합니다.
		this.behavior.basic_action.jump.bounciness.y = 0.0f;
	}
Example #3
0
        // ================================================================ //

        public void             create(Texture moji_texture, Texture moji_mae_texture)
        {
            this.moji_texture      = moji_texture;
            this.moji_mae_texture  = moji_mae_texture;
            this.moji_texture_size = new Vector2(this.moji_texture.width, this.moji_texture.height);

            this.sprite = Sprite2DRoot.get().createSprite(this.moji_mae_texture, true);
            this.sprite.setSize(Vector2.one * 64.0f);

            this.fcurve = new ipModule.FCurve();
            this.fcurve.setSlopeAngle(70.0f, 5.0f);
            this.fcurve.setDuration(0.3f);

            this.spring        = new ipModule.Spring();
            this.spring.k      = 100.0f;
            this.spring.reduce = 0.90f;
        }
Example #4
0
	// ================================================================ //

	public void		create(Texture moji_texture, Texture moji_mae_texture)
	{
		this.moji_texture      = moji_texture;
		this.moji_mae_texture  = moji_mae_texture;
		this.moji_texture_size = new Vector2(this.moji_texture.width, this.moji_texture.height);

		this.sprite = Sprite2DRoot.get().createSprite(this.moji_mae_texture, true);
		this.sprite.setSize(Vector2.one*64.0f);

		this.fcurve = new ipModule.FCurve();
		this.fcurve.setSlopeAngle(70.0f, 5.0f);
		this.fcurve.setDuration(0.3f);

		this.spring = new ipModule.Spring();
		this.spring.k      = 100.0f;
		this.spring.reduce = 0.90f;
	}