added fonts and music
This commit is contained in:
		
							parent
							
								
									afd288d573
								
							
						
					
					
						commit
						fdc7a61f61
					
				
					 9 changed files with 3899 additions and 29 deletions
				
			
		
							
								
								
									
										2949
									
								
								asset-src/bgm/01-Slipin-Sunday.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2949
									
								
								asset-src/bgm/01-Slipin-Sunday.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										884
									
								
								asset-src/bgm/02-Have-Hope.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										884
									
								
								asset-src/bgm/02-Have-Hope.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,884 @@ | |||
| { | ||||
| 	"format": "BeepBox", | ||||
| 	"version": 9, | ||||
| 	"scale": "normal :)", | ||||
| 	"key": "F", | ||||
| 	"introBars": 0, | ||||
| 	"loopBars": 6, | ||||
| 	"beatsPerBar": 8, | ||||
| 	"ticksPerBeat": 4, | ||||
| 	"beatsPerMinute": 120, | ||||
| 	"layeredInstruments": false, | ||||
| 	"patternInstruments": false, | ||||
| 	"channels": [ | ||||
| 		{ | ||||
| 			"type": "pitch", | ||||
| 			"instruments": [ | ||||
| 				{ | ||||
| 					"type": "FM", | ||||
| 					"volume": 80, | ||||
| 					"eqFilter": [], | ||||
| 					"preset": 256, | ||||
| 					"effects": [ | ||||
| 						"chord type", | ||||
| 						"note filter", | ||||
| 						"reverb" | ||||
| 					], | ||||
| 					"chord": "strum", | ||||
| 					"noteFilter": [ | ||||
| 						{ | ||||
| 							"type": "low-pass", | ||||
| 							"cutoffHz": 6727.17, | ||||
| 							"linearGain": 0.5 | ||||
| 						} | ||||
| 					], | ||||
| 					"reverb": 33, | ||||
| 					"fadeInSeconds": 0, | ||||
| 					"fadeOutTicks": 48, | ||||
| 					"algorithm": "1←2←3←4", | ||||
| 					"feedbackType": "3⟲", | ||||
| 					"feedbackAmplitude": 6, | ||||
| 					"operators": [ | ||||
| 						{ | ||||
| 							"frequency": "1×", | ||||
| 							"amplitude": 15 | ||||
| 						}, | ||||
| 						{ | ||||
| 							"frequency": "1×", | ||||
| 							"amplitude": 6 | ||||
| 						}, | ||||
| 						{ | ||||
| 							"frequency": "5×", | ||||
| 							"amplitude": 2 | ||||
| 						}, | ||||
| 						{ | ||||
| 							"frequency": "7×", | ||||
| 							"amplitude": 4 | ||||
| 						} | ||||
| 					], | ||||
| 					"envelopes": [ | ||||
| 						{ | ||||
| 							"target": "noteFilterAllFreqs", | ||||
| 							"envelope": "twang 1" | ||||
| 						}, | ||||
| 						{ | ||||
| 							"target": "feedbackAmplitude", | ||||
| 							"envelope": "twang 1" | ||||
| 						} | ||||
| 					] | ||||
| 				} | ||||
| 			], | ||||
| 			"patterns": [ | ||||
| 				{ | ||||
| 					"notes": [ | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41, | ||||
| 								29 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 0, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							], | ||||
| 							"continuesLastPattern": false | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 3, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 3, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 4, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								43 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 4, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 5, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								45 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 5, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 6, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								43 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 6, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 7, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 7, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 13, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 13, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38, | ||||
| 								26 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 21, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 21, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 22, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 22, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 23, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 23, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 32, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [ | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41, | ||||
| 								29 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 0, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							], | ||||
| 							"continuesLastPattern": false | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 3, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 3, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 4, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 4, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 5, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								33 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 5, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 6, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 6, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 7, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 7, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								43 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 13, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								43 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 13, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38, | ||||
| 								26 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								35 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 21, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								35 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 21, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 22, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 22, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 23, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 23, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36, | ||||
| 								24 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 32, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [ | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41, | ||||
| 								29 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 0, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							], | ||||
| 							"continuesLastPattern": false | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38, | ||||
| 								26 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 32, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [ | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								41, | ||||
| 								29 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 0, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 2, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							], | ||||
| 							"continuesLastPattern": false | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 8, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 12, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								40, | ||||
| 								28 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 14, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								38, | ||||
| 								26 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 16, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 20, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						}, | ||||
| 						{ | ||||
| 							"pitches": [ | ||||
| 								36, | ||||
| 								24 | ||||
| 							], | ||||
| 							"points": [ | ||||
| 								{ | ||||
| 									"tick": 24, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								}, | ||||
| 								{ | ||||
| 									"tick": 32, | ||||
| 									"pitchBend": 0, | ||||
| 									"volume": 100 | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [] | ||||
| 				}, | ||||
| 				{ | ||||
| 					"notes": [] | ||||
| 				} | ||||
| 			], | ||||
| 			"sequence": [ | ||||
| 				1, | ||||
| 				2, | ||||
| 				3, | ||||
| 				2, | ||||
| 				1, | ||||
| 				4 | ||||
| 			], | ||||
| 			"octaveScrollBar": 1 | ||||
| 		} | ||||
| 	] | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								assets/bgm/02-Have-Hope.ogg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/bgm/02-Have-Hope.ogg
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								assets/bgm/03-Boss.ogg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/bgm/03-Boss.ogg
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										11
									
								
								src/Ending.c
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								src/Ending.c
									
										
									
									
									
								
							|  | @ -9,18 +9,24 @@ | |||
| #include "../include/raylib.h" | ||||
| 
 | ||||
| #include "Screens.h" | ||||
| #include "Gfx.h" | ||||
| #include "Controls.h" | ||||
| #include "Options.h" | ||||
| #include "Music.h" | ||||
| #include "Gfx.h" | ||||
| 
 | ||||
| int finishfromEndingScreen = 0; | ||||
| Music Endingsong = { 0 }; | ||||
| 
 | ||||
| void InitEndingScreen(void) | ||||
| { | ||||
|   finishfromEndingScreen = 0; | ||||
|   Endingsong = LoadMusicStream("assets/bgm/01-Slipin-Sunday.ogg"); | ||||
|   PlayMusicStream(Endingsong); | ||||
| } | ||||
| 
 | ||||
| void UpdateEndingScreen(void) | ||||
| { | ||||
|   if (!mute) UpdateMusicStream(Endingsong); | ||||
|   if (INPUT_OPTION_PRESSED) finishfromEndingScreen = 1; | ||||
| } | ||||
| 
 | ||||
|  | @ -29,11 +35,12 @@ void DrawEndingScreen(void) | |||
|   DrawTexture(background, 0, 0, GOLD); | ||||
|   DrawTextEx(ZadoBold, "THANK YOU SO MUCH FOR PLAYING!!!", (Vector2){ 10, 10 }, 45, 2, GOLD); | ||||
|   DrawTextEx(ZadoBold, "Canneddonuts 2022", (Vector2){ 380, 400 }, 40, 2, WHITE); | ||||
|   DrawTextEx(ZadoBold, "Press 'ENTER'", (Vector2){ 0, 400 }, 40, 2, WHITE); | ||||
|   DrawTextEx(ZadoBold, "Press 'ENTER'", (Vector2){ 5, 400 }, 40, 2, WHITE); | ||||
| } | ||||
| 
 | ||||
| void UnloadEndingScreen(void) | ||||
| { | ||||
|   UnloadMusicStream(Endingsong); | ||||
| } | ||||
| 
 | ||||
| int FinishEndingScreen(void) | ||||
|  |  | |||
|  | @ -9,40 +9,46 @@ | |||
| #include "../include/raylib.h" | ||||
| 
 | ||||
| #include "Screens.h" | ||||
| #include "Gfx.h" | ||||
| #include "Options.h" | ||||
| #include "Controls.h" | ||||
| #include "Music.h" | ||||
| #include "Gfx.h" | ||||
| 
 | ||||
| int gameoverSelected = 0, finishfromGameoverScreen = 0; | ||||
| Music Gameoversong = { 0 }; | ||||
| 
 | ||||
| void InitGameoverScreen(void) | ||||
| { | ||||
|   gameoverSelected = 0; | ||||
|   finishfromGameoverScreen = 0; | ||||
|   Gameoversong = LoadMusicStream("assets/bgm/02-Have-Hope.ogg"); | ||||
|   PlayMusicStream(Gameoversong); | ||||
| } | ||||
| 
 | ||||
| void UpdateGameoverScreen(void) | ||||
| { | ||||
|   if (!mute) UpdateMusicStream(Gameoversong); | ||||
|   if (INPUT_UP_PRESSED) gameoverSelected++; | ||||
|   if (INPUT_DOWN_PRESSED) gameoverSelected--; | ||||
|   if (gameoverSelected > 0) gameoverSelected--; | ||||
|   if (gameoverSelected < -1) gameoverSelected++; | ||||
| 
 | ||||
|   if ((gameoverSelected == 0) && (INPUT_OPTION_PRESSED)) | ||||
|     finishfromGameoverScreen = 2; | ||||
|     { StopMusicStream(Gameoversong); finishfromGameoverScreen = 2; } | ||||
| 
 | ||||
|   if ((gameoverSelected == -1) && (INPUT_OPTION_PRESSED)) | ||||
|     finishfromGameoverScreen = 1; | ||||
|     { StopMusicStream(Gameoversong); finishfromGameoverScreen = 1; } | ||||
| } | ||||
| 
 | ||||
| void DrawGameoverScreen(void) | ||||
| { | ||||
|   DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), BLACK); | ||||
|   DrawTextEx(ZadoBold, "GAMEOVER", (Vector2){ 220, 20 }, 80, 3, RED); | ||||
|   DrawTextEx(ZadoBold, "GAME OVER", (Vector2){ 190, 0 }, 80, 3, RED); | ||||
|   if (gameoverSelected == 0) DrawTextEx(ZadoBold, "RETRY", (Vector2){ 350, 200 }, 30, 2, WHITE); | ||||
|   else DrawTextEx(ZadoBold, "RETRY", (Vector2){ 350, 200 }, 30, 2, RED); | ||||
| 
 | ||||
|   if (gameoverSelected == -1) DrawTextEx(ZadoBold, "TITLE", (Vector2){ 355, 230 }, 30, 2, WHITE); | ||||
|   else DrawTextEx(ZadoBold, "TITLE", (Vector2){ 355, 230 }, 30, 2, RED); | ||||
|   if (gameoverSelected == -1) DrawTextEx(ZadoBold, "TITLE", (Vector2){ 355, 240 }, 30, 2, WHITE); | ||||
|   else DrawTextEx(ZadoBold, "TITLE", (Vector2){ 355, 240 }, 30, 2, RED); | ||||
| } | ||||
| 
 | ||||
