예제 #1
0
파일: Entity.cs 프로젝트: remy22/FirstGame
        public Entity(string asset,Vector2 pos,int frameWidth,int frameHeight,int offset,bool solid,bool active,Game1 game)
            : base(asset,pos,frameWidth,frameHeight,offset)
        {
            Solid=solid;
            Active=active;

            Vspeed=0;
            Hspeed=0;

            Grav=0;
            Fric=0;

            Bbox=new Hitbox(Pos,frameWidth,frameHeight,this);

            currentGame=game;
        }
예제 #2
0
파일: Entity.cs 프로젝트: remy22/FirstGame
        public Entity(string asset,Vector2 pos,int frameWidth,int frameHeight,int offset,Game1 game)
            : base(asset,pos,frameWidth,frameHeight,offset)
        {
            Solid=false;
            Active=true;

            Vspeed=0;
            Hspeed=0;
            maxVspeed=(float)frameHeight*2;

            Grav=0;
            Fric=0;

            Bbox=new Hitbox(Pos,frameWidth,frameHeight,this);

            currentGame=game;
        }