-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
10,484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
var enemies = [ | ||
// enemy1が左から2匹直進する | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
// enemy1が右から2匹直進する | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
{ type: "a", x: 15, item: true, hp: 8 }, | ||
// { type: "b", x: 256, hp: 21 }, | ||
// { type: "b", x: 128, hp: 21 }, | ||
|
||
// enemy2が左から1匹ジグザグに移動する | ||
|
||
// enemy2が左から1匹ジグザグに移動する | ||
|
||
]; | ||
|
||
var createEnemy = {}; | ||
createEnemy["a"] = function (data) { | ||
|
||
var enemy = new Sprite(32, 32); | ||
// enemy.n= new Node(); | ||
enemy.image = core.assets.enemy1; | ||
enemy.hp = data.hp; | ||
// enemy.tl.moveBy(-64, 0, 50, enchant.Easing.QUAD_EASEINOUT); | ||
// enemy.tl.moveBy(64, 0, 50, enchant.Easing.QUAD_EASEINOUT); | ||
// enemy.tl.moveBy(64, 0, 100, enchant.Easing.QUAD_EASEINOUT); | ||
// enemy.tl.loop(); | ||
enemy.centerX = data.x + getRandom(0, 330); | ||
enemy.y = 50; | ||
enemy.item = data.item; | ||
enemy.on(Event.ENTER_FRAME, function () { | ||
|
||
if (this.y > 560) this.remove(); | ||
|
||
// this.remove(); | ||
|
||
|
||
|
||
}); | ||
return enemy; | ||
} | ||
createEnemy["b"] = function (data) { | ||
var enemy = new Sprite(32, 32); | ||
enemy.scale (2,2) | ||
enemy.image = core.assets.enemy2; | ||
enemy.centerX = data.x; | ||
enemy.y = 32; | ||
enemy.item = data.item; | ||
enemy.hp=data.hp; | ||
enemy.tl.moveBy(-64, 0, 100, enchant.Easing.QUAD_EASEINOUT); | ||
|
||
enemy.tl.moveBy(64, 0, 100, enchant.Easing.QUAD_EASEINOUT); | ||
|
||
|
||
// enemy.tl.scaleTo(5, 5, 10) | ||
// enemy.tl.loop(); | ||
enemy.on(Event.ENTER_FRAME, function () { | ||
|
||
|
||
if (this.y > 560) this.remove(); | ||
}); | ||
return enemy; | ||
} | ||
var objectpool = []; | ||
var objectpool2 = []; | ||
var objectpool3 = []; | ||
var objectpool4 = []; | ||
var objectpool5 = []; | ||
var objectpool6 = []; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="ja"> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<!-- HACK: タイトルをつけましょう --> | ||
<title>シューティング</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"> | ||
<link href="style.css" rel="stylesheet" type="text/css"> | ||
<script src="https://codefriendsdev.github.io/frameworks/enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/plugins/ui.enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/plugins/widget.enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/prototype/prototype.widget.enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/prototype/prototype.enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/prototype/prototype.ui.enchant.js" defer></script> | ||
<script src="https://yoshitoimai.github.io/plugin.enchant.js/src/plugin/ex.enchant.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/plugins/box2dweb/Box2d.min.js" defer></script> | ||
<script src="https://codefriendsdev.github.io/frameworks/plugins/box2d.enchant.js" defer></script> | ||
<script src="https://yoshitoimai.github.io/plugin.enchant.js/src/plugin/prototype.box2d.enchant.js" defer></script> | ||
|
||
<script src="https://codefriendsdev.github.io/frameworks/common.js" defer></script> | ||
<script src="data.js"></script> | ||
<script src="main_titlestart.js"></script> | ||
<script src="main_floor1.js" defer></script> | ||
<script src="main_floor2.js" defer></script> | ||
<script src="main_floor3.js" defer></script> | ||
<script src="main_floor4.js" defer></script> | ||
<script src="main_floor5.js" defer></script> | ||
<script src="main_floor6.js" defer></script> | ||
|
||
<script src="main_resultstart.js" defer></script> | ||
<script src="main_create_player.js" defer></script> | ||
<script src="main_gamestart.js" defer></script> | ||
<script src="main_gamestart backup.js" defer></script> | ||
<script src="./libs/gamepad/gamepad.min.js" defer></script> | ||
<script src="main.js" defer></script> | ||
|
||
|
||
</head> | ||
|
||
<body> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.