Commit cd591918 authored by wildfirecode13's avatar wildfirecode13

init

parent f2407cef
import Vector2 from "./lib/Vector2";
import Vector2 from "./Vector2";
export default class Movable extends FYGE.Sprite {
private _velocity: Vector2;
......
import { addGame } from "./addGame";
import { addGame } from "./planewar/addGame";
var canvas: any = document.getElementById("canvas")
canvas.width = document.body.clientWidth * 1
canvas.height = document.body.clientHeight * 1
......
import Vector2 from "./lib/Vector2";
import Movable from "./Movable";
import MovableManager from "./MovableManager";
import { IWeaponHost } from "./weapon/IWeaponHost";
import Weapon from "./weapon/Weapon";
import Movable from "../lib/Movable";
import MovableManager from "../lib/MovableManager";
import Vector2 from "../lib/Vector2";
import { IWeaponHost } from "../weapon/IWeaponHost";
import Weapon from "../weapon/Weapon";
export default class Enemy extends Movable implements IWeaponHost {
movableManager: MovableManager;
......
import DragDropable from "./dragdrop/DragDropable";
import Vector2 from "./lib/Vector2";
import MovableManager from "./MovableManager";
import { IWeaponHost } from "./weapon/IWeaponHost";
import Weapon from "./weapon/Weapon";
import DragDropable from "../dragdrop/DragDropable";
import MovableManager from "../lib/MovableManager";
import Vector2 from "../lib/Vector2";
import { IWeaponHost } from "../weapon/IWeaponHost";
import Weapon from "../weapon/Weapon";
export default class Hero extends DragDropable implements IWeaponHost {
......
import DragDropable from "./dragdrop/DragDropable";
import DragDropManager from "./dragdrop/DragDropManager";
import DragDropable from "../dragdrop/DragDropable";
import DragDropManager from "../dragdrop/DragDropManager";
import MovableManager from "../lib/MovableManager";
import Vector2 from "../lib/Vector2";
import Enemy from "./Enemy";
import Hero from "./Hero";
import Vector2 from "./lib/Vector2";
import MovableManager from "./MovableManager";
export function addGame(stage: FYGE.Stage) {
const movableManager = new MovableManager(stage);//创建管理器
......
import Movable from "./Movable";
import Movable from "../lib/Movable";
export default class Bullet extends Movable {
constructor() {
......
import MovableManager from "../lib/MovableManager";
import Vector2 from "../lib/Vector2";
import MovableManager from "../MovableManager";
export interface IWeaponHost extends FYGE.Sprite {
movableManager: MovableManager;
......
import Bullet from "../Bullet";
import Vector2 from "../lib/Vector2";
import Movable from "../Movable";
import Movable from "../lib/Movable";
import Bullet from "./Bullet";
import { IWeaponHost } from "./IWeaponHost";
export default class Weapon {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment