프로퍼티 | 타입 | 설명 | |
---|---|---|---|
currentPlatform | System.Platform | ||
drops | List |
||
fontSmall | |||
obstacles | List |
||
particles | List |
||
platforms | List |
||
playerControls | List |
||
players | List |
||
rand | |||
smear | Microsoft.Xna.Framework.Graphics.Texture2D | ||
whiteRect | Microsoft.Xna.Framework.Graphics.Texture2D |
메소드 | 설명 | |
---|---|---|
Game1 ( ) : System | ||
ToggleButton ( PlayerIndex playerIndex, Buttons button ) : bool | ||
ToggleKey ( Keys key ) : bool |
메소드 | 설명 | |
---|---|---|
Draw ( |
This is called when the game should draw itself.
|
|
Initialize ( ) : void |
Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
|
|
LoadContent ( ) : void |
LoadContent will be called once per game and is the place to load all of your content.
|
|
UnloadContent ( ) : void |
UnloadContent will be called once per game and is the place to unload game-specific content.
|
|
Update ( |
Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
|
메소드 | 설명 | |
---|---|---|
CheckPlayer ( float deltaTime ) : void |
Updates player and checks if the user is off the level, and resets the player if it is. Also updates the camera position. Basically, the non-collision update for the game
|
|
DrawBackground ( Vector2 averagePos ) : void | ||
DrawCharacter ( ) : void | ||
DrawGame ( double deltaTime ) : void | ||
DrawRect ( Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale ) : void |
Draws a rectangle. Make sure this is called AFTER spriteBatch.Begin()
|
|
DrawScene ( double deltaTime, Vector2 averagePos ) : void | ||
HandleEditLevel ( ) : void |
Handles all keypresses for editing a level. These are the controls: - Press 'E' to enter edit level mode. - Shift-drag to select a platform (move your mouse slowly) - Backspace to delete selected platform - Alt-drag to modify currently selected platform - Tap left, right, up, or down to move selected platform - Ctrl-drag to create a new platform - Ctrl-S to save your current level as a new level in the Levels folder - Ctrl-O to open the last level -- NOTE, this will override ANY changes you made, so be careful - + and - zoom in and out - Drag mouse with nothing held down to pan camera - Press f when a floor is selected to change its solid state
|
|
HandleInput ( float deltaTime ) : void |
Handles all keyboard and gamepad input for the game. Moves all players and recalculates wobble-screen.
|
|
HandlePlayerInput ( Player player, int controller, float deltaTime ) : void |
Handles input for a single player for given input keys
|
|
LoadBackground ( int loadLevel ) : void |
Loads a level and stores it into background
|
|
LoadLevel ( int loadLevel ) : void | ||
LoadReplay ( int replay ) : void | ||
LoadSettings ( ) : void | ||
LoadUI ( Menu type ) : void | ||
ParseButtons ( ) : void | ||
ProjectPointToLine ( Vector2 start, Vector2 end, Vector2 point ) : float |
Projects a point onto a line and returns the progress along that line segment.
|
|
Raycast ( Vector2 start, Vector2 dir ) : float |
Casts a ray from start in the given direction, returning the number of "dir" vector it takes to get to the closest contact
|
|
Reset ( ) : void | ||
SaveLevel ( int saveLevel ) : void | ||
SaveSettings ( ) : void | ||
StartGame ( ) : void | ||
UpdateMenu ( double elapsedTime ) : void | ||
graphics_DeviceCreated ( object sender, |
||
graphics_PreparingDeviceSettings ( object sender, Microsoft.Xna.Framework.PreparingDeviceSettingsEventArgs e ) : void | ||
wobbleScreen ( float amplifier ) : void |
protected Draw ( |
||
gameTime | Provides a snapshot of timing values. | |
리턴 | void |
public ToggleButton ( PlayerIndex playerIndex, Buttons button ) : bool | ||
playerIndex | PlayerIndex | |
button | Buttons | |
리턴 | bool |
protected Update ( |
||
gameTime | Provides a snapshot of timing values. | |
리턴 | void |
public SpriteFont,Microsoft.Xna.Framework.Graphics fontSmall | ||
리턴 |
public static Texture2D,Microsoft.Xna.Framework.Graphics smear | ||
리턴 | Microsoft.Xna.Framework.Graphics.Texture2D |