Content item for display in location-based game
A location-based game helps players interact with their environment without interrupting the game. For example, while a player is playing the location-based game on a client device, the client device displays a virtual content item adjacent to a location (or building) associated with the content item. The content item may provide information about the location. The content item may be displayed without obscuring virtual objects of the game, thus allowing the player to continue playing the game and simultaneously learn about and interact with their environment.
1 . A non-transitory computer-readable storage medium comprising stored instructions for providing a location-based game, the instructions, when executed by a computing device, causing the computing device to perform operations including:
determining a first location of the computing device;
receiving a set of content items associated with locations;
accessing a first route a player associated with the computing device is expected to travel along to arrive at a second location different than the first location of the computing device;
identifying a content item from the set is associated with a third location that is within a first threshold distance of the first location and that is different than the first location and the second location;
identifying the third location associated with the content item is within a second threshold distance of the first route the player is expected to travel along;
receiving, from a camera assembly of the computing device, an image describing an environment at the first location of the computing device;
determining the third location associated with the content item is in the image captured by the camera assembly of the computing device;
responsive to (a) the third location being within the first threshold distance of the first location, (b) the third location being within the second threshold distance of the first route, and (c) the third location being in the image captured by the camera assembly of the computing device, providing for display, within the location-based game, the content item associated with the third location in conjunction with a view of the third location in the environment from a perspective of the computing device; and
responsive to receiving an indication that the player interacted with the content item while a current location of the computing device is not at the third location, providing for display a second route from the current location of the computing device to the third location in the environment associated with the content item, wherein the second route is different from the first route.
2 . The non-transitory computer-readable storage medium of claim 1 , wherein the content item is provided for display such that the content item appears to be at the third location associated with the content item in the view of the third location in the environment from the perspective of the computing device.
3 . The non-transitory computer-readable storage medium of claim 1 , wherein the content item is provided for display in an interface, a position of the content item in the interface indicating the third location associated with the content item in the view of the third location in the environment from the perspective of the computing device.
4 . The non-transitory computer-readable storage medium of claim 1 , wherein a size of the content item indicates a distance between the first location of the computing device and the third location in the environment associated with the content item.
5 . The non-transitory computer-readable storage medium of claim 1 , wherein at least a portion of the outline of the content item points to the third location in the environment associated with the content item.
6 . The non-transitory computer-readable storage medium of claim 1 , wherein the operations further include:
selecting the content item from the set of content items responsive to determining the computing device is moving toward the third location associated with the content item.
7 . The non-transitory computer-readable storage medium of claim 1 , wherein the operations further include:
responsive to receiving the indication that the player interacted with the content item, transmitting an instruction to initiate a transaction associated with the content item through the location-based game.
8 . The non-transitory computer-readable storage medium of claim 1 , wherein the operations further include:
responsive to receiving the indication that the player interacted with the content item, generating in-game rewards of the location-based game for the player of the computing device.
9 . The non-transitory computer-readable storage medium of claim 1 , wherein the operations further include:
responsive to the content item being displayed for a threshold amount of time without the player interacting with the content item, selecting a second content item from the set of content items; and
providing for display, within the location-based game, the selected second content item in conjunction with a second view of the environment from the perspective of the computing device.
10 . The non-transitory computer-readable storage medium of claim 1 , wherein the operations further include:
providing for display, within the location-based game, a virtual object, wherein the display of the content item does not obscure the virtual object.
11 . The non-transitory computer-readable storage medium of claim 10 , wherein the content item is displayed a third threshold distance away from the virtual object.
12 . The non-transitory computer-readable storage medium of claim 10 , wherein the operations further include:
responsive to receiving the indication that the player interacted with the content item, the virtual object performs an action that directs the player to the third location associated with the content item.
13 . The non-transitory computer-readable storage medium of claim 1 , wherein the received set of content items are identified by the computing device or another computing device performing operations including:
identifying locations associated with content items that are within the first threshold distance of the first location of the computing device; and
adding content items associated with locations that are within the first threshold distance to the set of content items.
14 . The non-transitory computer-readable storage medium of claim 1 , wherein the content item relates to a physical object in the environment.
15 . The non-transitory computer-readable storage medium of claim 1 , wherein the first route does not pass through locations associated with content items of the set of content items.
16 . A method comprising:
determining a first location of a client device;
receiving a set of content items associated with locations;
accessing a first route a player associated with the client device is expected to travel along to arrive at a second location different than the first location of the client device;
identifying a content item from the set is associated with a third location that is within a first threshold distance of the first location and that is different than the first location and the second location;
identifying the third location associated with the content item is within a second threshold distance of the first route the player is expected to travel along;
receiving, from a camera assembly of the client device, an image describing an environment at the first location of the client device;
determining the third location associated with the content item is in the image captured by the camera assembly of the client device;
responsive to (a) the third location being within the first threshold distance of the first location, (b) the third location being within the second threshold distance of the first route, and (c) the third location being in the image captured by the camera assembly of the client device, providing for display, within a location-based game, the content item associated with the third location in conjunction with a view of the third location in the environment from a perspective of the client device, and
responsive to receiving an indication that the player interacted with the content item while a current location of the client device is not at the third location, providing for display at a second route from the current location of the client device to the third location in the environment associated with the content item, wherein the second route is different from the first route.
17 . The method of claim 16 , wherein the content item appears to be at the third location in the environment associated with the content item.
18 . The method of claim 16 , wherein the content item is sent for display in an interface, a position of the content item in the interface indicating the third location associated with the content item in the view of the environment.