Ejemplo n.º 1
0
        public Sprite(Beatup game, string atlas_name, string sheet_name, string sprite_name)
        {
            atlas = game.Content.Load<TextureAtlas>(atlas_name);
            region = atlas.GetRegion(sprite_name);

            sheet = game.Content.Load<Texture2D>(sheet_name);

            this.position.X = 0;
            this.position.Y = 0;

            flippedX = false;
            rotation = 0;

            scale_x = 4.0f;
            scale_y = 4.0f;
        }
Ejemplo n.º 2
0
        public FaceStage(Beatup beatup, //FaceStageType type,
                string neutral_path, string left_path,
                string right_path, string hit_path)
        {
            this.NeutralSprite = new Sprite(beatup, "face_xml", "facepng", neutral_path);
            this.NeutralSprite.scale_x = 8.0f;
            this.NeutralSprite.scale_y = 8.0f;
            this.LeftSprite = new Sprite(beatup, "face_xml", "facepng", left_path);
            this.RightSprite = new Sprite(beatup, "face_xml", "facepng", right_path);

            this.HitSprite = new Sprite(beatup, "face_xml", "facepng", hit_path);
        }
Ejemplo n.º 3
0
 public Face(Beatup beatup)
 {
     this.healthy_stage = new FaceStage(beatup, "f_face_neutral.png", "f_look_left.png", "f_look_right.png", "f_gritted_teeth.png");
     this.hurt_stage = new FaceStage(beatup, "f_teeth.png", "f_look_left.png", "f_look_right.png", "f_teeth_side.png");
     this.wounded_stage = new FaceStage(beatup, "f_teeth_one.png", "f_look_left_teeth.png", "f_look_right_teeth.png", "f_teeth_side_one.png");
     this.dead_stage = new FaceStage(beatup, "f_face_neutral_eye.png", "f_face_neutral_eye.png", "f_look_left_eye.png", "f_look_right_eye.png");
 }