Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C# games

Name: Anonymous 2013-03-24 11:55

Why can't C# be used to make games? Give me three valid reasons

Name: Anonymous 2013-03-24 16:15

>>20
Redone to use Symtatm style

Class Enemy
    : Player
    ; Vector2 distance
    ; Vector2 oldDistance
    //in contructor
    ; this.distance = 50
    ; this.oldDistance = this.distance
    //...
    public void AI (GameTime gameTime)
      {
      ; this.position += this.velocity
        //...
      ; if (this.distance.X == 0)
          {
          ; if (this.distance.Y <= 0)
              {
                //...
                //direction[0] = up, direction[1] down
              ; this.direction[1] = true
              ; this.direction[0] = false
                //Supposed to work
              ; if (this.position.Y < 455) this.velocity.Y = 1f
              ; else this.velocity = 0f
              ;
              }
            else if (this.distance.Y >= this.oldDistance.Y)
              {
                //...
              ; this.direction[0] = true
              ; this.direction[1] = false
                //Supposed to work
              ; if (this.position.Y > 0) this.velocity = -1f
              ; else this.velocity = 0f
              ;
              }
          }
      ; if (this.direction[0]) --this.distance.Y
      ; else if (this.direction[1]) ++this.distance.Y
      ;
      }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List