Guest User

Sanae gamemode script - main

a guest
Sep 9th, 2010
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using SFML.Audio;
  7. using SFML.Graphics;
  8. using SFML.Window;
  9. using DanmakufuDotNet;
  10.  
  11. public class TemplateGamemode : Gamemode
  12. {
  13.     public TemplateGamemode() : base("TemplateGamemode")
  14.     {
  15.         // The constructor requires no parameters
  16.         // The base constructors requires a string parameter that must be IDENTICAL to class name and file name
  17.     }
  18.    
  19.     public override void Initialize()
  20.     {
  21.         Game.Playfield = new Playfield(Game, 32, 16, 417, 465); // Creates a playfield(X, Y, Width, Height)
  22.         Game.Player.Initialize(Game); // Initialize the default player
  23.         Game.Manager.AddEntity(Game.Player); // Adds the default player to the game manager
  24.         Game.Playfield.Border = new Sprite(ResourcesImages["Border"]);
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment