describe abstract a bit more
parent
5f23dd0761
commit
5b5ea00ebc
|
@ -18,6 +18,8 @@ export abstract class State {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Remember, _abstract_ means that the class cannot be used directly, but describes features that exist in inherited classes. So we know that anything we make that inherits from State must have a load(), update(dt), and draw() method.
|
||||||
|
|
||||||
Let's create a new folder, **game/states**, and put **game.ts** in there. Let's also make it inherit from State:
|
Let's create a new folder, **game/states**, and put **game.ts** in there. Let's also make it inherit from State:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "Win_condition"
|
||||||
|
date: 2019-06-09T19:10:15-07:00
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
Loading…
Reference in New Issue