rename /apps/lua/ to /apps/twnlua/
This commit is contained in:
		
							
								
								
									
										3
									
								
								apps/twnlua/data/packs/data.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								apps/twnlua/data/packs/data.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| [[deps]] | ||||
| source = "../../common-data" # where does it come from, might be an url | ||||
| name = "common-data"         # should be globally unique | ||||
							
								
								
									
										31
									
								
								apps/twnlua/data/scripts/game.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								apps/twnlua/data/scripts/game.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| ORIGIN = { x = 320, y = 180 } | ||||
| RADIUS = 48 | ||||
| offset = { x = 0, y = 0 } | ||||
| angle = 0 | ||||
|  | ||||
| function game_tick() | ||||
|     rectangle { | ||||
|         rect = { x = 0, y = 0, w = 640, h = 360 }, | ||||
|         color = { r = 127, g = 0, b = 127, a = 255 }, | ||||
|     } | ||||
|  | ||||
|     sprite { | ||||
|         path = "/assets/title.png", | ||||
|         rect = { | ||||
|             x = 320 - (320 / 2), | ||||
|             y = 180 - (128 / 2), | ||||
|             w = 320, | ||||
|             h = 128, | ||||
|         }, | ||||
|     } | ||||
|  | ||||
|     text { | ||||
|         string = "IT KEEPS HAPPENING", | ||||
|         position = offset, | ||||
|         font = "/fonts/kenney-pixel.ttf", | ||||
|     } | ||||
|  | ||||
|     offset.x = ORIGIN.x + (math.cos(angle) * RADIUS) | ||||
|     offset.y = ORIGIN.y + (math.sin(angle) * RADIUS) | ||||
|     angle = angle + 0.1 | ||||
| end | ||||
							
								
								
									
										11
									
								
								apps/twnlua/data/twn.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/twnlua/data/twn.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| [about] | ||||
| title = "Lua Townengine!" | ||||
| developer = "Somebody" | ||||
| app_id = "twnlua" | ||||
| dev_id = "somebody" | ||||
|  | ||||
| [game] | ||||
| base_render_width = 640 | ||||
| base_render_height = 360 | ||||
|  | ||||
| [engine] | ||||
		Reference in New Issue
	
	Block a user