initial add

This commit is contained in:
John Alanbrook 2023-04-28 17:47:04 +00:00
commit 4d9a78bad8
36 changed files with 368 additions and 0 deletions

11
.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
editor.ini
editor.config
*.log
yugine
tags
shaders/
data/
icons/
scripts/
fonts/
perf.*

BIN
ball.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

BIN
bigball.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
bomb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

BIN
brick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

BIN
coin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

38
config.js Normal file
View file

@ -0,0 +1,38 @@
gameobject.clone("ball", {
collider: circle2d.clone(),
img: sprite.clone(),
});
gameobject.clone("brick", {
collider: polygon2d.clone(),
char: char2d.clone({
flash: {
path: "brick.png",
frames:6,
fps:24,
loop:false
}
}),
start() {
this.char.stop();
this.flash();
this.timer = timer.make(() => {
this.flash();
this.timer.time = Math.random_range(2,10);
}, Math.random_range(2,10));
},
flash() {
this.char.play("flash");
},
stop() {
this.timer.kill();
},
});
gameobject.clone("paddle", {
collider: polygon2d.clone(),
img: sprite.clone(),
});

BIN
eyeball.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

134
game.config Normal file
View file

@ -0,0 +1,134 @@
{
"physics": {
"gravity": [
0,
-50
],
"damping": 1
},
"Collision": {
"types": {
"0": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"1": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"2": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"3": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"4": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"5": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"6": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"7": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"8": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"9": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"num": 10
}
}

1
game.info Normal file
View file

@ -0,0 +1 @@
Yugine v. 0.0.1-807496f, sys dbg.

3
game.js Normal file
View file

@ -0,0 +1,3 @@
Debug.draw_phys(true);
sim_start();
Level.loadlevel("lvl1.lvl");

BIN
health1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

BIN
health2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

BIN
health3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

BIN
health4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

BIN
health5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

61
lvl1.lvl Normal file
View file

@ -0,0 +1,61 @@
[
{
"from": "breakoutfield",
"edge2d": {
"degrees": 1
},
"_pos": [
6.123234262925839e-17,
0
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
-362.99999999999994,
51.00000000000004
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
2.9999999999999987,
52.00000000000001
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
336,
52.00000000000001
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
-196.99999999999997,
138.00000000000006
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
175,
133
],
"_angle": 0
},
{
"from": "brick",
"_pos": [
-18.00000000000003,
222
],
"_angle": 0
}
]

BIN
packedfont.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
pill1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

BIN
pill2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

BIN
pill3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

BIN
pill4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

BIN
pill5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

BIN
powerup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

BIN
powerup2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

107
proto.json Normal file
View file

@ -0,0 +1,107 @@
{
"camera2d": {
"zoom": 1,
"selectable": false,
"phys": 1,
"speed": 300,
"_zoom": 1,
"speedmult": 1,
"name": "camera2d",
"from": "gameobject"
},
"polygon2d": {
"polygon2d": {
"points": []
},
"name": "polygon2d",
"from": "gameobject"
},
"edge2d": {
"edge2d": {
"cpoints": []
},
"name": "edge2d",
"from": "gameobject"
},
"sprite": {
"sprite": {},
"name": "sprite",
"from": "gameobject"
},
"ball": {
"collider": {
"rradius": 4.39338754070273
},
"img": {
"_pos": [
-0.5,
-0.5
],
"_path": "ball.png"
},
"name": "ball",
"from": "gameobject",
"_scale": 2.919193983078003
},
"brick": {
"collider": {
"points": [
[
-47.97179412841797,
3.9855456352233887
]
],
"mirrory": true,
"mirrorx": true
},
"char": {
"anims": {
"flash": {
"path": "brick.png",
"frames": 6,
"fps": 24,
"loop": false
}
}
},
"_scale": 2.9100000858306885,
"from": "gameobject"
},
"paddle": {
"collider": {
"points": [
[
-15.97066593170166,
4.0240020751953125
]
],
"mirrory": true,
"mirrorx": true
},
"img": {
"_pos": [
-0.5,
-0.5
],
"_path": "pill3.png"
},
"name": "paddle",
"from": "gameobject",
"_scale": 2.9100000858306885
},
"breakoutfield": {
"name": "breakoutfield",
"from": "edge2d",
"edge2d": {
"cpoints": [
[
-509,
305
]
],
"degrees": 1,
"mirrory": true,
"mirrorx": true
}
}
}

BIN
ship1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

BIN
ship2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

BIN
ship3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

BIN
ship4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

BIN
ship5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

BIN
stone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

13
title.lvl Normal file
View file

@ -0,0 +1,13 @@
[
{
"from": "ball",
"collider": {
"rradius": 17.53038937284941
},
"_pos": [
-5.000000000000021,
-121
],
"_angle": 0
}
]

BIN
wall.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

BIN
warnball.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B