       @nick_label = {}
       @nick_user = {}
       h = 18
-      next_pos = @lobby_pos + new Vec2d(0, @lobby_size.y - h)
+      next_pos = @lobby_pos.offset(0, @lobby_size.y - h)
       for user in @users
         nick = user['nick']
         if nick is @nick



  class Credits
    constructor: (@gw, @window) ->
      @img = pyglet.resource.image("data/credits.png")
      @window.set_handler('on_draw', @on_draw)
      @window.set_handler('on_mouse_press', @on_mouse_press)
      pyglet.clock.schedule_interval(@update, 1/game_fps)

    update: (dt) ->

    on_draw: ->
      @window.clear()
      @img.blit(0, 0)

    end: ->
      @window.remove_handler('on_draw', @on_draw)
      @window.remove_handler('on_mouse_press', @on_mouse_press)
      pyglet.clock.unschedule(@update)

    on_mouse_press: (x, y, button, modifiers) ->
      @gw.title()



      @engine.removeListener 'mousedown', @onMouseDown
      @engine.removeListener 'update', @update

    onMouseDown: (click_pos) =>
      if click_pos.distanceTo(@start_pos) < @click_radius
        @gw.play(server_on=false)
        return
      else if click_pos.distanceTo(@credits_pos) < @click_radius
        @gw.credits()
        return
      else if click_pos.distanceTo(@controls_pos) < @click_radius
        @gw.controls()
        return

