Skip to content
TheChatArchiveThe Chat Archive
DeepSeekdeepseek-llm-67b-chat· DeepSeekHugging Face Arena Human Preference 55K

Write code in Gdscript for the Godot gameengine that draws a yellow circle with a radius…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Mistralmistral-medium’s answer.
  1. User

    Write code in Gdscript for the Godot gameengine that draws a yellow circle with a radius of 35 pixel.The circle has to grow linear from 35 pixel to 135 pixel within 5 seconds. After that time the circle has to go back to 35 pixel linear within 8 seconds. The growing and shrinking should go constantly. Use lerp. Use the inbuild _draw function of the Godot engine. Use the queue_redraw() function to update the _draw() function.

  2. DeepSeek Assistant

    Here is an example code in Gdscript for the Godot game engine that draws a yellow circle with a radius of 35 pixels, which grows linearly from 35 pixels to 135 pixels within 5 seconds, and then shrinks back to 35 pixels within 8 seconds. The growing and shrinking should go constantly. The code uses the lerp function to interpolate between the initial and final values of the radius, and the _draw function to draw the circle on the screen. The queue_redraw function is used to update the _draw function:

    extends Node2D
    
    var radius = 35.0
    var elapsed_time = 0.0
    var growing = true
    
    func _process(delta: float):
        elapsed_time += delta
        if growing:
            if radius < 135.0:
                radius = lerp(radius, 135.0, delta / 5.0)
            else:
                growing = false
        else:
            if radius > 35.0:
                radius = lerp(radius, 35.0, delta / 8.0)
            else:
                growing = true
        queue_redraw()
    
    func _draw():
        draw_circle(Vector2(0, 0), radius, Color.yellow)
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.