Last change
on this file since 90838a1 was 2e798d9, checked in by sdanshinwrt <devnull@…>, 14 years ago |
-A simple 6x8 map now gets drawn to the screen, with green and blue tiles
-Added the bin folder to .hgignore
|
-
Property mode
set to
100644
|
File size:
311 bytes
|
Rev | Line | |
---|
[2e798d9] | 1 | package com.example.advancewars;
|
---|
| 2 |
|
---|
| 3 | import android.graphics.Canvas;
|
---|
| 4 | import android.graphics.Color;
|
---|
| 5 | import android.graphics.Paint;
|
---|
| 6 |
|
---|
| 7 | public class Tile {
|
---|
| 8 | private Paint p;
|
---|
| 9 |
|
---|
| 10 | public Tile(Paint p) {
|
---|
| 11 | this.p = p;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | public void draw(Canvas c, int x, int y) {
|
---|
| 15 | c.drawRect(x, y, x+50, y+50, p);
|
---|
| 16 | }
|
---|
| 17 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.