Skip to content

Commit cd85171

Browse files
committed
Release 3.0.b0
1 parent bcee128 commit cd85171

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ Latest stable release (2.2):
2222
pip3 install sc8pr
2323
```
2424

25-
Alpha release (3.0.a3):
25+
Beta release (3.0.b0): Please note that **sc8prx** includes “extras” that have dependencies other than **pygame**. Use **sc8pr** if you just want the core features with no extra dependencies.
2626
```
27-
pip3 install https://github.com/dmaccarthy/sc8pr/archive/v3.0.a3.zip
28-
pip3 install https://github.com/dmaccarthy/sc8prx/archive/v3.0.a3.zip
27+
pip3 install sc8prx==3.0b0
2928
```
3029

3130
Development version (3.0.dev):

sc8pr/__init__.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with "sc8pr". If not, see <http://www.gnu.org/licenses/>.
1717

1818

19-
version = 3, 0, "a5"
19+
version = 3, 0, "b0"
2020
print("sc8pr {}.{}.{}: https://dmaccarthy.github.io/sc8pr".format(*version))
2121

2222
import sys, struct
@@ -209,7 +209,7 @@ def blitPosition(self, offset, blitSize):
209209
def calcBlitRect(self, blitSize):
210210
cv = self.canvas
211211
offset = cv.rect.topleft if cv else (0,0)
212-
return pygame.Rect(self.blitPosition(offset, blitSize), blitSize) ## !!!
212+
return pygame.Rect(self.blitPosition(offset, blitSize), blitSize)
213213

214214
def relPos(self, pos):
215215
"Calculate coordinates relative to the graphic object"
@@ -653,20 +653,12 @@ def convert(self, alpha=False):
653653
img = self.image
654654
srf = surface(img, alpha)
655655
return self if srf is img else Image(srf)
656-
# if alpha is not None and self.original.get_bitsize() != (32 if alpha else 24):
657-
# srf = self.image
658-
# img = Image(srf.convert_alpha() if alpha else srf.convert(24))
659-
# else: img = self
660-
# return img
661656

662657
@property
663658
def rgb(self): return self.convert(False)
664659

665660
@property
666661
def rgba(self): return self.convert(True)
667-
# "Return a new Image of the original surface, ensuring it is RGBA"
668-
# srf = self.original
669-
# return Image(srf if hasAlpha(srf) else srf.convert_alpha())
670662

671663
def tiles(self, cols=1, rows=1, flip=0, padding=0):
672664
"Create a list of images from a spritesheet"

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = sc8pr
3-
version = 3.0.a4
3+
version = 3.0.b0
44
author = D.G. MacCarthy
55
author_email = sc8pr.py@gmail.com
66
url = https://dmaccarthy.github.io/sc8pr
@@ -10,7 +10,7 @@ long_description_content_type = text/markdown
1010
keywords = graphics animation sprite gui robotics pygame educational
1111
license = GPLv3
1212
classifiers =
13-
Development Status :: 3 - Alpha
13+
Development Status :: 4 - Beta
1414
Intended Audience :: Developers
1515
Intended Audience :: Education
1616
License :: OSI Approved :: GNU General Public License v3 (GPLv3)

0 commit comments

Comments
 (0)