initial commit
This commit is contained in:
1
systems/dialogueGenerator.ts
Normal file
1
systems/dialogueGenerator.ts
Normal file
@@ -0,0 +1 @@
|
||||
// dialogue is things the players can say
|
||||
0
systems/hitGenerator.ts
Normal file
0
systems/hitGenerator.ts
Normal file
1
systems/injuryGenerator.ts
Normal file
1
systems/injuryGenerator.ts
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
8
systems/narrationEngine.ts
Normal file
8
systems/narrationEngine.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
// pitch narrator
|
||||
// response narrator (include count)
|
||||
// fielding narrator
|
||||
// baserunning narrator
|
||||
// development narrator
|
||||
// mood/dialogue narrator
|
||||
// ambient narrator
|
||||
24
systems/pitchGenerator.ts
Normal file
24
systems/pitchGenerator.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// pitchGenerator
|
||||
import type { Player } from "../types/Player";
|
||||
import type { ThrownPitch } from "../types/ThrownPitch";
|
||||
|
||||
// a pitch can
|
||||
// be thrown overhand, underhand, with spin that keeps it afloat or makes it a breaking ball,
|
||||
// or be thrown with no spin (difficult) for a knuckleball.
|
||||
// it can hit a batter, hit the dirt, or go wild.
|
||||
|
||||
export default function pitchGenerator(pitcher: Player) {
|
||||
|
||||
// what is the pitcher trying to throw?
|
||||
// what is the count? how good is the batter? what *can* he throw?
|
||||
|
||||
const pitch: ThrownPitch = {
|
||||
name: 'pitch',
|
||||
speed: 0,
|
||||
spinType: "6-12",
|
||||
rpm: 200,
|
||||
accuracy: 0.5
|
||||
}
|
||||
|
||||
return pitch;
|
||||
}
|
||||
Reference in New Issue
Block a user