-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on TerraFrame.java #8
Comments
Note that item ID 0 corresponds to "empty" and block ID 0 corresponds to "air". Thus there is no need to load textures for them. |
Also, I really hope you're joking ;) |
Nah, was looking for something to do, not sure if it would go anywhere. |
:O Well, if you'd like to give it a shot, I certainly won't stop you. I'm not planning to take this project anywhere, so you somehow manage to turn it into a real game (quite a task, I imagine, given the current state), feel free to distribute or market it as you see fit. Do let me know if you have any other questions. |
Cool, thanks. I'll let you know if I have anymore questions |
Should it be using the layer variable |
Lololol this code makes no sense. I believe trees were only on the primary layer (i.e. layer As a side note, I think the world generation for this game was actually one of its better points. It currently appears to all be commented out (in |
@BusyByte
Is effectively
So this is just
Why you're working on this code is beyond me. Seems like you're barking up the wrong trees. Kappa The layer indexing in the loop seems a bit more nebulous to me. My intuition from the code I've touched so far is that layer is similar to the layer notion in real terraria, where' there's a kind of foreground layer that you can get blocked on, and other layers where you pass in front of or behind blocks. So I imagine this is assuming that you can only have tree blocks on this layer, or that if there somehow is a tree off that layer it's fallen from grace and won't get rendered by this code. If my intuition is right about what layers means (I think it'll become clear by the time someone gets to the collision detection logic for moving a player around) then you certainly cannot replace [1] in the block references, it must remain 1 for the implementation to be correct. We wouldn't want consumers of TerrariaClone to deal with an unseemly regression. I'm free to review prs by the way @BusyByte but I'd rather not experience too many spoilers since I'm enjoying the adventure that is refactoring this code. Definitely down to pair or mob with anyone interested. I'm also always available to commiserate about TerrariaClone related trauma. (EDIT: There's some more layer related code where the delayer power propogation is handled that serves as another example for how layers can work. If you like I can try to find you the line in the original source. It's a bit hard for me to keep track of where things are... sorry 😿 ) |
I've forked and attempting to rewrite in Scala and had some questions.
There are times in TerraFrame.java where you have a
for
loop which starts at 1 instead of 0.It appears like this might be a bug and I have been translating it as is but wanted to double check.
It seems like when you are initializing stuff you'd miss the first item.
The text was updated successfully, but these errors were encountered: