improving default variable names

This commit is contained in:
darzu 2020-04-06 17:24:09 -07:00
Родитель 36c4ed71db
Коммит c2d411940b
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -214,6 +214,7 @@ namespace tilemap {
//% block="tile location $direction from location $location"
//% direction.shadow=direction_editor
//% location.shadow=variables_get
//% location.defl=location
//% group="Tiles" weight=40 blockGap=8
export function locationInDirection(location: tiles.Location, direction: number) {
return tiles.getTileLocation(
@ -322,6 +323,7 @@ namespace tilemap {
*/
//% block="$location column"
//% location.shadow=variables_get
//% location.defl=location
//% group="Tilemap" weight=50 blockGap=8
export function locationColumn(location: tiles.Location): number {
return screenCoordinateToTile(location.x);
@ -332,6 +334,7 @@ namespace tilemap {
*/
//% block="$location row"
//% location.shadow=variables_get
//% location.defl=location
//% group="Tilemap" weight=40 blockGap=8
export function locationRow(location: tiles.Location): number {
return screenCoordinateToTile(location.y);