Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- locks = {}
- locks[[1, 2]] = [nil, nil, true, nil, true, nil, false, nil, true]
- client_x = 1
- client_y = 2
- client_direction = 2
- p "bloqueado" if locks.has_key?([client_x, client_y]) && locks[[client_x, client_y]][client_direction]
Advertisement
Add Comment
Please, Sign In to add comment