Show off your games, demos and other (playable) creations.
-
ttwings
- Prole
- Posts: 5
- Joined: Wed Mar 07, 2018 7:54 am
Post
by ttwings »
抱歉,英语不好,这是一个武侠沙盘游戏,我希望做个游戏,在这个游戏里面,你扮演一个侠客,穿越到古代中国生存。
Sorry ,my poor English,this is a WuXia Sandbox RPG, I wish do the game,that you can play a Warrior,survive in vintage china。
GitHub:
https://github.com/ttwings/wuxiaLove2d
Last edited by
ttwings on Tue Jun 05, 2018 3:38 am, edited 2 times in total.
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
Post
by bartbes »
Please keep the forums in English. I know it's hard for some people, but I can assure you for the people already on the forums Chinese is harder.
-
sky2046
- Prole
- Posts: 2
- Joined: Fri Jul 27, 2018 3:18 am
Post
by sky2046 »
找到组织了,新人,希望多交流
-
ttwings
- Prole
- Posts: 5
- Joined: Wed Mar 07, 2018 7:54 am
Post
by ttwings »
我也菜鸟一个, 欢迎来 love2d 群 104785979 共同学习。 = = 武侠项目目前暂停中,坑有点大了。 准备重构一下结构。 目前做个小项目,练手中。。
-
ttwings
- Prole
- Posts: 5
- Joined: Wed Mar 07, 2018 7:54 am
Post
by ttwings »
Re girng 。 there are different. in my demo ,i use shader. the code :
local code =[[
vec4 effect(vec4 color,Image texture,vec2 tc,vec2 sc){
return Texel(texture,vec2((tc.x-0.5)/(tc.y + 1.5)+0.5,tc.y));
}
]]
local shader = love.graphics.newShader(code)
in draw function use:
love.graphics.setShader(shader)
love.graphics.draw(canvas)
love.graphics.setShader()
camera x,y position update by STI lib. use code:
map:draw(-tx,-ty)
and tx,ty update :
tx = math.floor((player.x - 1280/2))
ty = math.floor((player.y - 800/2))
ps:1280 800 is window size.
sorry my poor english...
-
ttwings
- Prole
- Posts: 5
- Joined: Wed Mar 07, 2018 7:54 am
Post
by ttwings »
Re girng 。 there are different. in my demo ,i use shader. the code :
Code: Select all
local code =[[
vec4 effect(vec4 color,Image texture,vec2 tc,vec2 sc){
return Texel(texture,vec2((tc.x-0.5)/(tc.y + 1.5)+0.5,tc.y));
}
]]
Code: Select all
local shader = love.graphics.newShader(code)
in draw function use:
Code: Select all
love.graphics.setShader(shader)
love.graphics.draw(canvas)
love.graphics.setShader()
camera x,y position update by STI lib. use code:
and tx,ty update :
Code: Select all
tx = math.floor((player.x - 1280/2))
ty = math.floor((player.y - 800/2))
ps:1280 800 is window size.
sorry my poor english...
-
girng
- Prole
- Posts: 40
- Joined: Fri Sep 07, 2018 5:42 am
Post
by girng »
hey ttwings. english is just fine i understood u perfectly.
ty sir so much. gonna try out this shader!! <3
Users browsing this forum: No registered users and 2 guests