Compare commits
No commits in common. "master" and "1.2" have entirely different histories.
@ -8,8 +8,7 @@ Software to transcript ASCII into desert people's writing from popular sci-fi fr
|
|||||||
- Download the archive file from [Releases tab](https://github.com/theKapcioszek/fremen-transcriptor/releases) for your respectible system
|
- Download the archive file from [Releases tab](https://github.com/theKapcioszek/fremen-transcriptor/releases) for your respectible system
|
||||||
- Extract the archive file
|
- Extract the archive file
|
||||||
- Run the fremen-transcriptor executable
|
- Run the fremen-transcriptor executable
|
||||||
- Enjoy :)
|
- enjoy :)
|
||||||
- Start typing some text to see the result
|
|
||||||
- Press **f2** to take a screenshot and **f3** to capture only generated text
|
- Press **f2** to take a screenshot and **f3** to capture only generated text
|
||||||
- Press **Select** button in GUI window to select a directory and save your screenshot
|
- Press **Select** button in GUI window to select a directory and save your screenshot
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ If you do you can also submit a pull request :)
|
|||||||
## TODO:
|
## TODO:
|
||||||
- [X] Add text box instead of passing an argument
|
- [X] Add text box instead of passing an argument
|
||||||
- [X] Option to save result as an image
|
- [X] Option to save result as an image
|
||||||
- [X] Add numbers
|
- [ ] Add numbers
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 113 B |
Before Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 122 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 120 B |
62
src/main.c
@ -54,17 +54,7 @@ enum Character {
|
|||||||
E,
|
E,
|
||||||
I,
|
I,
|
||||||
O,
|
O,
|
||||||
U,
|
U
|
||||||
c_0,
|
|
||||||
c_1,
|
|
||||||
c_2,
|
|
||||||
c_3,
|
|
||||||
c_4,
|
|
||||||
c_5,
|
|
||||||
c_6,
|
|
||||||
c_7,
|
|
||||||
c_8,
|
|
||||||
c_9
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void transcript(char* message, int *charcters){
|
void transcript(char* message, int *charcters){
|
||||||
@ -175,36 +165,6 @@ void transcript(char* message, int *charcters){
|
|||||||
case 'u':
|
case 'u':
|
||||||
charcters[i] = U;
|
charcters[i] = U;
|
||||||
break;
|
break;
|
||||||
case '0':
|
|
||||||
charcters[i] = c_0;
|
|
||||||
break;
|
|
||||||
case '1':
|
|
||||||
charcters[i] = c_1;
|
|
||||||
break;
|
|
||||||
case '2':
|
|
||||||
charcters[i] = c_2;
|
|
||||||
break;
|
|
||||||
case '3':
|
|
||||||
charcters[i] = c_3;
|
|
||||||
break;
|
|
||||||
case '4':
|
|
||||||
charcters[i] = c_4;
|
|
||||||
break;
|
|
||||||
case '5':
|
|
||||||
charcters[i] = c_5;
|
|
||||||
break;
|
|
||||||
case '6':
|
|
||||||
charcters[i] = c_6;
|
|
||||||
break;
|
|
||||||
case '7':
|
|
||||||
charcters[i] = c_7;
|
|
||||||
break;
|
|
||||||
case '8':
|
|
||||||
charcters[i] = c_8;
|
|
||||||
break;
|
|
||||||
case '9':
|
|
||||||
charcters[i] = c_9;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -261,7 +221,7 @@ int main(int argc, char *argv[]){
|
|||||||
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Fremen Transcriptor");
|
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Fremen Transcriptor");
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
|
||||||
Image characters_img[38] = {0};
|
Image characters_img[28] = {0};
|
||||||
|
|
||||||
characters_img[0] = GenImageColor(1, 1, WHITE);
|
characters_img[0] = GenImageColor(1, 1, WHITE);
|
||||||
characters_img[1] = LoadImage(concat(executablePath,"fremen-assets/B.png"));
|
characters_img[1] = LoadImage(concat(executablePath,"fremen-assets/B.png"));
|
||||||
@ -291,24 +251,14 @@ int main(int argc, char *argv[]){
|
|||||||
characters_img[25] = LoadImage(concat(executablePath,"fremen-assets/I.png"));
|
characters_img[25] = LoadImage(concat(executablePath,"fremen-assets/I.png"));
|
||||||
characters_img[26] = LoadImage(concat(executablePath,"fremen-assets/O.png"));
|
characters_img[26] = LoadImage(concat(executablePath,"fremen-assets/O.png"));
|
||||||
characters_img[27] = LoadImage(concat(executablePath,"fremen-assets/U.png"));
|
characters_img[27] = LoadImage(concat(executablePath,"fremen-assets/U.png"));
|
||||||
characters_img[28] = LoadImage(concat(executablePath,"fremen-assets/c_0.png"));
|
|
||||||
characters_img[29] = LoadImage(concat(executablePath,"fremen-assets/c_1.png"));
|
|
||||||
characters_img[30] = LoadImage(concat(executablePath,"fremen-assets/c_2.png"));
|
|
||||||
characters_img[31] = LoadImage(concat(executablePath,"fremen-assets/c_3.png"));
|
|
||||||
characters_img[32] = LoadImage(concat(executablePath,"fremen-assets/c_4.png"));
|
|
||||||
characters_img[33] = LoadImage(concat(executablePath,"fremen-assets/c_5.png"));
|
|
||||||
characters_img[34] = LoadImage(concat(executablePath,"fremen-assets/c_6.png"));
|
|
||||||
characters_img[35] = LoadImage(concat(executablePath,"fremen-assets/c_7.png"));
|
|
||||||
characters_img[36] = LoadImage(concat(executablePath,"fremen-assets/c_8.png"));
|
|
||||||
characters_img[37] = LoadImage(concat(executablePath,"fremen-assets/c_9.png"));
|
|
||||||
|
|
||||||
for(int i = 0; i <= 37; i++){
|
for(int i = 0; i <= 27; i++){
|
||||||
ImageResizeNN(&characters_img[i], CHAR_WIDTH, CHAR_HEIGHT);
|
ImageResizeNN(&characters_img[i], CHAR_WIDTH, CHAR_HEIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture2D characters_tex[38] = {0};
|
Texture2D characters_tex[28] = {0};
|
||||||
|
|
||||||
for(int i = 0; i <= 37; i++){
|
for(int i = 0; i <= 27; i++){
|
||||||
characters_tex[i] = LoadTextureFromImage(characters_img[i]);
|
characters_tex[i] = LoadTextureFromImage(characters_img[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,7 +352,7 @@ int main(int argc, char *argv[]){
|
|||||||
//INPUT
|
//INPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i <= 37; i++){
|
for(int i = 0; i <= 27; i++){
|
||||||
UnloadImage(characters_img[i]);
|
UnloadImage(characters_img[i]);
|
||||||
UnloadTexture(characters_tex[i]);
|
UnloadTexture(characters_tex[i]);
|
||||||
}
|
}
|
||||||
|