Electronic device and computer-readable storage medium for providing virtual space
According to an embodiment, an electronic device includes: a display, a communication circuit, a memory configured to store instructions, and a processor, wherein the at least one processor is configured to, when the instructions are executed: identify a first input representing selecting at least one object corresponding to at least one user among a plurality of objects corresponding to a plurality of users, identify a second input for executing a second application, change the first user interface to a second interface including the virtual space based on the first input and the second input, and control the communication circuit to transmit, to at least one external electronic device of the least one user, a signal configured to cause the at least one external electronic device to display a notification for guiding entry into the virtual space.
1 . A non-transitory computer readable storage medium storing one or more programs, the one or more programs including instructions, which, when executed by at least one processor of an electronic device including a display, communication circuitry, and a memory, cause the electronic device to:
display, via the display, a first user interface of a first application, wherein the first user interface includes a first area and a second area,
wherein the first area includes a first object for indicating first contact information, and a second object for indicating second contact information for communicating in a virtual space, and
wherein the second area includes one or more contacts corresponding to the first contact information;
based on a first input being received with respect to the second object while the first user interface is displayed, change a user interface of the first application from the first user interface to a second user interface, wherein the second user interface includes:
a third area including the first object for indicating the first contact information and the second object for indicating the second contact information for communicating in the virtual space, and
a fourth area for displaying one or more contacts corresponding to the second contact information; and
based on a second input being received with respect to the second user interface, display a third user interface of a second application for representing the virtual space.
2 . The non-transitory computer readable storage medium of claim 1 , wherein the second contact information includes:
a profile image of each of one or more characters respectively associated with one or more users, and
a label image for each of the one or more characters, in association with the profile image of each of the one or more characters,
wherein the one or more users are related to the one or more contacts corresponding to the second contact information.
3 . The non-transitory computer readable storage medium of claim 2 , wherein the one or more programs include instructions, which, when executed by the at least one processor of the electronic device, cause the electronic device to:
based on the second user interface being displayed, receive the second input for selecting at least one user among the one or more users, and
based on the second input, display the third user interface representing the virtual space including a user character of the electronic device and at least one character respectively associated with the at least one user selected according to the second input.
4 . The non-transitory computer readable storage medium of claim 3 , wherein the one or more programs include instructions, which, when executed by the at least one processor of the electronic device, cause the electronic device to:
control the communication circuitry to transmit, to at least one external electronic device of the at least one user, a signal configured to cause the at least one external electronic device to display a notification for guiding entry into the virtual space.
5 . The non-transitory computer readable storage medium of claim 4 , wherein the one or more programs include instructions, which, when executed by the at least one processor of the electronic device, cause the electronic device to:
based on the second input, display a plurality of virtual spaces, and
based on a third input for selecting the virtual space among the plurality of virtual spaces, display the third user interface of the second application.
6 . The non-transitory computer readable storage medium of claim 4 , wherein the label image for each of the one or more characters indicates a state of a corresponding user, and
wherein the state of a corresponding user is identified based on a location of the corresponding user.
7 . An electronic device comprising:
a display;
communication circuitry;
memory comprising one or more non-transitory storage media and storing executable instructions; and
at least one processor comprising processing circuitry,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
display, via the display, a first user interface of a first application, wherein the first user interface includes a first area and a second area,
wherein the first area includes a first object for indicating first contact information, and a second object for indicating second contact information for communicating in a virtual space, and
wherein the second area includes one or more contacts corresponding to the first contact information;
based on a first input being received with respect to the second object while the first user interface is displayed, change a user interface of the first application from the first user interface to a second user interface, wherein the second user interface includes:
a third area including the first object for indicating the first contact information and the second object for indicating the second contact information for communicating in the virtual space, and
a fourth area for displaying one or more contacts corresponding to the second contact information; and
based on a second input being received with respect to the second user interface, display a third user interface of a second application for representing the virtual space.
8 . The electronic device of claim 7 , wherein the second contact information includes:
a profile image of each of one or more characters respectively associated with one or more users, and
a label image for each of the one or more characters, in association with the profile image of each of the one or more characters,
wherein the one or more users are related to the one or more contacts corresponding to the second contact information.
9 . The electronic device of claim 8 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on the second user interface being displayed, receive the second input for selecting at least one user among the one or more users, and
based on the second input, display the third user interface representing the virtual space including a user character of the electronic device and at least one character respectively associated with the at least one user selected according to the second input.
10 . The electronic device of claim 9 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
control the communication circuitry to transmit, to at least one external electronic device of the at least one user, a signal configured to cause the at least one external electronic device to display a notification for guiding entry into the virtual space.
11 . The electronic device of claim 10 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on the second input, display a plurality of virtual spaces, and
based on a third input for selecting the virtual space among the plurality of virtual spaces, display the third user interface of the second application.
12 . The electronic device of claim 10 , wherein the label image for each of the one or more characters indicates a state of a corresponding user, and
wherein the state of a corresponding user is identified based on a location of the corresponding user.
13 . The electronic device of claim 9 , further comprising:
a camera; and
a microphone,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
switch an operation mode of the second application from a standby mode to a connection mode based on identifying that the at least one user enters the virtual space using the at least one character,
activate the camera and the microphone while the operation mode of the second application is the connection mode,
obtain information on a user of the electronic device using the camera and the microphone, and
based on the information on the user, control motion of the user character.
14 . The electronic device of claim 13 , wherein the instructions, when executed by the at least one processor, cause the electronic device to control the display to display a plurality of visual objects for controlling activity of the user character in the virtual space, superimposed on the virtual space based on the at least one user entering the virtual space using the at least one character.
15 . The electronic device of claim 14 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
identify an input for a first visual object for displaying a content in the virtual space, among the plurality of visual objects, and
based on the input for the first visual object, control the display to display at least one content among a plurality of contents stored in the memory in association with the user character in the virtual space.
16 . The electronic device of claim 14 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
identify an input for a second visual object for changing the operation mode of the second application among the plurality of visual objects,
switch the operation mode of the second application from the connection mode to the standby mode based on the input for the second visual object, and
while the operation mode of the second application is the standby mode, deactivate the camera and the microphone.
17 . The electronic device of claim 14 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
identify an input for a third visual object for exiting the virtual space among the plurality of visual objects, and
suspend, based on the input for the third visual object, execution of the second application.
18 . The electronic device of claim 17 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on execution of the second application being suspended, receive a signal configured to cause the electronic device to display a notification for guiding entry into a virtual space from an external electronic device, and
provide, based on the signal, the notification using a part of the user character displayed on a home screen, and
enter one of a plurality of virtual spaces using the user character by executing the second application in response to identifying at least one touch input for the part of the user character.
19 . The electronic device of claim 17 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
display a home screen using the display based on execution of the second application being suspended, and
in response to identifying at least one touch input on the home screen, control the display to display a plurality of images representing a plurality of virtual spaces including the virtual space, which can be entered in a state that the execution of the second application is suspended.
20 . The electronic device of claim 7 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
identify an input for entering another virtual space distinct from the virtual space by a user of the electronic device, while the user is in the virtual space using a user character, and
control the display to display a list of virtual spaces, including the virtual space and the other virtual space.