peu={hab=5,x=48,y=24,bb={x=0,y=0,w=8,h=8}} function peu.init() local habs={{18,8},{16,2},{16,7},{15,5},{27,1},{27,10},{29,2},{38,8},{69,2},{79,3}} local r=1+rnd(#habs) peu.hab=habs[r][1] peu.x=habs[r][2]*8 peu.update=peu.update peu.draw=peu.draw end function peu.draw() sspr(112,32,16,16,peu.x,peu.y,16,16) end function peu.update() if peu.hab==abad.hab then if aabb(abad,peu) then abad.objects.peu=true if abad.objects.gps~=nil then current_camera=4 end remove_actor(peu) end end end