Skip to content

Commit

Permalink
Get Hex Grid building with raylib master branch
Browse files Browse the repository at this point in the history
I think raysan5/raylib#3181 might be responsible
for the altered behavior of DrawPoly and DrawPolyLines.
  • Loading branch information
ashn-dot-dev committed Aug 12, 2023
1 parent 5bc65cf commit 7029034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hex-grid/main.sunder
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ func hex_to_point(hex: cube, radius: f32) Vector2 {

func draw_hexagon(center: Vector2, radius: f32, color: Color) void {
let SIDES: sint = 6;
let ANGLE: f32 = 90.0; # flat-top orientation
let ANGLE: f32 = 0.0; # flat-top orientation
DrawPoly(center, SIDES, radius, ANGLE, color);
}

func draw_hexagon_outline(center: Vector2, radius: f32, color: Color) void {
let SIDES: sint = 6;
let ANGLE: f32 = 90.0; # flat-top orientation
let ANGLE: f32 = 0.0; # flat-top orientation
DrawPolyLinesEx(center, SIDES, radius, ANGLE, radius / 8.0, color);
}

Expand Down

0 comments on commit 7029034

Please sign in to comment.