Skip to content

Commit

Permalink
Add print statements for database creation and sprite resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimbbp committed Mar 11, 2024
1 parent 2774808 commit bb4ebe9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func main() {

switch mode {
case "database":
fmt.Printf("Creating database")
util.TimeIt(
"database creation",
sprite.Database,
Expand All @@ -32,6 +33,7 @@ func main() {
util.PrintColorDatabase("/Users/joachimpfefferkorn/Documents/GitHub/spritefire/ignore/database/sprite_color_db")

case "resize":
fmt.Printf("Resizing Sprites")
util.TimeIt(
"resizing",
sprite.Resize,
Expand All @@ -41,7 +43,7 @@ func main() {

case "video":
util.TimeIt(
"generating video",
"Generating Video",
video.Sequence,
util.SequencePath,
util.DatabasePath,
Expand All @@ -50,7 +52,7 @@ func main() {
case "batchRes":
batchResIndices := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
util.TimeIt(
"generating video for multiple resolutions",
"Generating video for multiple resolutions",
video.BatchSequence,
util.SequencePath,
util.DatabasePath,
Expand Down
9 changes: 5 additions & 4 deletions src/sprite/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ func Resize(spriteFolder string, resizedFolder string) {
}

for _, sprite := range sprites {

fmt.Println("\nCreating Resized Sprite")
fmt.Println("Resolution:\n", resolution)
fmt.Println("Sprite:\n", sprite)
/*
fmt.Println("\nCreating Resized Sprite")
fmt.Println("Resolution:\n", resolution)
fmt.Println("Sprite:\n", sprite)
*/ //Commenting out as it's unweildy in debugging CI

spritePath := filepath.Join(spriteFolder, sprite.Name())

Expand Down

0 comments on commit bb4ebe9

Please sign in to comment.