__
What this tutorial does
This tutorial will draw a compass and a sundial on the screen.
Can't see the image? Click here.
__
Code
Place this in GuiIngame.java or wherever you keep your in-game rendering code.
Spoiler (Click to Hide)
Can't see the image? Click here
I hoped I explained the code well. The parameters for this function are: drawItemSprite(x position of the item, y position of the item, item id).
To actually render the watch and sundial, put this code wherever you render the in-game GUI.
PHP Code:
drawItemSprite(10, 10, 345);drawItemSprite(27, 14, 347);
__
Hope I helped you out ;)
Oi, Thanks alot bro!!!
ReplyDelete