Commit 5d310c95 authored by wildfirecode's avatar wildfirecode

1

parent 171b8b8c
......@@ -4,7 +4,7 @@ import { award, awardMask } from "./collisionConfig";
import random from "./random";
import LabelType from "./items/LabelType";
export const createNewBubble = (_this: StartScene,type:LabelType) => {
export const createNewBubble = (_this: StartScene, type: LabelType) => {
createBubble(_this, type, Math.random() > 0.5 ? 180 : 750 - 180, 220);
}
......@@ -32,8 +32,8 @@ export default (_this: StartScene) => {
let count = 0;
const coinsFall = setInterval(() => {
if (count < 14) {
const types = [ LabelType.candy, LabelType.coin, LabelType.gift,LabelType.egg]
// const types = [LabelType.boom, LabelType.candy, LabelType.coin, LabelType.gift,LabelType.egg]
// const types = [ LabelType.candy, LabelType.coin, LabelType.gift,LabelType.egg]
const types = [LabelType.boom, LabelType.candy, LabelType.coin, LabelType.gift, LabelType.egg]
const i = Math.floor(Math.random() * types.length);
const type = types[i];
createBubble(_this, type, 375 + Math.random() * 200 - 100, 400 + 200 + 100)
......
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