Skip to content

Commit

Permalink
Update README.md and database.go, and remove commented code in path.go
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimbbp committed Mar 11, 2024
1 parent e78e1ff commit 2774808
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Project has been tested with the google noto emoji pack as the sprites. These ca
You can also create your own sprites. However "blanktile" is a keyword and cannot be used as a sprite name

## After Effects Resolution Switcher
The AE file included provides a template for switching quickly between resolutions. You may reporpose it for your liking, but if you wish to generate the exact test footage used, please use the batchRes case in main with batchResIndices := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.
The AE file included provides a template for switching quickly between resolutions. You may reporpose it for your liking, but if you wish to generate the exact test footage used, please use the batchRes case in main with batchResIndices := `[]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.`
10 changes: 5 additions & 5 deletions src/sprite/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sprite

import (
"encoding/gob"
"fmt"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -31,10 +30,11 @@ func Database(spriteFolder string, outputFolder string) {
}
filePath := filepath.Join(spriteFolder, entry.Name())
spriteColorDatabase[entry.Name()] = averageColor(filePath)

fmt.Println("\nDatabase Creation adding:")
fmt.Println("Sprite:\n", entry.Name())
fmt.Println("average color:\n", spriteColorDatabase[entry.Name()])
/*
fmt.Println("\nDatabase Creation adding:")
fmt.Println("Sprite:\n", entry.Name())
fmt.Println("average color:\n", spriteColorDatabase[entry.Name()])
*/ //commented out as it's unwieldy in debugging CI

}
}
Expand Down
2 changes: 2 additions & 0 deletions src/util/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var ImageOutput = OutputBasePath + "/image_output"

const SequencePath = TestFootageBasePath + "/scuba" //change this to your own 1280x720 .png sequence

//const SequencePath = "/Users/joachimpfefferkorn/Dropbox/spritefire_assets/test_images/dogfood_march_11"

func CreateIfNotExist(dir string) {
if _, err := os.Stat(dir); os.IsNotExist(err) {
err := os.MkdirAll(dir, 0755)
Expand Down

0 comments on commit 2774808

Please sign in to comment.