main
			
			
		
		
							parent
							
								
									6c5d62dedc
								
							
						
					
					
						commit
						482562da4c
					
				
							
								
								
									
										6
									
								
								main.py
								
								
								
								
							
							
						
						
									
										6
									
								
								main.py
								
								
								
								
							|  | @ -186,8 +186,8 @@ else: | |||
|     f_line = [276, 70, 200, 32] | ||||
|     s_line = [276, 105, 200, 32] | ||||
|     s_button = [479, 70, 24, 40] | ||||
|     arrow1 = (485, 0, 21, 32) | ||||
|     arrow2 = (509, 0, 21, 32) | ||||
|     arrow1 = (506, 0, 26, 34) | ||||
|     arrow2 = (536, 0, 26, 34) | ||||
|     spaces2 = (4, 0, 2, 5, 60, 80) | ||||
|     spaces3 = [50, 40, 43] | ||||
|     if current_style == STYLE_CHOICES[2]: | ||||
|  | @ -878,7 +878,6 @@ def render_text_in_rect(long_text, rect_area): | |||
| 
 | ||||
|     return text_surfaces, text_rects | ||||
| 
 | ||||
| # Example usage | ||||
| rect_area = non_movable_area.copy() | ||||
| rect_area.x += text_size[1] | ||||
| rect_area.width -= text_size[1] | ||||
|  | @ -1267,7 +1266,6 @@ while run: | |||
| 
 | ||||
|                 surface = pygame.Surface((non_movable_area.width, non_movable_area.height), pygame.SRCALPHA) | ||||
|                 surface.fill((0, 0, 0, alpha)) | ||||
|                 print(alpha) | ||||
|                 screen.blit(surface, (non_movable_area.x, non_movable_area.y)) | ||||
| 
 | ||||
|                 render_text("You win !!", (win_area.x, win_area.y), screen, (255, 255, 255, text_alpha), True) | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
|    "albums": { | ||||
|       "Original images": { | ||||
|          "1.png": [ | ||||
|             0, | ||||
|             1, | ||||
|             0, | ||||
|             0, | ||||
|             0, | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| {"puzzle 4x4": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "puzzle 3x3": [[1, 2, 3], [4, 5, 6], [7, 8, 0]], "current 4x4": {"matrix": [[15, 7, 2, 3], [10, 14, 5, 4], [13, 6, 0, 12], [9, 1, 8, 11]], "selected_image": "images/albums/Original images/1.png"}, "current 3x3": {"matrix": [[6, 7, 0], [3, 4, 1], [5, 8, 2]], "selected_image": "/images/albums/Birds/1.png"}} | ||||
| {"puzzle 4x4": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "puzzle 3x3": [[1, 2, 3], [4, 5, 6], [7, 8, 0]], "current 4x4": {"matrix": [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 0]], "selected_image": "images/albums/Original images/1.png"}, "current 3x3": {"matrix": [[6, 7, 0], [3, 4, 1], [5, 8, 2]], "selected_image": "/images/albums/Birds/1.png"}} | ||||
|  | @ -1,11 +1,11 @@ | |||
| { | ||||
|   "size": "medium", | ||||
|   "size": "big", | ||||
|   "style": "classic", | ||||
|   "grid": "4x4", | ||||
|   "gui color": 0, | ||||
|   "music": { | ||||
|     "on": true, | ||||
|     "volume": 1, | ||||
|     "volume": 8, | ||||
|     "version": "sunny day" | ||||
|   }, | ||||
|   "sound": { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue