Skip to content

Commit

Permalink
Repo fix, 1.16.5.3
Browse files Browse the repository at this point in the history
Finally fixing the repo, enjoy 1.16.5.3 demo
  • Loading branch information
JustRedTTG committed Aug 27, 2021
1 parent 76f5691 commit 5174fc4
Show file tree
Hide file tree
Showing 62 changed files with 267 additions and 1,002 deletions.
16 changes: 0 additions & 16 deletions PKG-INFO

This file was deleted.

279 changes: 185 additions & 94 deletions pygameextra/pygameextra/__init__.py → __init__.py

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ if True:
ballSO[1] += 0.1
tick = 0
if ballSO[0] > 10 or ballSO[1] > 10:
ballSO = [10,10]
ballSO = [10,10]
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pygameextra as pe
pe.init()
pe.Layer[0][1] = (25, 25)
pe.display.make((500,500), "PGE Testing Utility", 0)
sp = pe.scriptpath+"examples/tester/"
#button images
Expand Down Expand Up @@ -39,20 +38,18 @@ s6.init()
s7.init()
# setup some more things...
bt = [
pe.text.quick.make('Buttons', 15, pe.math.center((0, 200, 100, 50))), #0
pe.text.quick.make('Sliders', 15, pe.math.center((100, 200, 100, 50))), #1
pe.text.quick.make('< Back', 15, pe.math.center((0, 0, 100, 50))), #2
pe.text.quick.make('Sprites', 15, pe.math.center((200, 200, 100, 50))), #3
pe.text.quick.make('Shapes', 15, pe.math.center((300, 200, 100, 50))), #4
pe.text.quick.make('Math', 15, pe.math.center((400, 200, 100, 50))), #5
pe.text.quick.make('Lerp', 15, pe.math.center((0, 200, 100, 50))), #6
pe.text.quick.make('Center', 15, pe.math.center((100, 200, 100, 50))), #7
pe.text.quick.make('< Math', 15, pe.math.center((0, 0, 100, 50))), #8
pe.text.quick.make('+', 15, pe.math.center((275, 200, 50, 50))), #9
pe.text.quick.make('-', 15, pe.math.center((175, 200, 50, 50))), #10
pe.text.quick.make("100", 15, pe.math.center((225, 200, 50, 50))), #11
pe.text.quick.make('+', 25, pe.math.center((25, pe.display.get.size()[1] - 25, 25, 25)), layer=1), #12
pe.text.quick.make('-', 25, pe.math.center((50, pe.display.get.size()[1] - 25, 25, 25)), layer=1) #13
pe.text.quick.make('Buttons', 15, pe.math.center((0, 200, 100, 50))),
pe.text.quick.make('Sliders', 15, pe.math.center((100, 200, 100, 50))),
pe.text.quick.make('< Back', 15, pe.math.center((0, 0, 100, 50))),
pe.text.quick.make('Sprites', 15, pe.math.center((200, 200, 100, 50))),
pe.text.quick.make('Shapes', 15, pe.math.center((300, 200, 100, 50))),
pe.text.quick.make('Math', 15, pe.math.center((400, 200, 100, 50))),
pe.text.quick.make('Lerp', 15, pe.math.center((0, 200, 100, 50))),
pe.text.quick.make('Center', 15, pe.math.center((100, 200, 100, 50))),
pe.text.quick.make('< Math', 15, pe.math.center((0, 0, 100, 50))),
pe.text.quick.make('+', 15, pe.math.center((275, 200, 50, 50))),
pe.text.quick.make('-', 15, pe.math.center((175, 200, 50, 50))),
pe.text.quick.make("100", 15, pe.math.center((225, 200, 50, 50)))
] # button texts
bt[8].color = pe.color.white
bt[8].init(bt[8])
Expand Down Expand Up @@ -82,32 +79,6 @@ def set_lerplength(data):
global lerplength
lerplength = data


