Honeycombs: Difference between revisions
Content added Content deleted
(Ada version) |
(→{{header|Go}}: Updated so now works properly with latest version of raylib-go.) |
||
Line 1,224: | Line 1,224: | ||
} |
} |
||
return false |
return false |
||
} |
|||
func DrawLineStrip(points []rl.Vector2, pointsCount int32, color rl.Color) { |
|||
for i := int32(0); i < pointsCount - 1; i++ { |
|||
rl.DrawLineV(points[i], points[i+1], color) |
|||
} |
|||
} |
} |
||
Line 1,265: | Line 1,271: | ||
ctr.X -= r |
ctr.X -= r |
||
index := -1 |
index := -1 |
||
if key := rl.GetKeyPressed(); key |
if key := rl.GetKeyPressed(); key > 0 { |
||
if key >= 97 && key <= 122 { |
if key >= 97 && key <= 122 { |
||
key -= 32 |
key -= 32 |
||
Line 1,297: | Line 1,303: | ||
} |
} |
||
rl.DrawText(string(c.letter), int32(c.x)-5, int32(c.y)-10, 32, rl.Black) |
rl.DrawText(string(c.letter), int32(c.x)-5, int32(c.y)-10, 32, rl.Black) |
||
DrawLineStrip(pts[i], 7, rl.Black) |
|||
rl.DrawText(sChosen, 100, 525, 24, rl.Black) |
rl.DrawText(sChosen, 100, 525, 24, rl.Black) |
||
rl.DrawText(lChosen, 100, 565, 24, rl.Black) |
rl.DrawText(lChosen, 100, 565, 24, rl.Black) |