sand Registered User |
Quote
|
2020-11-10 19:54:33 |
|
Hi what function do use to create a 2d overlay in javascript?
|
frostline-et Registered User |
Quote
|
2020-11-11 15:15:49 |
|
This is the closest I could get to it:
ccbDrawColoredRectangle(0xff0000ff, 0, 0, 5, 5);
This creates a blue 2d rectangle in the lower left corner of the screen, 5 units tall, 5 units wide.
Syntax: First parameter is the hex color code. The next two parameters are its position onscreen. The last two parameters are the size.
|
sand Registered User |
Quote
|
2020-11-12 17:50:21 |
|
Thank you
|