help with robocode victory

View: New views
2 Messages — Rating Filter:   Alert me  

help with robocode victory

by warp736 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

how do i get by robot to do a victory dance and/or get text up on the screen
i would really like some text!!

Re: help with robocode victory

by dexrop :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

public void onWin(WinEvent e) {
                for (int i = 0; i < 50; i++) {
                setBodyColor(Color.yellow);
                        fire(0.1);
                        turnRight(30);
                        turnLeft(30);
                }
        }

a simple method that changes the color on a win and does a little dance
warp736 wrote:
how do i get by robot to do a victory dance and/or get text up on the screen
i would really like some text!!