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

Show off your games, demos and other (playable) creations.
Post Reply
ttwings
Prole
Posts: 5
Joined: Wed Mar 07, 2018 7:54 am

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

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。

Image

GitHub:https://github.com/ttwings/wuxiaLove2d
Last edited by ttwings on Tue Jun 05, 2018 3:38 am, edited 2 times in total.
jackgiorgio
Prole
Posts: 1
Joined: Thu May 31, 2018 4:43 am

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

Post by jackgiorgio »

有意思啊老哥,交流一下?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

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

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

Post by sky2046 »

找到组织了,新人,希望多交流
ttwings
Prole
Posts: 5
Joined: Wed Mar 07, 2018 7:54 am

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

Post by ttwings »

我也菜鸟一个, 欢迎来 love2d 群 104785979 共同学习。 = = 武侠项目目前暂停中,坑有点大了。 准备重构一下结构。 目前做个小项目,练手中。。
girng
Prole
Posts: 40
Joined: Fri Sep 07, 2018 5:42 am

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

Post by girng »

how did you get your camera to be like https://risingwave.itch.io/smash-bash-d ... the-desert ?

looks interesting btw
ttwings
Prole
Posts: 5
Joined: Wed Mar 07, 2018 7:54 am

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

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

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

Post 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...
girng
Prole
Posts: 40
Joined: Fri Sep 07, 2018 5:42 am

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

Post by girng »

hey ttwings. english is just fine i understood u perfectly.

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

Who is online

Users browsing this forum: No registered users and 1 guest