-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreditsView.swift
141 lines (137 loc) · 8.95 KB
/
CreditsView.swift
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
//
// File.swift
// SaveTheEnvironment
//
// Created by jpcm2 on 19/04/22.
//
import Foundation
import SwiftUI
struct CreditsView: View {
@EnvironmentObject var appState: AppState
var body: some View{
GeometryReader{ tam in
VStack{
Text("Credits")
.font(.custom(.titleFont, size: CGFloat(textSize - 10)))
.padding([.top, .horizontal], 30)
.foregroundColor(primaryColor)
ZStack{
Rectangle()
.fill(secondaryColor)
.padding([.horizontal, .bottom],30)
.frame(width: tam.size.width, height: 3*tam.size.height/4, alignment: .center)
ScrollView{
VStack(spacing: 20){
Text("Main Background: https://br.freepik.com/vetores-gratis/plano-de-fundo-detalhado-da-selva_13859419.htm , Author: freepik")
.padding(.horizontal, 40)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Flame image: https://www.flaticon.com/free-icon/bonfire_1249084 , Author: smalllikeart")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Trash Image: https://www.flaticon.com/free-icon/bin_1242145 , Author: srip")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Wheel Image: https://www.flaticon.com/free-icon/wheel_1242884 , Author: Pixel Perfect")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Axe Image: https://www.flaticon.com/free-icon/axe_998899 , Author: Freepik")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Tree Image: https://www.flaticon.com/free-icon/tree_490091, Author: Freepik")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Heart Image: https://www.flaticon.com/free-icon/heart_1243929, Author: Pixel Perfect")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Monkey Icon: https://www.flaticon.com/free-icon/monkey_863130, Author: mynamepong")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Snake Icon: https://www.flaticon.com/free-icon/snake_1137132, Author: Smashicons")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Banana Icon: https://www.flaticon.com/free-icon/banana_1135549, Author: Freepik")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
}
.padding(.bottom, 20)
VStack(spacing: 20){
Text("BackGround Music: https://freesound.org/people/VABsounds/sounds/381384/, Author: VABsounds")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Button Sound: https://freesound.org/people/rolandseer/sounds/489008/, Author: rolandseer")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Axe Sound: https://freesound.org/people/wavecal22/sounds/537435/, Author: wavecal22")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Monkey Sound: https://freesound.org/people/wilika2/sounds/588625/, Author: wilika2")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Metal Sound: https://freesound.org/people/ChristianAnd/sounds/468837/, Author: ChristianAnd")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Wrong Sound: https://freesound.org/people/Bertrof/sounds/351565 , Author: Bertrof")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Wheel Sound: https://freesound.org/people/jorickhoofd/sounds/160045/ , Author: jorickhoofd")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("Flame sound on click: https://freesound.org/people/Reitanna/sounds/242867/, Author: Reitanna")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("SHRIMP font: https://befonts.com/shrimp-typeface.html , Author: Anton Darri Pálmarsson")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
Text("IceCreamPartySolid font: https://befonts.com/icecreamparty-font.html , Author: Igor Grovich")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
}
.padding(.bottom, 20)
VStack(spacing: 20){
Text("Change Text Fonts Code : https://github.com/alnp/Custom-font-in-Swift-Playgrounds-App, Author: Alessandra Luana Nascimento Pereira")
.padding(.horizontal, 30)
.font(.custom(.titleFont, size: CGFloat(textSize - 30)))
.foregroundColor(primaryColor)
}
}
.frame(width: tam.size.width, height: 13*tam.size.height/20, alignment: .center)
}
Button(action: {
appState.viewNumber = 0
playSoundEffects(sound: "buttonClick", type: "mp3")
}, label: {
ZStack{
RoundedRectangle(cornerRadius: 30)
.frame(width: 2*UIScreen.main.bounds.size.width/3, height:UIScreen.main.bounds.size.height/10 , alignment: .center)
.foregroundColor(primaryColor)
Text("Menu")
.fontWeight(.black)
.font(.custom(.titleFont, size: CGFloat(textSize)))
.foregroundColor(.yellow)
}
})
}
.background(Image(uiImage:UIImage(imageLiteralResourceName: "MainBG")).resizable().frame(width: 3000, height: 3000, alignment: .center))
}
}
}