repl.it
@LukeShomper/

ALPHAMONV

Pygame

Simply a pokemon spinoff

fork
loading
Files
  • main.py
  • AlphamonSprites
  • GuiFiles
  • Artist.png
  • Colors.py
  • nohup.out
  • Save1.txt
  • Save2.txt
  • Save3.txt
  • Save4.txt
  • Save5.txt
  • Save6.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import pygame
from Colors import *
pygame.init()
Splash = True
Saves = False
ScreenX = 500
ScreenY = 500
arrowPos = 1
Screen = pygame.display.set_mode((ScreenX, ScreenY))
SplashImage = pygame.image.load('Artist.png')
SplashImageR = SplashImage.get_rect()
SavesImage = pygame.image.load('GuiFiles/Saves.png')
SavesImageR = SavesImage.get_rect()
ArrowImage = pygame.image.load('GuiFiles/arrow.png')
ArrowImageR = ArrowImage.get_rect()
def clear():
    Screen.fill(white)
def Screenupdate():
    pygame.display.flip()
def ShowText(String, Color, Size, Xoffset, Yoffset):
    font = pygame.font.Font('freesansbold.ttf', Size)
    text = font.render(String, True, Color, )
    textRect = text.get_rect()
    textRect.center = (ScreenX // Xoffset, ScreenY // Yoffset) 
    Screen.blit(text, textRect)
    Screenupdate()
Screen.blit(SplashImage, SplashImageR)
Screenupdate()
while Splash:
    ShowText('A L P H A M O N', lime, 32, 2, 25)
    ShowText('Ver 1.0.0', yellow, 24, 10, 1.03 )    
    ShowText('Tem', red, 32, 5, 10)
    ShowText('Bem', green, 32, 2, 10)
    ShowText('Jem', lightBlue, 32, 1.3 , 10)
    ShowText('Press', green, 42, 5, 2)
    ShowText('Start', green, 42, 1.3, 2)
    for event in pygame.event.get():
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_RETURN:
                Splash = False
                Screen.fill(white)
                Screenupdate()
                Saves = True
while Saves:
    clear()
    Screen.blit(SavesImage, SavesImageR)
    Screenupdate()
    f = open("Save1.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 20)
    f = open("Save2.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 8)
    f = open("Save3.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 5)
    f = open("Save4.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 3.5)
    f = open("Save5.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 2.7)
    f = open("Save6.txt")
    B = f.readline()
    f.close()
    ShowText(B, black, 32, 2, 2.3)
    for event in pygame.event.get():
        if event.type == pygame.KEYDOWN:
            if event.key == pygame.K_DOWN:
                arrowPos += 1
            if event.key == pygame.K_UP:
                arrowPos -= 1
    if arrowPos == 1:
        ArrowImageR.center = (ScreenX // 6.5, ScreenY // 20)
    if arrowPos == 2:
        ArrowImageR.center = (ScreenX // 6.5, ScreenY // 8)
    Screen.blit(ArrowImage, ArrowImageR)
    Screenupdate()
?