Skip to content

while (true) { }

notes from a developer, tutorials, how-to, ideas

Tag: map

Posted on 3 January 20213 January 2021

Unity3D – Snap object in editor grid

Welcome back,

I want to share a way to draw in Unity3d editor a cubes based grid that allow you to snap objects in the same position and make a cube grid, like this:

Continue reading “Unity3D – Snap object in editor grid”
Posted on 7 December 202016 November 2020

Swift – UIView gradient extension

Sometimes can be useful to add a gradient on a UIView. This simple UIView extension helps you “coloryze” your screen.

Let see how to use and how is implemented.

Continue reading “Swift – UIView gradient extension”
Posted on 8 June 201831 January 2022

Swift – Calculate Levenshtein distance

Ciao,

here a conversion on an old tutorial in Swift about the Levenshtein distance of two strings.

Continue reading “Swift – Calculate Levenshtein distance”
Posted on 1 June 20179 March 2022

Unity3D – Draw hexagons map in canvas

Today, a code extract from one of my 3d games… (Viruz!, download here), an hexagons map.

grid_hex

Example of hexagons map:

Continue reading “Unity3D – Draw hexagons map in canvas”

Recent Posts

  • Swift – Simple full screen loader 11 August 2022
  • macOS – Disable microphone while typing 11 April 2022
  • iOS – Secure app sensitive information 25 March 2022
  • DIY: Hack Weward for iOS 8 March 2022
  • Swift – Circular button bubbles with gravity 26 November 2021
  • Swift – Have fun with GravityBehavior and DynamicAnimator 19 November 2021

Archives

Proudly powered by WordPress