Page 1 of 1

RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Tue Mar 27, 2018 3:29 pm
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。

Image

GitHub:https://github.com/ttwings/wuxiaLove2d

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu May 31, 2018 8:54 am
by jackgiorgio
有意思啊老哥,交流一下?

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu May 31, 2018 8:07 pm
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.

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Fri Jul 27, 2018 11:00 pm
by sky2046
找到组织了,新人,希望多交流

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Mon Sep 03, 2018 8:20 am
by ttwings
我也菜鸟一个, 欢迎来 love2d 群 104785979 共同学习。 = = 武侠项目目前暂停中,坑有点大了。 准备重构一下结构。 目前做个小项目,练手中。。

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu Sep 13, 2018 12:56 am
by girng
how did you get your camera to be like https://risingwave.itch.io/smash-bash-d ... the-desert ?

looks interesting btw

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu Sep 13, 2018 2:41 am
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...

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu Sep 13, 2018 2:49 am
by ttwings
girng wrote: Thu Sep 13, 2018 12:56 am how did you get your camera to be like https://risingwave.itch.io/smash-bash-d ... the-desert ?

looks interesting btw
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:

Code: Select all

map:draw(-tx,-ty)
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...

Re: RPG WuXia & JiangHu 沙盘角色扮演游戏,武侠与江湖,正在进行中

Posted: Thu Sep 13, 2018 3:18 am
by girng
hey ttwings. english is just fine i understood u perfectly.

ty sir so much. gonna try out this shader!! <3