CSC3224_Computer_Games_Development / GameEngine / Engine_Resources / GameLevels / Level3.json
Level3.json
Raw
{
	"Textures" : [
		{
			"Identifier" : "player",
			"Path": "../GameEngine/Engine_Resources/Textures/Mario.png"
		},		
	
		{
			"Identifier" : "obstacle",
			"Path": "../GameEngine/Engine_Resources/Textures/Mario_jump.png"
		},	
	

		{
			"Identifier" : "Princess",
			"Path": "../GameEngine/Engine_Resources/Textures/Princess.png"
		},	
	
	
		{
			"Identifier" : "background",
			"Path": "../GameEngine/Engine_Resources/Textures/raider.png"
		},
			{
			"Identifier" : "Tower",
			"Path": "../GameEngine/Engine_Resources/Textures/Tower.png"
		},
		
		
		
	
		
		{
			"Identifier" : "ObstacleSmall",
			"Path": "../GameEngine/Engine_Resources/Textures/ObstacleSmall.png"
		},	
		{
			"Identifier" : "ObstacleMedium",
			"Path": "../GameEngine/Engine_Resources/Textures/ObstacleMedium.png"
		},
			{
			"Identifier" : "ObstacleBig",
			"Path": "../GameEngine/Engine_Resources/Textures/ObstacleBig.png"
		},
		
		
		
		
		{
			"Identifier" : "basePlatform",
			"Path": "../GameEngine/Engine_Resources/Textures/Terrain.png"
		}

		
	],
	"Sounds" : [
		{
			"Identifier" : "jump",
			"Path": "../GameEngine/Engine_Resources/Sounds/jump.wav"	
		}
	],
	"Entities":[
		{
			"Events" : [ // Player
				{
					"EventType" : 3,
					"SoundID" : "jump"
				},
				
				{
					"BodyType" : 2,
					"EventType" : 2,
					"FixedRotation" : true,
					"Fixtures" : [
						{
							"Density" : 1.0,
							"Friction" : 0.0,
							"Restitution" : 0.0,
							"Height" : 32.0,
							"Width" : 32.0
						}
					]
				},
				
				{
					"EventType" : 1,
					"TextName" : "player"
				}
			],
			
			"Sprite" : { // Player
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 100.0,
				"PosY" : 495.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "player",
				"TextureRectHeight" : 32,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 32,
				"Z-Order" : 0
			}
		},
		
		{
			"Events" : [ //Base Platform
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 32.0,
							"Width" : 5000.0
						}
					]
				}
			],	
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 325.0,
				"PosY" : 572.0,
				"ScaleX" : 22.0,
				"ScaleY" : 1.0,
				"TextureID" : "basePlatform",
				"TextureRectHeight" : 32,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 64,
				"Z-Order" : 0
			}
		},
		
			

		{
			"Events" : [ // Tower
				{
					"EventType" : 1,
					"TextName" : "Tower"
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 990.0,
				"PosY" : 410.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "Tower",
				"TextureRectHeight" : 180,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 96,
				"Z-Order" : 0		
			}
		},	
			
			
		{
			"Events" : [ // Obstacle1
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 38.0,
							"Width" : 25.0
						}
					]				
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 195.0,
				"PosY" : 536.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleSmall",
				"TextureRectHeight" : 40,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
	
		{
			"Events" : [ // Obstacle1
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 38.0,
							"Width" : 25.0
						}
					]				
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 245.0,
				"PosY" : 536.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleSmall",
				"TextureRectHeight" : 40,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
		
	
	
	{
			"Events" : [ // Obstacle1
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 38.0,
							"Width" : 25.0
						}
					]				
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 300.0,
				"PosY" : 536.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleSmall",
				"TextureRectHeight" : 40,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
	
	
			{
			"Events" : [ // Obstacle2
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 40.0,
							"Width" : 25.0
						}
					]			
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 345.0,
				"PosY" : 510.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleMedium",
				"TextureRectHeight" : 65,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
		
		
		{
			"Events" : [ // Obstacle3
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 40.0,
							"Width" : 30.0
						}
					]			
				}
			],
			"Sprite" : {
			
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 410.0,
				"PosY" : 495.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleBig",
				"TextureRectHeight" : 80,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
		
		
		
		
			{
			"Events" : [ // Obstacle1
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 38.0,
							"Width" : 25.0
						}
					]				
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 510.0,
				"PosY" : 536.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleSmall",
				"TextureRectHeight" : 40,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
	
		
	
		
				{
			"Events" : [ // Obstacle2
				{
					"BodyType" : 0,
					"EventType" : 2,
					"Fixtures" : [
						{
							"Density" : 0.0,
							"Friction" : 0.5,
							"Restitution" : 0.0,
							"Height" : 40.0,
							"Width" : 25.0
						}
					]			
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 550.0,
				"PosY" : 510.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "ObstacleMedium",
				"TextureRectHeight" : 65,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 35,
				"Z-Order" : 0		
			}
		},
		
		
		{
			"Events" : [ // Princess
				{
					"EventType" : 1,
					"TextName" : "Princess"
				}
			],
			"Sprite" : {
				"EventType" : 0,
				"OriginX" : 16.0,
				"OriginY" : 16.0,
				"PosX" : 800.0,
				"PosY" : 556.0,
				"ScaleX" : 1.0,
				"ScaleY" : 1.0,
				"TextureID" : "Princess",
				"TextureRectHeight" : 32,
				"TextureRectLeft" : 0,
				"TextureRectTop" : 0,
				"TextureRectWidth" : 32,
				"Z-Order" : 0		
			}
		}	
	]	
}