Ver Fonte

Add and hard-code new assets, delete old ones

Evgeniy Parfenyuk há 2 semanas atrás
pai
commit
26959e7cfa
9 ficheiros alterados com 41 adições e 19 exclusões
  1. 4 4
      AUTHORS.md
  2. 0 0
      assets/spiral_atlas/bedroom.jpg
  3. 19 0
      assets/sumi/RULES.txt
  4. BIN
      assets/sumi/smile.png
  5. BIN
      assets/sumi/smile_squint.png
  6. BIN
      bg.jpg
  7. BIN
      ch.png
  8. BIN
      src/.main.c.swp
  9. 18 15
      src/main.c

+ 4 - 4
AUTHORS.md

@@ -1,13 +1,10 @@
 # Vinora Project developers
-
 **Evgeniy "Parthen" Parfenyuk**  
 Author of Vinora Engine.  
 (parthen@riseup.net https://parthen.site)  
 
 
-
 # Authors of external tools/assets
-
 ## Libraries (`/external/`)
 **Ramon Santamaria / @raysan5**  
 Main developer of raylib library  
@@ -19,7 +16,10 @@ Author of ini.h library
 
 
 ## Assets (`/assests/`)
-
 **Spiral Atlas**  
 Author of "Spiral Atlas Visual Novel House Backgrounds"  
 (https://spiralatlas.itch.io/house-visual-novel-backgrounds)
+
+**Noraneko Games**  
+Author of "Sumi (newstyle)" character sprite  
+(https://noranekogames.itch.io/suminewstyle  Xitter: `@NoranekoGames`)

+ 0 - 0
assets/spiral_atlas/single_bedroom.jpg → assets/spiral_atlas/bedroom.jpg


+ 19 - 0
assets/sumi/RULES.txt

@@ -0,0 +1,19 @@
+RULES
+-Credit "Noraneko Games" 
+-Credit can be given in the in-game credits, in a note accompanying the game, or on a website where the project is downloaded. Any one of those is fine. It doesn't have to be all of them.
+-If this pack is re-uploaded to another site for download as is, do not remove this text file or any part of it.
+-These assets cannot be sold as is. For merchandising options, contact me and we can discuss.
+-Modifications are allowed. (Change colors, new pose, new hairstyle, change clothes, holding things, add blood splatters, makeup, etc)
+-Using for 18+ is fine as long as it doesn't contain illegal themes/content that could reflect poorly on the Noraneko Games name and reputation. 
+-Commercial use in a game is ok if you just let me know you are using it and can provide proof of credit. Contact me for commercial use outside of games.
+-If you aren't making money from your project, you can use without contacting me if you'd prefer.
+-Using this asset for Game Jams and Contests is okay!
+-If you want to use this media for anything other than a game, make sure it follows the rules above.
+-Not required, but I would love for you to link me to your project!
+
+
+Find more of my work at:
+@NoranekoGames on Twitter
+Noranekokgames.itch.io
+
+Good luck with your project!

BIN
assets/sumi/smile.png


BIN
assets/sumi/smile_squint.png


BIN
bg.jpg


BIN
ch.png


BIN
src/.main.c.swp


+ 18 - 15
src/main.c

@@ -33,7 +33,7 @@ typedef struct {
     Color name_color;
     char *text;
     Color text_color;
-} GameState; 
+} GameState;
 
 
 int main(void)
@@ -45,37 +45,40 @@ int main(void)
     InitWindow(screenWidth, screenHeight,
                "Vinora Engine");
 
-    
+
     GameState cur_state = {0};
 
-    cur_state.name = "Alice";
+    cur_state.name = "Sumi";
     cur_state.name_color = RAYWHITE;
 
-    cur_state.layers[0].img = LoadTexture("bg.jpg");
-    cur_state.layers[0].pos = (Vector2){0, 0};
-    cur_state.layers[1].img = LoadTexture("ch.png");
-    cur_state.layers[1].pos = (Vector2){0.5, 0};
+    cur_state.layers[0].img = LoadTexture("assets/spiral_atlas/bedroom.jpg");
+    cur_state.layers[0].pos = (Vector2){0.5, 0.5};
+    cur_state.layers[1].img = LoadTexture("assets/sumi/smile.png");
+    cur_state.layers[1].pos = (Vector2){0.5, 0.5};
     cur_state.layers_count += 2;
 
-    while (!WindowShouldClose())   
+    while (!WindowShouldClose())
     {
         BeginDrawing();
             ClearBackground(RAYWHITE);
-           
+
             for (int i = 0; i < cur_state.layers_count; i++) {
-                DrawTexture(cur_state.layers[i].img, 
-                            cur_state.layers[i].pos.x, 
-                            cur_state.layers[i].pos.y,
+                DrawTexture(cur_state.layers[i].img,
+                            cur_state.layers[i].pos.x * screenWidth -
+                                    cur_state.layers[i].img.width / 2,
+                            cur_state.layers[i].pos.y * screenHeight -
+                                    cur_state.layers[i].img.height / 2,
                             RAYWHITE);
             }
-            DrawText(cur_state.name, screenWidth/2  - (strlen(cur_state.name)*40/2)/2,
-                           screenHeight/5*4 - 40, 40, cur_state.name_color);
+            DrawText(cur_state.name, screenWidth/2  -
+            (strlen(cur_state.name)*40/2)/2, screenHeight/5*4 - 40, 40,
+            cur_state.name_color);
             DrawFPS(5, 5);
 
         EndDrawing();
     }
 
-    CloseWindow(); 
+    CloseWindow();
 
     return 0;
 }