Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos_y = current_actual_position.y + delta.y
- local pos_x = current_actual_position.x - delta.x
- local alfa = tileheight/tilewidth --coefficiente angolare del fascio di rette parallele
- --parametri dei fasci di rette che identificano la casella dei dati della mappa in cui si trova il giocatore
- local j = (2/tileheight)*(pos_y + tileheight/2 - alfa*pos_x) --column
- local k = (2/tileheight)*(pos_y - tileheight/2 + alfa*pos_x) --row
- print(k, j) --test
- --border settings for isometric tiles
- if current_location.data[k][j] ~=0 then
- delta = vector(0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement