mirror of
				https://github.com/NoelFB/tiny_link.git
				synced 2025-11-04 02:21:33 +08:00 
			
		
		
		
	basic components
This commit is contained in:
		
							
								
								
									
										0
									
								
								src/assets/sprite.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/assets/sprite.cpp
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										26
									
								
								src/assets/sprite.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/assets/sprite.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
#include <blah.h>
 | 
			
		||||
 | 
			
		||||
using namespace Blah;
 | 
			
		||||
 | 
			
		||||
namespace TL
 | 
			
		||||
{
 | 
			
		||||
	struct Sprite
 | 
			
		||||
	{
 | 
			
		||||
		struct Frame
 | 
			
		||||
		{
 | 
			
		||||
			Subtexture image;
 | 
			
		||||
			float duration;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		struct Animation
 | 
			
		||||
		{
 | 
			
		||||
			String name;
 | 
			
		||||
			Vector<Frame> frames;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		String name;
 | 
			
		||||
		Vec2 origin;
 | 
			
		||||
		Vector<Animation> animations;
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user