Skip to content

Comments

feat: new_map centers automatically control point on negative coords#55

Open
AzazelN28 wants to merge 1 commit intovii1:masterfrom
AzazelN28:feat-new_map-auto-center
Open

feat: new_map centers automatically control point on negative coords#55
AzazelN28 wants to merge 1 commit intovii1:masterfrom
AzazelN28:feat-new_map-auto-center

Conversation

@AzazelN28
Copy link
Collaborator

Un pequeño programilla para probar que funciona la feature:

program feat_new_map_center;
private
    int cx, cy;
begin
    graph = new_map(32, 32, -1, -1, 0);
    get_point(file, graph, 0, offset cx, offset cy);
    assert(cx == 16, "Punto de control inicial en el centro");
    assert(cy == 16, "Punto de control inicial en el centro");
    exit("Ok", 0);
end

function assert(condition, message)
begin
  if (!condition)
    exit(message, 1);
  end
  return(0);
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant