Display a background with a text
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								assets/Pond_in_Proteus.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/Pond_in_Proteus.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 146 KiB | 
							
								
								
									
										
											BIN
										
									
								
								assets/Pond_in_Proteus_1024-800.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/Pond_in_Proteus_1024-800.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 150 KiB | 
							
								
								
									
										8
									
								
								conf.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								conf.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| -- Set windows size and add a title | ||||
| function love.conf(t) | ||||
|   t.title = "Menu displayer" | ||||
|   t.version = "0.10.2" | ||||
|   t.window.height = 800 | ||||
|   t.window.width = 1024 | ||||
|   t.window.resizable = true | ||||
| end | ||||
							
								
								
									
										12
									
								
								menu.moon
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								menu.moon
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| homeBackground = nil | ||||
|  | ||||
| -- Load elements. What did you expect?! | ||||
| love.load = (arg) -> | ||||
|     homeBackground = love.graphics.newImage "assets/Pond_in_Proteus_1024-800.png" | ||||
|  | ||||
| -- Display Hello World | ||||
| love.draw = -> | ||||
|     --love.graphics.print "Hello World!", 400, 300 | ||||
|     love.graphics.draw homeBackground, 0, 0 | ||||
|     love.graphics.print "Hello World!", love.graphics.getWidth() / 2, love.graphics.getHeight() / 2 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user