Method and device for generating barrage overlaid on playing object

The invention provides a method and a device for generating a barrage overlaid on a playing object. The method comprises the following steps: receiving barrage letters delivered by another user except for a current user; according to friend information in log-in account information of the current user, judging whether the another user is a friend of the current user or not; playing the barrage letters on the playing object, if the another user is not the friend of the current user, playing the barrage letters on the playing object in a first playing track shape, and if the another user is the friend of the current user, playing the barrage letters on the playing object in a second playing track shape different from the first playing track shape. According to the method, the pertinence of barrage playing on the user is improved, and the user can relatively quickly acquire useful information from playing a lot of barrages.