Changes

Jump to: navigation, search

An iOS 8 Swift Sprite Kit Level Editor Game Tutorial

682 bytes added, 18:41, 7 November 2016
no edit summary
<htmlet>ios9_upgradeios10</htmlet>
[[Image:spritekitdemo_architecture.png|The node hierarchy of the example iOS 10 Sprite Kit game]]
Figure 68-1
[[Image:xcode_6_default_sprite_project.png]]
Figure 68-2
== Modifying the GameScene SpriteKit Scene File ==
As previously outlined, Xcode has provided a SpriteKit scene file (GameScene.sks) for a scene named GameScene together with a corresponding class declaration contained within the GameScene.swift file. The next task is to repurpose this scene to act as the welcome screen for the game. Begin by selecting the GameScene.sks file so that it loads into the SpriteKit Level Editor as shown in Figure 68 -3:
 [[Image:xcode_8_game_scene_editor.png]]
Figure 68-3
[[Image:xcode_8_spritekit_attributes_inspector.png]]
Figure 68-4
[[Image:xcode_8_spritekit_welcome_screen.png]]
Figure 68-5
[[Image:xcode_8_create_spritekit_scene.png]]
Figure 68-6
[[Image:ios_8_archer_texture_atlas_added.png]]
Figure 68-7
[[Image:spritekit_level_editor_image_in_media_library.png]]
Figure 68-8
[[Image:xcode_8_archer_Added_to_scene.png]]
Figure 68-9
[[Image:ios_8_archer_sprite_alpha_mask.png]]
Figure 68-10
[[Image:xcode_6_spritekit_alpha_mask.png]]
Figure 68-11
[[Image:xcode_7_add_animate_texture_action.png]]
Figure 68-12
[[Image:xcode_7_add_textures_to_action.png]]
Figure 68-13
[[Image:xcode_live_Editor_marker.png]]
Figure 68-14
[[Image:xcode_7_spritekit_convert_to_reference.png]]
Figure 68-15
[[Image:xcode_7_action_select_scene.png]]
Figure 68-16
[[Image:xcode_7_select_action_For_testing.png]]
Figure 68-17
[[Image:ios_8_spritekit_demo_running.png]]
Figure 68-18

Navigation menu