Commit c0752f8a authored by 张媛's avatar 张媛

弹幕源码添加

parent b8e4bded
...@@ -12,7 +12,7 @@ import { clearStage } from '../common/createStage'; ...@@ -12,7 +12,7 @@ import { clearStage } from '../common/createStage';
class carouselItem extends window.FYGE.Container { class carouselItem extends window.FYGE.Container {
constructor(data) { constructor(data) {
super(); super();
let itemBg = window.FYGE.Sprite.fromUrl("test/prizeItemBg.png"); let itemBg = window.FYGE.Sprite.fromUrl("resource/prizeItemBg.png");
this.addChild(itemBg); this.addChild(itemBg);
let itemName = new window.FYGE.TextField(); let itemName = new window.FYGE.TextField();
itemName.text = data.name; itemName.text = data.name;
...@@ -88,7 +88,7 @@ Primary.args = { ...@@ -88,7 +88,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀1", "name": "飞科剃须刀1",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 10000, "coins": 10000,
"stock": 111111111111, "stock": 111111111111,
"channel":0 "channel":0
...@@ -96,7 +96,7 @@ Primary.args = { ...@@ -96,7 +96,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀2", "name": "飞科剃须刀2",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 0, "stock": 0,
"channel":0 "channel":0
...@@ -104,7 +104,7 @@ Primary.args = { ...@@ -104,7 +104,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀3", "name": "飞科剃须刀3",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 0, "stock": 0,
"channel":0 "channel":0
...@@ -112,7 +112,7 @@ Primary.args = { ...@@ -112,7 +112,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀4", "name": "飞科剃须刀4",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 0, "stock": 0,
"channel":2 "channel":2
...@@ -120,7 +120,7 @@ Primary.args = { ...@@ -120,7 +120,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀5", "name": "飞科剃须刀5",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 0, "stock": 0,
"channel":2 "channel":2
...@@ -128,7 +128,7 @@ Primary.args = { ...@@ -128,7 +128,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀6", "name": "飞科剃须刀6",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 0, "stock": 0,
"channel":1 "channel":1
...@@ -136,7 +136,7 @@ Primary.args = { ...@@ -136,7 +136,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀7", "name": "飞科剃须刀7",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 1, "stock": 1,
"channel":0 "channel":0
...@@ -144,7 +144,7 @@ Primary.args = { ...@@ -144,7 +144,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀8", "name": "飞科剃须刀8",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 1, "stock": 1,
"channel":2 "channel":2
...@@ -152,7 +152,7 @@ Primary.args = { ...@@ -152,7 +152,7 @@ Primary.args = {
{ {
"rule": "ru_1", "rule": "ru_1",
"name": "飞科剃须刀0", "name": "飞科剃须刀0",
"icon": "prize.jpg", "icon": "resource/prize.jpg",
"coins": 100, "coins": 100,
"stock": 1, "stock": 1,
"channel":2 "channel":2
......
...@@ -67,7 +67,7 @@ Primary.args = { ...@@ -67,7 +67,7 @@ Primary.args = {
label: '金币动效', label: '金币动效',
start:[100, 200], start:[100, 200],
end:[600, 900], end:[600, 900],
imgUrl:"homeGoldIconImg.png", imgUrl:"resource/homeGoldIconImg.png",
callBack: goldCoinReceiveAniCallback.bind(this), callBack: goldCoinReceiveAniCallback.bind(this),
isMinus:true, isMinus:true,
curvature:0.2, curvature:0.2,
......
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