public void draw(SBWrapper wrapper) { List <Entity> entities = new List <Entity>(); entities.Add(cursor); entities.AddRange(map.npcs); camera.draw(wrapper, entities); ui.draw(wrapper); }
public void draw(SBWrapper wrapper) { wrapper.draw(bg); ui.draw(wrapper); if (editing) { editor.draw(wrapper); } }
public void draw(SBWrapper wrapper) { wrapper.drawRectangle(new Vector2(Game1.INTERNAL_WIDTH, Game1.INTERNAL_HEIGHT), map.color); if (editing) { editor.draw(wrapper); } else { camera.draw(wrapper, entities); ui.draw(wrapper); } }
public void draw(SBWrapper wrapper) { for (int i = 0; i < layers.Count; i++) { wrapper.draw(layers[i], Vector2.Zero, new Rectangle((int)parallax[i], 0, Game1.INTERNAL_WIDTH, Game1.INTERNAL_HEIGHT)); } //wrapper.draw(background); //wrapper.draw(foreground, Vector2.Zero, new Rectangle((int)x, 0, Game1.INTERNAL_WIDTH, Game1.INTERNAL_HEIGHT)); SBWrapper relative = new SBWrapper(wrapper, new Vector2(-(int)x, 0)); locations.ForEach(l => l.draw(relative)); player.draw(relative); if (editing) { editor.draw(wrapper); } else { ui.draw(wrapper); } }
public void draw(SBWrapper wrapper) { cursor.draw(new SBWrapper(wrapper, new Vector2(-(int)map.x, 0)), cursor.getLocation()); ui.draw(wrapper); }
public void draw(SBWrapper wrapper) { ui.draw(wrapper); }