C# 클래스 ScrollingShooter.GreenGoblin

An enemy ship that flies in a diagonal zig zag pattern. The length of the diagonal is randomly assigned when object is created.
상속: ScrollingShooter.Enemy
파일 보기 프로젝트 열기: zombiepaladin/scrolling-shooter 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void

Draw the Green Goblin ship on-screen

GreenGoblin ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : System

Creates a new instance of a Green Goblin enemy ship

ScrollWithMap ( float elapsedTime ) : void

Scrolls the object with the map

Update ( float elapsedTime ) : void

Updates the Green Goblin ship

메소드 상세

Draw() 공개 메소드

Draw the Green Goblin ship on-screen
public Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void
elapsedTime float The in-game time between the previous and current frame
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch An already initialized SpriteBatch, ready for Draw() commands
리턴 void

GreenGoblin() 공개 메소드

Creates a new instance of a Green Goblin enemy ship
public GreenGoblin ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : System
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
position Vector2 The position of the Green Goblin ship in the game world
리턴 System

ScrollWithMap() 공개 메소드

Scrolls the object with the map
public ScrollWithMap ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
리턴 void

Update() 공개 메소드

Updates the Green Goblin ship
public Update ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
리턴 void