public MapEditor(gfx.Graphics graphics) { this.prevCursorName = "cursor"; this.signal = ""; this.graphics = graphics; this.path = ""; process = new Process(); initState = new prim.InitStateMachine(); process.StartInfo.FileName = Directory.GetCurrentDirectory() + "/res/editor/HJCompanion.exe"; cursors = new Dictionary <string, gfx.Cursor>(); cursors.Add("locked", new gfx.Cursor(graphics, "locked")); cursors.Add("edit", new gfx.Cursor(graphics, "edit")); cursors.Add("remove", new gfx.Cursor(graphics, "remove")); cursors.Add("move", new gfx.Cursor(graphics, "move")); cursors.Add("details", new gfx.Cursor(graphics, "details")); cursors.Add("shape", new gfx.Cursor(graphics, "shape")); defaultCursor = new gfx.Cursor(graphics); cursor = defaultCursor; mode = "cursor"; prevMode = ""; map = new gfx.GameMap(graphics); scroll = new prim.Point(0, 0); scrollVelocity = 0.025f; }
public CollisionDemo(gfx.Graphics graphics) { this.graphics = graphics; initState = new prim.InitStateMachine(); map = new gfx.GameMap(graphics); map.LoadMap(graphics, "res/maps/CollisionDemo.hjm"); map.AddControlEntity(graphics, "test"); }