Added plants. Added game time management.
This commit is contained in:
		
							
								
								
									
										33
									
								
								assets/plants/Plantable.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								assets/plants/Plantable.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<ItemCollection>
 | 
			
		||||
 | 
			
		||||
    <GameObject name="Ugliceea">
 | 
			
		||||
        <Transform />
 | 
			
		||||
        <Sprite name="Ugliceea" anchorX="0" anchorY=".5">
 | 
			
		||||
            <State name="0">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="0" w="1" h="2" duration="1" />
 | 
			
		||||
            </State>
 | 
			
		||||
            <State name="1">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="1" w="1" h="2" duration="1" />
 | 
			
		||||
            </State>
 | 
			
		||||
            <State name="2">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="2" w="1" h="2" duration="1" />
 | 
			
		||||
            </State>
 | 
			
		||||
            <State name="3">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="3" w="1" h="2" duration="1" />
 | 
			
		||||
            </State>
 | 
			
		||||
            <State name="4">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="4" w="1" h="2" duration="1" />
 | 
			
		||||
            </State>            
 | 
			
		||||
        </Sprite>
 | 
			
		||||
        <SpriteRenderer />
 | 
			
		||||
        <Plant needsWater="false" maxDaysWithoutWater="3">
 | 
			
		||||
            <State len="1" />
 | 
			
		||||
            <State len="1" />
 | 
			
		||||
            <State len="2" />
 | 
			
		||||
            <State len="1" />
 | 
			
		||||
            <State len="-1" />
 | 
			
		||||
        </Plant>
 | 
			
		||||
    </GameObject>
 | 
			
		||||
 | 
			
		||||
</ItemCollection>
 | 
			
		||||
							
								
								
									
										16
									
								
								assets/plants/Seeds.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								assets/plants/Seeds.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8" ?>
 | 
			
		||||
<ItemCollection>
 | 
			
		||||
 | 
			
		||||
    <GameObject name="Ugliceea seed">
 | 
			
		||||
        <Transform />
 | 
			
		||||
        <Sprite name="Ugliceea seed" anchorX="0" anchorY="1">
 | 
			
		||||
            <State name="0">
 | 
			
		||||
                <Frame tileSet="plants/graphics/Ugliceea.png" cell="5" w="1" h="1" duration="1" />
 | 
			
		||||
            </State>
 | 
			
		||||
        </Sprite>
 | 
			
		||||
        <SpriteRenderer />
 | 
			
		||||
        <Item name="Ugliceea seed" description="A pretty interesting plant." />
 | 
			
		||||
        <Seed plantName="Ugliceea" />
 | 
			
		||||
    </GameObject>
 | 
			
		||||
 | 
			
		||||
</ItemCollection>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								assets/plants/graphics/Ugliceea.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/plants/graphics/Ugliceea.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 697 B  | 
		Reference in New Issue
	
	Block a user