All pastes #71733 Raw Edit

Mine

public text v1 · immutable
#71733 ·published 2006-06-26 02:15 UTC
rendered paste body
        public void Activity()
        {
            // this code will be called once per frame.
            if (inpMan.KeyDown(Key.Up))
                
                    myFirstSprite.yVelocity = 5;

            else if (inpMan.KeyDown(Key.Down))
            {
                if (!Collisions.rectCollisionAllowanceMove(myFirstSprite, gS))
                    myFirstSprite.yVelocity = -5;
            }
            else

                myFirstSprite.yVelocity = 0;



            if (inpMan.KeyDown(Key.Right))

                myFirstSprite.xVelocity = 5;

            else if (inpMan.KeyDown(Key.Left))

                myFirstSprite.xVelocity = -5;

            else

                myFirstSprite.xVelocity = 0;

            if (inpMan.KeyPress(Key.Space))
            {
                jump();

                    
            
            }
 
        }