 6726e40768
			
		
	
	
		6726e40768
		
			
		
	
	
	
	
		
			
			* adds Lua language support * makes the library generic, allowing for easy extension for more languages * small improvements and fixes
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| let my_state = #{
 | |
|     iterations: 0,
 | |
| };
 | |
| 
 | |
| fn on_update() {
 | |
|     my_state.iterations += 1;
 | |
|     print("on_update called " + my_state.iterations + " times");
 | |
| 
 | |
|     if (my_state.iterations >= 10) {
 | |
|         print("calling quit");
 | |
|         quit();
 | |
|     }
 | |
| }
 |