| int FinishGameoverScreen(void) | ||||
|  | @ -52,5 +58,5 @@ int FinishGameoverScreen(void) | |||
| 
 | ||||
| void UnloadGameoverScreen(void) | ||||
| { | ||||
| 
 | ||||
|   UnloadMusicStream(Gameoversong); | ||||
| } | ||||
|  |  | |||
|  | @ -14,11 +14,14 @@ | |||
| #include "Gameplay.h" | ||||
| #include "Score.h" | ||||
| #include "Timers.h" | ||||
| #include "Music.h" | ||||
| #include "Gfx.h" | ||||
| 
 | ||||
| int score = 0, bestscore = 0, finishfromGameplayScreen = 0; | ||||
| Levels level = 0; | ||||
| 
 | ||||
| Music music = { 0 }; | ||||
| 
 | ||||
| void SetEnemyLevel(void) | ||||
| { | ||||
|   switch (level) { | ||||
|  | @ -38,6 +41,8 @@ void LoadGamplayScreen(void) | |||
|   attack_sprite = LoadTexture("assets/gfx/attack.png"); | ||||
|   firework_sprite = LoadTexture("assets/gfx/firework.png"); | ||||
|   fxboom = LoadSound("assets/sfx/boom.wav"); | ||||
|   music = LoadMusicStream("assets/bgm/03-Boss.ogg"); | ||||
|   PlayMusicStream(music); | ||||
| } | ||||
| 
 | ||||
| void InitGameplayScreen(void) | ||||
|  | @ -162,7 +167,9 @@ void UpdateGameplayScreen(void) | |||
| { | ||||
|    if (INPUT_OPTION_PRESSED) pause = !pause; | ||||
|    // code to end the game
 | ||||
|    if (level > 2) finishfromGameplayScreen = 3; | ||||
|    if (level > 2) { StopMusicStream(music); finishfromGameplayScreen = 3; } | ||||
| 
 | ||||
|    if (!mute) UpdateMusicStream(music); | ||||
| 
 | ||||
|    if (!pause) { | ||||
| 
 | ||||
|  | @ -226,7 +233,7 @@ void UpdateGameplayScreen(void) | |||
|          if (IsKeyPressed(KEY_W)) finishfromGameplayScreen = 3; | ||||
| 
 | ||||
|          // call gameover when killed
 | ||||
|          if (player.hp <= 0) finishfromGameplayScreen = 1; | ||||
|          if (player.hp <= 0) { StopMusicStream(music); finishfromGameplayScreen = 1; } | ||||
| 
 | ||||
|          // Red feather logic
 | ||||
|          for (int i = 0; i < MAX_SHOOTS; i++) { | ||||
|  | @ -339,13 +346,13 @@ void DrawGameplayScreen(void) | |||
|   } | ||||
|   DrawTextureRec(player_sprite, player.frameRec, player.sprite_pos, player.color); | ||||
|   DrawTexture(feather_sprite, 0, 0, GREEN); | ||||
|   DrawTextEx(ZadoBold, TextFormat("= %i", player.hp), (Vector2){ 30, 30 }, 20, 2, GREEN); | ||||
|   DrawTexture(feather_sprite, 70, 0, RED); | ||||
|   DrawTextEx(ZadoBold, TextFormat("= %i", ammo), (Vector2){ 100, 30 }, 20, 2, RED); | ||||
|   DrawText(TextFormat("ENEMY HP: %i", enemy.hp), GetScreenWidth() - 150, 10, 20, RED); | ||||
|   if (score >= 10000) DrawText(TextFormat("SCORE: %i", score), 10, 65, 20, (Color){ 222, 181, 0, 255 }); | ||||
|   else DrawText(TextFormat("SCORE: %i", score), 10, 65, 20, BLUE); | ||||
|   if (pause && ((pauseTimer/30)%2)) DrawText("PAUSED", 330, 190, 30, WHITE); | ||||
|   DrawTextEx(ZadoBold, TextFormat("= %i", player.hp), (Vector2){ 30, 30 }, 30, 2, GREEN); | ||||
|   DrawTexture(feather_sprite, 80, 0, RED); | ||||
|   DrawTextEx(ZadoBold, TextFormat("= %i", ammo), (Vector2){ 110, 30 }, 30, 2, RED); | ||||
|   DrawTextEx(ZadoBold, TextFormat("ENEMY HP: %i", enemy.hp), (Vector2){ GetScreenWidth() - 200, 0 }, 30, 2, RED); | ||||
|   if (score >= 10000) DrawTextEx(ZadoBold, TextFormat("SCORE: %i", score), (Vector2){ 10, 65 }, 30, 2, (Color){ 222, 181, 0, 255 }); | ||||
|   else DrawTextEx(ZadoBold, TextFormat("SCORE: %i", score), (Vector2){ 10, 65 }, 30, 2, BLUE); | ||||
|   if (pause && ((pauseTimer/30)%2)) DrawTextEx(ZadoBold, "PAUSED", (Vector2){ 290, 160 }, 60, 2, WHITE); | ||||
| } | ||||
| 
 | ||||
| void UnloadGameplayScreen() | ||||
|  | @ -358,6 +365,7 @@ void UnloadGameplayScreen() | |||
|   UnloadTexture(enemy_sprite); | ||||
|   UnloadTexture(firework_sprite); | ||||
|   UnloadTexture(attack_sprite); | ||||
|   UnloadMusicStream(music); | ||||
| } | ||||
| 
 | ||||
| int FinishGameplayScreen(void) | ||||
|  |  | |||
							
								
								
									
										16
									
								
								src/Music.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/Music.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| /*
 | ||||
| -    Avoid ~ a game by Canneddonuts | ||||
| -      Filename ~ Music.h | ||||
| -       Author ~ Return0ne | ||||
| -            2022 | ||||
| -         *no license* | ||||
| */ | ||||
| 
 | ||||
| #ifndef MUSIC_HEADER | ||||
| #define MUSIC_HEADER | ||||
| 
 | ||||
| extern Music Endingsong; | ||||
| extern Music Gameoversong; | ||||
| extern Music music; | ||||
| 
 | ||||
| #endif | ||||
|  | @ -36,24 +36,24 @@ void UpdateOptionsScreen(void) | |||
| void DrawOptionsScreen(void) | ||||
| { | ||||
|   DrawTexture(background, 0, 0, DARKGRAY); | ||||
|   DrawText("OPTIONS", 300, 20, 50, BLUE); | ||||
|   if (optionsSelected == 0) DrawText("Back", 20, 200, 20, WHITE); | ||||
|   else DrawText("Back", 20, 200, 20, BLUE); | ||||
|   DrawTextEx(ZadoBold, "OPTIONS", (Vector2){ 300, 20 }, 50, 2, BLUE); | ||||
|   if (optionsSelected == 0) DrawTextEx(ZadoBold, "Back", (Vector2){ 20, 170 }, 40, 2, WHITE); | ||||
|   else DrawTextEx(ZadoBold, "Back", (Vector2){ 20, 170 }, 40, 2, BLUE); | ||||
|   if (optionsSelected == -1) { | ||||
|     DrawText("Mute", 20, 220, 20, WHITE); | ||||
|     DrawText(TextFormat("<%i>", mute), 200, 220, 20, WHITE); | ||||
|     DrawTextEx(ZadoBold, "Mute", (Vector2) { 20, 220 }, 40, 2, WHITE); | ||||
|     DrawTextEx(ZadoBold, TextFormat("<%i>", mute), (Vector2){ 250, 220 }, 40, 2, WHITE); | ||||
|   } | ||||
|   else { | ||||
|     DrawText("Mute", 20, 220, 20, BLUE); | ||||
|     DrawText(TextFormat("<%i>", mute), 200, 220, 20, BLUE); | ||||
|     DrawTextEx(ZadoBold, "Mute", (Vector2) { 20, 220 }, 40, 2, BLUE); | ||||
|     DrawTextEx(ZadoBold, TextFormat("<%i>", mute), (Vector2){ 250, 220 }, 40, 2, BLUE); | ||||
|   } | ||||
|   if (optionsSelected == -2) { | ||||
|     DrawText("Fullscreen", 20, 240, 20, WHITE); | ||||
|     DrawText(TextFormat("<%i>", fullscreen), 200, 240, 20, WHITE); | ||||
|     DrawTextEx(ZadoBold, "Fullscreen", (Vector2){ 20, 270 }, 40, 2, WHITE); | ||||
|     DrawTextEx(ZadoBold, TextFormat("<%i>", fullscreen), (Vector2){ 250, 270 }, 40, 2, WHITE); | ||||
|   } | ||||
|   else { | ||||
|     DrawText("Fullscreen", 20, 240, 20, BLUE); | ||||
|     DrawText(TextFormat("<%i>", fullscreen), 200, 240, 20, BLUE); | ||||
|     DrawTextEx(ZadoBold, "Fullscreen", (Vector2){ 20, 270 }, 40, 2, BLUE); | ||||
|     DrawTextEx(ZadoBold, TextFormat("<%i>", fullscreen), (Vector2){ 250, 270 }, 40, 2, BLUE); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue