Skip to content
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

New rail features #266

Open
zorro300 opened this issue Feb 23, 2012 · 1 comment
Open

New rail features #266

zorro300 opened this issue Feb 23, 2012 · 1 comment

Comments

@zorro300
Copy link
Contributor

I think there is tweaking needed on the rails

--> http://www.youtube.com/watch?v=z8mZ9ATcCNU

if you see the video you'll see that I set up a system for the rails so they can keep going without crashing but none of the droids went to deliver them . Because of that I was thinking about maybe add a "force turn" to the droids like minecarts in minecraft. Like they're forced to go left or right; that way it would be cool because you can set up complicated delivery systems . What you guys think ?

@Flu-Ger
Copy link

Flu-Ger commented Feb 23, 2012

If the offload area would be enlarged by one field the problem could be solved too.
(the robots would offload inside the loop, see patch)

though rails and especially RailBot AI definitely needs work ;-)

./src/com/mojang/mojam/entity/mob/RailDroid.java
@@ -186,11 +204,11 @@ public class RailDroid extends Mob {
                        }
                }
                if (carrying && swapTime == 0) {
-                       if (pos.y < 7 * Tile.HEIGHT) {
+                       if (pos.y < 8 * Tile.HEIGHT) {
                                carrying = false;
                                level.player2Score += 2;
                        }
-                       if (pos.y > (level.height - 7 - 1) * Tile.HEIGHT) {
+                       if (pos.y > (level.height - 7 - 2) * Tile.HEIGHT) {
                                carrying = false;
                                level.player1Score += 2;
                        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants