WinColl 1.2.9__tar.gz → 1.2.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. {wincoll-1.2.9/WinColl.egg-info → wincoll-1.2.10}/PKG-INFO +1 -1
  2. {wincoll-1.2.9 → wincoll-1.2.10/WinColl.egg-info}/PKG-INFO +1 -1
  3. {wincoll-1.2.9 → wincoll-1.2.10}/po/wincoll.pot +4 -4
  4. {wincoll-1.2.9 → wincoll-1.2.10}/pyproject.toml +1 -1
  5. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/wincoll_game.py +14 -36
  6. {wincoll-1.2.9 → wincoll-1.2.10}/COPYING +0 -0
  7. {wincoll-1.2.9 → wincoll-1.2.10}/MANIFEST.in +0 -0
  8. {wincoll-1.2.9 → wincoll-1.2.10}/README.md +0 -0
  9. {wincoll-1.2.9 → wincoll-1.2.10}/WinColl.egg-info/SOURCES.txt +0 -0
  10. {wincoll-1.2.9 → wincoll-1.2.10}/WinColl.egg-info/dependency_links.txt +0 -0
  11. {wincoll-1.2.9 → wincoll-1.2.10}/WinColl.egg-info/entry_points.txt +0 -0
  12. {wincoll-1.2.9 → wincoll-1.2.10}/WinColl.egg-info/requires.txt +0 -0
  13. {wincoll-1.2.9 → wincoll-1.2.10}/WinColl.egg-info/top_level.txt +0 -0
  14. {wincoll-1.2.9 → wincoll-1.2.10}/po/de.po +0 -0
  15. {wincoll-1.2.9 → wincoll-1.2.10}/po/el.po +0 -0
  16. {wincoll-1.2.9 → wincoll-1.2.10}/po/es.po +0 -0
  17. {wincoll-1.2.9 → wincoll-1.2.10}/po/fr.po +0 -0
  18. {wincoll-1.2.9 → wincoll-1.2.10}/po/ka.po +0 -0
  19. {wincoll-1.2.9 → wincoll-1.2.10}/po/nb.po +0 -0
  20. {wincoll-1.2.9 → wincoll-1.2.10}/po/pt_BR.po +0 -0
  21. {wincoll-1.2.9 → wincoll-1.2.10}/po/ro.po +0 -0
  22. {wincoll-1.2.9 → wincoll-1.2.10}/po/sk.po +0 -0
  23. {wincoll-1.2.9 → wincoll-1.2.10}/po/sr.po +0 -0
  24. {wincoll-1.2.9 → wincoll-1.2.10}/po/sv.po +0 -0
  25. {wincoll-1.2.9 → wincoll-1.2.10}/po/uk.po +0 -0
  26. {wincoll-1.2.9 → wincoll-1.2.10}/setup.cfg +0 -0
  27. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/__init__.py +0 -0
  28. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/__main__.py +0 -0
  29. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/01 A gentle introduction.tmx +0 -0
  30. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/02 Hi! from Pav.tmx +0 -0
  31. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/03 On a Coconut Island.tmx +0 -0
  32. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/04 Not a rip-off.tmx +0 -0
  33. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/05 Long way round.tmx +0 -0
  34. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/06 Which key.tmx +0 -0
  35. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/07 Fuzzy.tmx +0 -0
  36. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/08 Spiral Galaxy.tmx +0 -0
  37. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/09 Escape from Pompeii.tmx +0 -0
  38. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/10 Riddle me this.tmx +0 -0
  39. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/11 Doctor Jones, I presume.tmx +0 -0
  40. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/12 Stairway to Hell.tmx +0 -0
  41. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/13 Round and round.tmx +0 -0
  42. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/14 Alchemy.tmx +0 -0
  43. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/15 Race to the top.tmx +0 -0
  44. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Blob.png +0 -0
  45. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Brick.png +0 -0
  46. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Collect.wav +0 -0
  47. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Diamond.png +0 -0
  48. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Die.png +0 -0
  49. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Die.wav +0 -0
  50. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Earth.png +0 -0
  51. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/EndGame.wav +0 -0
  52. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/EndLevel.wav +0 -0
  53. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Gap.png +0 -0
  54. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Hero.png +0 -0
  55. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Key.png +0 -0
  56. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Rock.png +0 -0
  57. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Safe.png +0 -0
  58. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Slide.wav +0 -0
  59. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/Unlock.wav +0 -0
  60. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/WinColl.tsx +0 -0
  61. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/app-icon.png +0 -0
  62. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/levels/title.png +0 -0
  63. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/de/LC_MESSAGES/wincoll.mo +0 -0
  64. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/el/LC_MESSAGES/wincoll.mo +0 -0
  65. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/es/LC_MESSAGES/wincoll.mo +0 -0
  66. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/fr/LC_MESSAGES/wincoll.mo +0 -0
  67. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/ka/LC_MESSAGES/wincoll.mo +0 -0
  68. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/nb/LC_MESSAGES/wincoll.mo +0 -0
  69. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/pt_BR/LC_MESSAGES/wincoll.mo +0 -0
  70. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/ro/LC_MESSAGES/wincoll.mo +0 -0
  71. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/sk/LC_MESSAGES/wincoll.mo +0 -0
  72. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/sr/LC_MESSAGES/wincoll.mo +0 -0
  73. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/sv/LC_MESSAGES/wincoll.mo +0 -0
  74. {wincoll-1.2.9 → wincoll-1.2.10}/wincoll/locale/uk/LC_MESSAGES/wincoll.mo +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: WinColl
3
- Version: 1.2.9
3
+ Version: 1.2.10
4
4
  Summary: Simple rocks-and-diamonds game
5
5
  Author-email: Reuben Thomas <rrt@sc3d.org>
6
6
  License: GPL v3 or later
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: WinColl
3
- Version: 1.2.9
3
+ Version: 1.2.10
4
4
  Summary: Simple rocks-and-diamonds game
5
5
  Author-email: Reuben Thomas <rrt@sc3d.org>
6
6
  License: GPL v3 or later
@@ -6,9 +6,9 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: PACKAGE 1.2.9\n"
9
+ "Project-Id-Version: PACKAGE 1.2.10\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2026-07-07 23:31+0100\n"
11
+ "POT-Creation-Date: 2026-07-14 15:33+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,14 +17,14 @@ msgstr ""
17
17
  "Content-Type: text/plain; charset=CHARSET\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
 
20
- #: wincoll/wincoll_game.py:70
20
+ #: wincoll/wincoll_game.py:67
21
21
  msgid "Collect all the diamonds while digging through earth dodging rocks."
22
22
  msgstr ""
23
23
 
24
24
  #. TRANSLATORS: Please keep this text wrapped to 40 characters. The font
25
25
  #. used in-game is lacking many glyphs, so please test it with your
26
26
  #. language and let me know if I need to add glyphs.
27
- #: wincoll/wincoll_game.py:78
27
+ #: wincoll/wincoll_game.py:75
28
28
  msgid ""
29
29
  "Collect all the diamonds on each level.\n"
30
30
  "Get a key to turn safes into diamonds.\n"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "WinColl"
3
- version = "1.2.9"
3
+ version = "1.2.10"
4
4
  description = "Simple rocks-and-diamonds game"
5
5
  license = {text = "GPL v3 or later"}
6
6
  authors = [{name = "Reuben Thomas", email = "rrt@sc3d.org"}]
@@ -50,20 +50,17 @@ class WincollGame(Game[Tile]):
50
50
  self.diamonds: int
51
51
  self.die_image: pygame.Surface
52
52
  self.die_sound: pygame.mixer.Sound
53
+ self.game_window_max = (15, 15)
54
+ self.screen_extra_x_chars = 4
55
+ self.default_background_colour = Color(0, 0, 255)
53
56
 
54
- def init_screen(self) -> None:
55
- super().init_screen()
56
- # Window can be as wide as the screen, but must leave room for the
57
- # level title.
58
- self.left_margin = 4 * self.font_pixels
59
- self.window_size = (
60
- min(
61
- self.window_size[0] * self.window_scale,
62
- self.screen_size[0] - self.left_margin,
63
- )
64
- // self.window_scale,
65
- self.window_size[1],
66
- )
57
+ self.diamond_image: pygame.Surface
58
+
59
+ self.collect_sound: pygame.mixer.Sound
60
+ self.rock_sound: pygame.mixer.Sound
61
+ self.unlock_sound: pygame.mixer.Sound
62
+ self.end_level_sound: pygame.mixer.Sound
63
+ self.end_game_sound: pygame.mixer.Sound
67
64
 
68
65
  @staticmethod
69
66
  def description() -> str:
@@ -82,19 +79,6 @@ Avoid falling rocks!
82
79
  """)
83
80
  # fmt: on
84
81
 
85
- screen_size = (640, 512)
86
- window_size = (240, 240)
87
- default_background_colour = Color(0, 0, 255)
88
- window_scale = 2
89
-
90
- diamond_image: pygame.Surface
91
-
92
- collect_sound: pygame.mixer.Sound
93
- rock_sound: pygame.mixer.Sound
94
- unlock_sound: pygame.mixer.Sound
95
- end_level_sound: pygame.mixer.Sound
96
- end_game_sound: pygame.mixer.Sound
97
-
98
82
  # Utility methods.
99
83
  def reset_falling(self) -> None:
100
84
  self.falling = False
@@ -118,15 +102,6 @@ Avoid falling rocks!
118
102
  self.end_game_sound = pygame.mixer.Sound(str(self.find_asset("EndGame.wav")))
119
103
  self.end_game_sound.set_volume(self.default_volume)
120
104
 
121
- def restart_level(self) -> None:
122
- super().restart_level()
123
- self.window_pos = (
124
- (self.surface.get_width() - self.left_margin - self.window_scaled_width)
125
- // 2
126
- + self.left_margin,
127
- self.window_pos[1],
128
- )
129
-
130
105
  def init_game(self) -> None:
131
106
  super().init_game()
132
107
  self.diamonds = 0
@@ -229,8 +204,11 @@ Avoid falling rocks!
229
204
 
230
205
  def show_status(self) -> None:
231
206
  super().show_status()
207
+ score_diamond = pygame.transform.scale(
208
+ self.diamond_image, (self.font_pixels, self.font_pixels)
209
+ )
232
210
  self.surface.blit(
233
- self.diamond_image,
211
+ score_diamond,
234
212
  (
235
213
  (self.window_pos[0] - self.font_pixels) // 2,
236
214
  int(1.5 * self.font_pixels),
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes