Javascript Canvas Tag Unity.

Hey guys,

It’s great to be back on Unity again. :slight_smile:

I’ve been programming websites for the past few months and have learned javascript inside and out (as well as php mysql html and css).

The first article I came across for learning javascript, was this: http://marakana.com/s/post/1174/tutorial_html5_gaming_basics

That article is a very, very good tutorial on js OOP programming (I highly recommend it). Notice the ‘canvas’ tag, and drawing on the canvas with arrays, colors and tile sizes.

Can something like this be done in Unity’s javascript and mono develop’s framework?

How do I tile my game with arrays in Unity?

I have enjoyed web programing very much. I love programing. And it’s soo good to be back on Unity!

Thank you so much for reading, can’t wait for your replies!

Cheers and Happy New Year!

Mithos

Javascript in Unity is not really anything like web Javascript, nor is there anything remotely like canvas tags. You can use separate GameObjects for each tile if there aren’t too many, but it’s more efficient to use the Mesh class to construct tiles in a combined mesh. There are several packages on the Asset Store for tile-based games if you don’t want to do the hard work yourself.