public Cursor() { TextureManager tm = Globals.tm; go = tm.find_texture("go"); look = tm.find_texture("look"); grab = tm.find_texture("grab"); talk = tm.find_texture("talk"); position.X = 640; position.Y = 360; position.Width = go.Width; position.Height = go.Height; }
public CutScene(IState return_state, LoadAction load_action) { TextureManager tm = Globals.tm; this.return_state = return_state; this.load_action = load_action; this.tm = tm; white_dot = tm.find_texture("white_dot"); }
public DialogueOptions() { this.font = Fonts.DialogueItemFont; TextureManager tm = Globals.tm; bubble_top = tm.find_texture("bubble_top"); bubble_mid = tm.find_texture("bubble_item"); bubble_bottom = tm.find_texture("bubble_bottom"); selector = tm.find_texture("arrow"); next_item_pos = new Vector2(); tail_pos = new Vector2(); next_item_pos.X = x; next_item_pos.Y = y + bubble_top.Height; tail_pos.X = x; tail_pos.Y = next_item_pos.Y; }
public CutScene(IState return_state, LoadAction load_action, DialogueOptions dialogue_options) { TextureManager tm = Globals.tm; this.return_state = return_state; this.load_action = load_action; this.tm = tm; this.dialogue_options = dialogue_options; white_dot = tm.find_texture("white_dot"); }
public Character(Type type, Point position) { TextureManager tm = Globals.tm; string texture_name = find_texture_name(type); texture = tm.find_texture(texture_name); this.position = new Rectangle(); this.position.X = position.X; this.position.Y = position.Y; this.position.Width = texture.Width; this.position.Height = texture.Height; set_animations(tm); }
public void add_frame(string name, TextureManager tm) { frames.Add(tm.find_texture(name)); }
public Item(TextureManager tm, Type type) { string name = get_texture_name(type); texture = tm.find_texture(name); }