Compare commits

..

No commits in common. "master" and "1.2" have entirely different histories.
master ... 1.2

12 changed files with 8 additions and 59 deletions

View File

@ -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
- Extract the archive file
- Run the fremen-transcriptor executable
- Enjoy :)
- Start typing some text to see the result
- enjoy :)
- 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
@ -39,7 +38,7 @@ If you do you can also submit a pull request :)
## TODO:
- [X] Add text box instead of passing an argument
- [X] Option to save result as an image
- [X] Add numbers
- [ ] Add numbers
<br><br>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 B

View File

@ -54,17 +54,7 @@ enum Character {
E,
I,
O,
U,
c_0,
c_1,
c_2,
c_3,
c_4,
c_5,
c_6,
c_7,
c_8,
c_9
U
};
void transcript(char* message, int *charcters){
@ -175,36 +165,6 @@ void transcript(char* message, int *charcters){
case 'u':
charcters[i] = U;
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:
break;
}
@ -261,7 +221,7 @@ int main(int argc, char *argv[]){
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Fremen Transcriptor");
SetTargetFPS(60);
Image characters_img[38] = {0};
Image characters_img[28] = {0};
characters_img[0] = GenImageColor(1, 1, WHITE);
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[26] = LoadImage(concat(executablePath,"fremen-assets/O.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);
}
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]);
}
@ -402,7 +352,7 @@ int main(int argc, char *argv[]){
//INPUT
}
for(int i = 0; i <= 37; i++){
for(int i = 0; i <= 27; i++){
UnloadImage(characters_img[i]);
UnloadTexture(characters_tex[i]);
}