Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Original:
- function corridorsprite(flip, shader, minfr)
- local xpos;
- if flip == 0 then
- xpos = 0;
- else
- xpos = 500;
- end
- local w = 650;
- return game:addSprite{ shader = shader, alpha = 1, alphaVelocity = 0, scenePath = "Game/3DSpace",
- position = {240, 0, 0},
- vertices = {{w,xpos,-10000},
- {w,xpos,4250},
- {-w + 170,xpos,-10000},
- {-w + 170,xpos,4250}},
- rotation = {0, 0, 45},
- minimumFrameRate = minfr,
- alpha = 0.01,
- animator = {
- duration = 0.01,
- type = "float",
- animatedProperty = "alpha",
- startValue = 0.01,
- targetValue = 0
- }
- };
- end
- My Modification:
- -----------------------------------
- function corridorspriteLand(flip, shader, minfr)
- local xpos;
- if flip == 0 then
- xpos = 0;
- else
- xpos = 500;
- end
- local w = 650;
- return game:addSprite{ shader = shader, alpha = 1, alphaVelocity = 0, scenePath = "Game/3DSpace",
- position = {160, 0, 0},
- --[[ vertices = {{w,xpos,-10000},
- {w,xpos,4250},
- {-w + 170,xpos,-10000},
- {-w + 170,xpos,4250}},--]]
- vertices = {{xpos,w,-10000},
- {xpos,w,4250},
- {xpos,-w + 170,-10000},
- {xpos,-w + 170,4250}},
- rotation = {0, 0, 45},
- minimumFrameRate = minfr,
- alpha = 0.01,
- animator = {
- duration = 0.01,
- type = "float",
- animatedProperty = "alpha",
- startValue = 0.01,
- targetValue = 0
- }
- };
- end
Add Comment
Please, Sign In to add comment