too many things

This commit is contained in:
Dendy 2021-08-07 09:02:53 +00:00
parent dbd2b2e472
commit 9bae32518b
11 changed files with 70 additions and 11 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
Makefile Normal file → Executable file
View File

46
assets/logo.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

17
assets/testing.svg Executable file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="101.04mm" height="107.09mm" version="1.1" viewBox="0 0 101.04 107.09" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<g transform="translate(-35.181 -67.476)">
<path d="m87.006 174.49c-11.222-1.1493-19.982-3.6845-29.948-8.6679-4.2111-2.1057-12.025-6.4821-13.892-7.7814-1.9691-1.3696-4.4347-3.7634-5.9575-5.7839-2.7125-3.5989-2.7029-8.4124 0.02469-12.492 0.68809-1.0292 4.8422-6.691 7.1614-9.7606 0.28151-0.37261 2.1542-2.297 4.1615-4.2763 3.7161-3.6644 4.4038-4.4855 5.0275-6.0032 0.42115-1.0248 0.46336-2.5635 0.10267-3.7429-0.28091-0.91854-0.48112-1.2016-1.2374-1.7494-1.8613-1.3483-3.7251-3.2476-7.8515-8.0007-1.31-1.509-2.4084-3.1475-2.8943-4.3176-0.36268-0.8733-0.37504-0.98429-0.42654-3.8276l-0.05303-2.9282 0.72757-0.78587c0.93963-1.0149 2.278-1.6617 4.6304-2.2378 0.95549-0.23399 2.3314-0.60181 3.0576-0.81738 1.1831-0.3512 1.513-0.39194 3.1738-0.39194h1.8535l-2e-3 -0.63476c-7.9e-4 -0.34913-0.0904-0.96552-0.19886-1.3698-0.10851-0.40425-0.198-1.1358-0.19887-1.6257-1e-3 -0.78024-0.0679-1.0158-0.53613-1.8996-0.51431-0.97073-0.53454-1.0565-0.53454-2.2668 0-0.9615 0.0478-1.2975 0.20278-1.4262 0.11153-0.0926 0.41883-0.57942 0.68288-1.0819 0.55725-1.0605 0.90986-1.4449 1.9177-2.0908l0.73199-0.46911 1.7403 0.0729c0.95713 0.0401 3.1534 0.23564 4.8807 0.43456 3.1167 0.35893 3.1696 0.36049 7.0158 0.20686 2.1315-0.0851 4.4166-0.24413 5.0781-0.35332 1.707-0.28176 8.0374-0.41283 9.3916-0.19446 0.56756 0.0915 1.9941 0.45302 3.1701 0.80332s2.4088 0.67834 2.7395 0.72899c1.5534 0.23789 9.4021 3.0276 11.865 4.2174 5.525 2.6685 13.611 7.4986 18.009 10.758 5.6882 4.2148 9.6345 8.96 11.502 13.83l0.38429 1.0023-4e-3 4.3431c-9e-3 9.0076-1.0425 16.131-3.0911 21.304-2.0914 5.2802-4.5728 9.3674-11.446 18.854-3.9156 5.404-6.4251 7.9236-12.318 12.368-5.5229 4.1649-10.729 7.2527-13.403 7.9491-0.70199 0.18284-3.8626 0.24638-5.2399 0.10533z" fill="#c83737" stroke-width=".13364"/>
<ellipse cx="92.853" cy="95.068" rx="28.116" ry="27.592" fill="#800080" stroke-width=".26458"/>
<text x="37.523186" y="134.90065" fill="#000000" font-family="sans-serif" font-size="39.618px" stroke-width=".99045" style="line-height:1.25" xml:space="preserve"><tspan x="37.523186" y="134.90065" stroke-width=".99045">TEST</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

0
src/fs.c Normal file → Executable file
View File

0
src/fs.h Normal file → Executable file
View File

0
src/grid.c Normal file → Executable file
View File

0
src/grid.h Normal file → Executable file
View File

18
src/main.c Normal file → Executable file
View File

@ -25,6 +25,8 @@ int main(int argc, char* args[]) {
if (IMG_Init(IMG_INIT_JPG || IMG_INIT_PNG) < 0) {
fprintf(stderr, "Could not initialize SDL2_image: %s\n", IMG_GetError());
}
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
window = SDL_CreateWindow("pscsp",
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
@ -91,17 +93,11 @@ int main(int argc, char* args[]) {
if(e.type == SDL_QUIT){
quit = true;
}
if(e.type == SDL_MOUSEWHEEL){
if(e.wheel.y > 0){ // scroll up
if(zoom < max_zoom && currentKeyStates[SDL_SCANCODE_LCTRL]){
zoom++;
}
}
else if(e.wheel.y < 0){ // scroll down
if(zoom > min_zoom && currentKeyStates[SDL_SCANCODE_LCTRL]){
zoom--;
}
}
if(e.type == SDL_MOUSEWHEEL && currentKeyStates[SDL_SCANCODE_LCTRL]){
printf("%d\n", e.wheel.y);
zoom += e.wheel.y * 4;
if( zoom > max_zoom) zoom = max_zoom;
else if(zoom < min_zoom) zoom = min_zoom;
}
}
if(currentKeyStates[SDL_SCANCODE_ESCAPE]){

0
src/texture.c Normal file → Executable file
View File

0
src/texture.h Normal file → Executable file
View File