Author: SonicPixelation (posted 2012-10-22 07:20:01, viewed 124 times)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| Public class WireTile extends Tile{
Public Boolean powered;
Public WireTile(){
super(5);
}
Public void render(graphics g, int x, int y, int xx, int yy)
If(powered)
{
G.setColor(color.green)
}else{
G.setColor(color.yellow)
}
G.fillrect((x*32)+xx, (y*32)+yy,32,32);
}
Public void update(int delta)
{
} |
Special syntax:
- To highlight a line (yellow background), prefix it with '@@'
- To indicate that a line should be removed (red background), prefix it with '-'
- To indicate that a line should be added (green background), prefix it with '+'
- To post multiple snippets, seperate them by '~~~~'
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|