The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

28 个评价
Door Outlines Mod
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
6.950 KB
2022 年 9 月 17 日 下午 8:49
2022 年 10 月 8 日 上午 6:21
11 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
Door Outlines Mod

描述
This mod helps you figure out where to bomb for secret rooms by displaying door outlines (in a similar fashion to the red key) at empty spots on the wall where doors would be placed.

Can be configured with Mod Config Menu.
24 条留言
msk 7 月 24 日 下午 11:08 
holy skill issue
Ashleyking 2023 年 2 月 28 日 下午 4:38 
I cant believe people could have to audacity to install literal wallhacks on tboi, smh my head
the j 2022 年 12 月 28 日 上午 9:20 
memphis maybe try reading the description of a mod before ♥♥♥♥♥♥♥♥ in the comments?
BLACK KNIFE 25/12 2022 年 12 月 20 日 下午 11:17 
@memphis it just puts the outline of a door where doors could be, not where the secret room is, but in places where a room could generate
mata 2022 年 12 月 20 日 下午 1:21 
mod for fatherless cheaters lol
sam  [作者] 2022 年 9 月 24 日 上午 3:53 
@agentcucco thanks for your advice, it's really helpful! I've done my best to incorporate it into the mod
AgentCucco 2022 年 9 月 22 日 上午 9:13 
I will probably delete those if you ping me, to avoid cluttering the chat, but generally the biggest "issues" are the lack of use of enumerations, and overuse of "magic numbers", if you're using static values for anything at all, it's always best to define them as a constant at the top of your file (if the enums.lua doesn't provide them already).
AgentCucco 2022 年 9 月 22 日 上午 9:11 
4. You made a custom distance function which is kinda funny, it's not bad perse, but Vector.Distance/DistanceSquared() already exist (i.e. player.Position:Distance(door.Position)). math.sqrt is also a really taxy method, it is adviced you use ^0.5 instead, when working in LUA, don't ask why, the math function is just scuffed, lol.

5. This is truly a personal nitpick and not a real issue, but when checking for variables, it's good to keep this in mind:
'if x then' // 'if x == true or x ~= nil then'
'if not x then' // 'if x == false or x == nil then'
These terms are generally more readable when (and faster to write) when you have more experience coding.
AgentCucco 2022 年 9 月 22 日 上午 9:11 
A few nitpicks I found while checking the source:

1. You are barely using enumerations (i.e. typing Isaac.Spawn(1000, ...) instead of Isaac.Spawn(EntityType.ENTITY_EFFECT, ...)), this makes the code pretty unreadable and specially if you start making custom stuff, it might cause issues with dynamic ids and whatnot.

2. On the topic of readability, some of your statements get pretty long, generally it's best to keep each check in its own line.
i.e. 'if x and y then' to
'if x'
'and y'
'then'

3. In this case it doesn't matter, but it's generally a bad practice to define static objects more than once, in your case you're defining a Color every time you spawn an outline, but the color is always the same, so really there's no reason not to define it at the top of your code as a constant.
sam  [作者] 2022 年 9 月 22 日 上午 8:53 
@agentcucco Haha don't worry about it.

Ok I've now defined the json library, thank you for pointing that out. I'm pretty new to modding, Isaac or otherwise, so your help is much appreciated.