[BB80]Map system Reconstruction (Patreon)
Content
The price to pay for bad engineering planning
I feel like I'm doing a college project with no time limit.
Reconstructing the knowledge system while learning and correcting the content in my own production
I don't even know how to share the interesting and learned contents of WW
It's super boring, but I'm enjoying it
感覺就像在做沒有限時的大學計劃
一邊學一邊重新建構知識體系一邊修正自己製作中的內容
甚至其中的有趣及學到的內容都不知道怎樣分享出去WW
感覺超級無聊的,但我樂在其中
============
說明 | Explain
原先的地圖系統我通過一頁事件由上至下大約二千多行來一一判斷玩家的所在以及玩家可以通向的地方
在休息時回想起可以手動製作座標系統,不必判斷所在而決定可以通向的目的地
舊製作方式是
當玩家身處 地點編號001(家) 時
當玩家按上時 , 更改玩家身處位置等於 地點編號002(某地方A)
當玩家按下時 , 更改玩家身處位置等於 地點編號003(某地方B)
當玩家按左時 , 更改玩家身處位置等於 地點編號004(某地方C)
當玩家按右時 , 更改玩家身處位置等於 地點編號005(某地方D)
當玩家身處 地點編號002(某地方A) 時
當玩家按上時 , 更改玩家身處位置等於 地點編號006(某地方E)
當玩家按下時 , 更改玩家身處位置等於 地點編號001(家)
當玩家按左時 , 更改玩家身處位置等於 地點編號007(某地方F)
當玩家按右時 , 更改玩家身處位置等於 地點編號008(某地方G)
非常不健康
如果要更改地圖位置或增加地點的話,根本無法在地圖內插入新地圖,因為這樣等同所有內容都要重新手動輸入一次(更改了位置和方向的話)
新的方法如下
只要製作出玩家按鍵改變座標的系統
(例子:上(Y-1)下(Y+1)左(X-1)右(X+1))
並定義每一個座標等同的位置後
(例子:地點編號001(家) 等於X:10,Y:3)
設定不能通行的座標
(例子:如果X大於30側等於30)
整個系統便基本完成
The original map system I through a page of events from top to bottom about 2,000 lines to determine one by one where the player is and where the player can go
When resting, I recall that I can manually create the coordinates system to determine the destination to which I can go without judging where I am.
The old way is
When the player is in location number 001 (home)
When the player presses [Up], the player's location is changed to the location number 002 (Place A).
When the player presses [Down], the player's location will be changed to the location number 003 (Place B).
When the player presses [Left], the player's location will be changed to location number 004 (a place C)
When the player presses [Right], the player's location will be changed to the location number 005 (a place D)
When the player is at location number 002 (a place A)
When the player presses [Up], the player's location will be changed to location number 006 (a place E)
When the player presses [Down], the player's location will be changed to the location number 001 (Home)
When the player presses [Left], the player's location will be changed to the location number 007 (a place F)
When the player presses [Right], the player's location will be changed to location number 008 (a place G)
Very unhealthy
If you want to change the location of the map or add a location, it is impossible to insert a new location into the map, because this means that all the contents have to be entered manually again (if the location and direction are changed).
The new method is as follows
Just make the system of changing the coordinates with the player's button
(Example: up (Y-1) down (Y+1) left (X-1) right (X+1)) (the top of RM is negative Y value WW)
and after defining the equivalent position of each coordinates
(Example: Location number 001 (home) equals X:10,Y:3)
Set the coordinates that cannot be passed
(Example: If X is greater than 30, X is equal to 30)
The whole system is basically completed
==
修正了翻譯
Fixed translation
====
編排中 | Maping