wosn do los
This commit is contained in:
parent
04ef8a872d
commit
43390fe7ce
5 changed files with 32 additions and 10 deletions
|
|
@ -1,13 +1,19 @@
|
|||
let obstacle: Obstacle;
|
||||
|
||||
function setup() {
|
||||
createCanvas(400, 400)
|
||||
background(187)
|
||||
line(0,0, 400,400)
|
||||
|
||||
obstacle = new Obstacle(new Pipe(new Position(width, 0), 20, 50, 0), new Pipe(new Position(width, 300), 20, 50, 0))
|
||||
}
|
||||
|
||||
function draw() {
|
||||
|
||||
background(187)
|
||||
// obstacle.draw()
|
||||
// obstacle.update()
|
||||
}
|
||||
|
||||
function keyPressed() {
|
||||
|
||||
}
|
||||
//
|
||||
// function keyPressed() {
|
||||
//
|
||||
// }
|
||||
Loading…
Add table
Add a link
Reference in a new issue