def set_layer(move):
if move == "False":
pe.Layer[0][0] = False
elif move == "True":
pe.Layer[0][0] = True
elif move == "1":
pe.Layer[0][1] = (pe.Layer[0][1][0]+5, pe.Layer[0][1][1]+5)
s1.init()
s2.init()
s3.init()
s4.init()
s5.init()
s6.init()
s7.init()
elif move == "0":
pe.Layer[0][1] = (pe.Layer[0][1][0]-5, pe.Layer[0][1][1]-5)
s1.init()
s2.init()
s3.init()
s4.init()
s5.init()
s6.init()
s7.init()


# Testing Texts
#testtext = [
# pe.text.quick.small("pe.rect", (250,250), layer=1), # 0
Expand All @@ -129,7 +100,7 @@ testscore = 0
while True:
for pe.event.c in pe.event.get():
pe.event.quitcheckauto()
pe.fill.full(pe.color.verydarkgray, layer=1)
pe.fill.full(pe.color.verydarkgray)

if test == "slider":
sO = pe.slider.boxed((125, 100, 250, 15, 20), (255, 0, 0), 0, 100, sO, (0, 0, 255), (0, 0, 0), (0, 255, 0), True, (0, 0, 255))
Expand Down Expand Up @@ -205,7 +176,7 @@ while True:
pass
else:
pe.button.rect((0, 0, 100, 50), pe.color.white, pe.color.lightgray, bt[2], action=set_test, data="")

#

if test == "math_lerp":
if pe.display.get.size()[0] < 325 or pe.display.get.size()[1] < 250:
Expand Down Expand Up @@ -239,15 +210,6 @@ while True:
pe.draw.line(pe.color.white, (pe.display.get.size()[0],pe.display.get.size()[1]), lerp4, 5)
elif test == "math_center":
pe.draw.circle(pe.color.white, pe.math.center((0,0,pe.display.get.size()[0],pe.display.get.size()[1])), 5, 5)

s = pe.display.get.size()
if pe.Layer[0][0]:
pe.button.rect((0, s[1] - 25, 25, 25), pe.color.green, pe.color.red, action=set_layer, data="False", layer=1)
else:
pe.button.rect((0, s[1] - 25, 25, 25), pe.color.red, pe.color.green, action=set_layer, data="True", layer=1)
pe.button.rect((25, s[1] - 25, 25, 25), pe.color.blue, pe.color.darkblue,bt[12], action=set_layer, data="1", layer=1) # ++
pe.button.rect((50, s[1] - 25, 25, 25), pe.color.blue, pe.color.darkblue,bt[13], action=set_layer, data="0", layer=1) # --

if test != "testall":
pe.display.update()
pe.time.tick(300)
pe.time.tick(200)
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import pygameextra as pe
pe.init()
pe.Layer[0][1] = (25, 25)
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
8 changes: 4 additions & 4 deletions pygameextra/pygameextra/install.py → install.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def install(scriptpath, progress=0, __version__="1.6.5.2"):
download("dist/pygameextra_tester-0.0.0-py3.8.egg")
progress += 5
elif progress < 35:
download("examples/pong/pygameextra-pong")
download("examples/pong/pgerom-pong")
progress += 5
elif progress < 40:
download("examples/tester/pygameextra-tester")
download("examples/tester/pgerom-tester.py")
progress += 5
elif progress < 45:
download("examples/pong/font.ttf")
Expand Down Expand Up @@ -120,10 +120,10 @@ def install(scriptpath, progress=0, __version__="1.6.5.2"):
download("pygameextra_tester.egg-info/top_level.txt")
progress += 1
elif progress < 60:
download("examples/pong/pygameextra-pong")
download("examples/pong/pgerom-pong")
progress += 1
elif progress < 61:
download("examples/tester/pygameextra-tester")
download("examples/tester/pgerom-tester.py")
progress += 1
else:
progress += 10
Expand Down
File renamed without changes.
16 changes: 0 additions & 16 deletions pygameextra/PKG-INFO

This file was deleted.

Binary file not shown.
Binary file not shown.
209 changes: 0 additions & 209 deletions pygameextra/pygameextra/build/scripts-3.8/pygameextra-pong

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5174fc4

Please sign in to comment.