describe abstract a bit more

pull/1/head
Evan Hemsley 2019-06-09 19:14:27 -07:00
parent 5f23dd0761
commit 5b5ea00ebc
2 changed files with 8 additions and 0 deletions

View File

@ -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:
```ts

View File

@ -0,0 +1,6 @@
---
title: "Win_condition"
date: 2019-06-09T19:10:15-07:00
draft: true
---