A WIP Roguelike game by Adekto, VonBednat, Trelemar and Wuuff made for CGAJam in spring 2017
Dependencies: PokittoLib
Fork of Arcade by
classes.cpp@10:590a26231903, 2017-10-19 (annotated)
- Committer:
- Pokitto
- Date:
- Thu Oct 19 08:43:47 2017 +0000
- Revision:
- 10:590a26231903
- Child:
- 15:67fb7b0c1149
Initial Commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pokitto | 10:590a26231903 | 1 | //#include "sprites.h" |
Pokitto | 10:590a26231903 | 2 | class Ent { |
Pokitto | 10:590a26231903 | 3 | public: |
Pokitto | 10:590a26231903 | 4 | int x,y; |
Pokitto | 10:590a26231903 | 5 | int id; |
Pokitto | 10:590a26231903 | 6 | Ent(int xx,int yy) {x=xx; y=yy;}; |
Pokitto | 10:590a26231903 | 7 | void draw(); |
Pokitto | 10:590a26231903 | 8 | Ent() { |
Pokitto | 10:590a26231903 | 9 | id=11; |
Pokitto | 10:590a26231903 | 10 | } |
Pokitto | 10:590a26231903 | 11 | }; |
Pokitto | 10:590a26231903 | 12 | |
Pokitto | 10:590a26231903 | 13 | |
Pokitto | 10:590a26231903 | 14 | class Goblin : public Ent { |
Pokitto | 10:590a26231903 | 15 | public: |
Pokitto | 10:590a26231903 | 16 | |
Pokitto | 10:590a26231903 | 17 | int id; |
Pokitto | 10:590a26231903 | 18 | Goblin() { |
Pokitto | 10:590a26231903 | 19 | id=11; |
Pokitto | 10:590a26231903 | 20 | } |
Pokitto | 10:590a26231903 | 21 | |
Pokitto | 10:590a26231903 | 22 | }; |
Pokitto | 10:590a26231903 | 23 |