source: advance-wars/src/com/example/advancewars/Tile.java@ 2e798d9

Last change on this file since 2e798d9 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
Line 
1package com.example.advancewars;
2
3import android.graphics.Canvas;
4import android.graphics.Color;
5import android.graphics.Paint;
6
7public 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.