-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevlog
58 lines (43 loc) · 1.18 KB
/
devlog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//1) Examine collisions, see if it needs to be adjusted
1) Correct physics a little, if one object collides with another going in the same direction one should bounce and the other should continue
2) Score and lives
3) Bullet sprites
4) add asteroids
5) Chaos dimension power up
6) enemy types and splittinh
7) An enemy that fires slow bullets at you
8) add music + sfx
9) menu screen
X) add database for high scores (Is this possible without hosting a server somewhere?)
a = function () {
this.mofongo = "shit"
}
a.prototype.mofongoSetter = function (x) {
this.mofongo = x
}
b = function () {
this.mofo = "fuck"
}
b.prototype = new a();
c = new b();
d = new b();
//////////////////////////////////////
function Animal (name) {
this.name = name;
};
Animal.prototype.sayHello = function () {
console.log("Hello, my name is " + this.name);
};
function Dog (name) {
Animal.call(this, name)
};
// Hey wait, doesn't Animal need a name?
Dog.prototype = new Animal();
Dog.prototype.bark = function () {
console.log("Bark!");
};
// We're not even going to run `Animal`'s constructor, so why bother
// passing the name?
var dog1 = new Dog("James");
// `this.name` is `undefined`
dog1.sayHello();