Skip to content

Commit 2f57ade

Browse files
2 parents ba05a2a + f561951 commit 2f57ade

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ Waphics allows you to easily create video games in C and export them to the web
77
<li>Keyboard input (mouse input to come)</li>
88
<li>Playing sounds</li>
99
<li>Rendering primitimes (circles, rectangles, triangles)</li>
10-
<li>Image rendering</li>
10+
<li>Image rendering (with scaling using uv coordinates)</li>
1111
<li>Alpha blending</li>
1212
</ul>
1313

1414
```C
1515
#define WAPHICS_IMPLEMENTATION
1616
#include "src/waphics.c"
1717

18-
#include "assets/block.h"
19-
2018
#define WIDTH 1000
2119
#define HEIGHT 600
2220

@@ -36,13 +34,10 @@ uint32_t *run(void) {
3634
waphics_draw_rect(display, RECT(0, 0, 50, 50), RGB(255, 0, 0));
3735
//draw a blue circle
3836
waphics_draw_circle(display, CIRCLE(100, 100, 50), RGB(0, 100, 100));
39-
//draw an image
40-
waphics_draw_image(display, RECT(x, 0, 16, 16), 10, block_pixels);
4137

4238
if (get_key(KEY_D)) x+=10;
4339
if (get_key(KEY_A)) x-=10;
4440

45-
4641
return display.pixels;
4742
}
4843
```

0 commit comments

Comments
 (0)