mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Open source
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
function on_draw()
|
||||
{
|
||||
clear_drawings();
|
||||
for(var id in parent.entities)
|
||||
{
|
||||
var player=parent.entities[id];
|
||||
if(!parent.is_player(player)) continue;
|
||||
if(player.target)
|
||||
{
|
||||
var target=parent.entities[player.target];
|
||||
if(target)
|
||||
{
|
||||
// game_log(target.name);
|
||||
draw_line(player.real_x,player.real_y,target.real_x,target.real_y);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user