From 7eee242fd9e936855b710aee59676022590a31f0 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Wed, 22 Feb 2023 19:34:55 -0800 Subject: [PATCH] Dialog circle --- assets.mdesk | 4 ++++ assets/dialog_circle.png | Bin 0 -> 11234 bytes build_desktop_debug.bat | 4 ++-- main.c | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 assets/dialog_circle.png diff --git a/assets.mdesk b/assets.mdesk index 427f661..8fbdeba 100644 --- a/assets.mdesk +++ b/assets.mdesk @@ -30,6 +30,10 @@ { filepath: "hurt_vignette.png", } +@image dialog_circle: +{ + filepath: "dialog_circle.png", +} @image white_square: { filepath: "white square.png", diff --git a/assets/dialog_circle.png b/assets/dialog_circle.png new file mode 100644 index 0000000000000000000000000000000000000000..641029ae7370e43eb19e5ce712eb8f13981ce08f GIT binary patch literal 11234 zcmb7qXH-*9^zBUuA@ts)g(@H&X%<57%|?+bUAh!OT0#-20!jx7DhMLdRXRaXkZz$1 zgd#{sY9Q_9_tyLH-dgX=|HEDPX6~Aqeb1TMb8^m3v9d5^q`N=|005)0k={)J08t)6 z01QgGIRsaEQhq$Xud8citg8zT3J&zV@8!vbUbXC^ zeY@{QwJn6c;{AAa!nX?N@p56~2M;(L=$T?=tOXoO!oq?$AwA42HryBWxuyOgjbG}g z)ASP~!uKAWGO=uWyeSf3M^)PyC~=VLzoW#7s?QnQ^($+;qLelHXn5SXlF-pxWQ~zD$RF$JiBzAX{vqw&;tJ zi%e{3k5%*L3OE^aBZ|~(sxJJY=gsFFwJ(_n&Q;m_=FBs2|B_VgPksXi(_~Q)t5UV( zO9pz@yDB%$#O@QK%7-s{0N*7VRv%a(!9+$PICOrbxufBYf5gs zYUbp$!C%b+AS(w|d?4grQNSBVzOQ(kiR$vlF1J;Di^BY2Qoxm)CaoI97U^g*cc8zk zdBl@= z9&2mr{5{&#^QDi9ATjWnUg=K3`2U~Vc7UUi;m7D^LusJ?Be zZlJ%vM?ff`8|-l})WaPfem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pO6)XOPE3b)T!-D^Gr|(+%)FeX7{8 zvL9q{WXN0Fb#-7ra{Eb1$P@n~#{aPb5}I&N3`cg0+>pstm!ybx0l-+_La$cGCH{W_ DLz+^K literal 0 HcmV?d00001 diff --git a/build_desktop_debug.bat b/build_desktop_debug.bat index 9c7546a..cd9e5e2 100644 --- a/build_desktop_debug.bat +++ b/build_desktop_debug.bat @@ -3,8 +3,8 @@ @REM https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category?view=msvc-170 call run_codegen.bat || goto :error -@REM cl /DDEVTOOLS /Igen /Ithirdparty /W3 /Zi /WX main.c || goto :error -cl /Igen /Ithirdparty /W3 /Zi /WX main.c || goto :error +cl /DDEVTOOLS /Igen /Ithirdparty /W3 /Zi /WX main.c || goto :error +@REM cl /Igen /Ithirdparty /W3 /Zi /WX main.c || goto :error goto :EOF :error diff --git a/main.c b/main.c index d42a9c3..8b386e7 100644 --- a/main.c +++ b/main.c @@ -1449,6 +1449,8 @@ void frame(void) } if(closest_talkto != NULL) { + draw_quad(true, quad_centered(closest_talkto->pos, V2(TILE_SIZE, TILE_SIZE)), image_dialog_circle, full_region(image_dialog_circle), WHITE); + Dialog dialog = { .sentences[0].text = "I'm an old man. fjdslfdasljfla dsfjdsalkf adskjfdlskfkladsjfkljdskljsadlkfjdsaklfjldsajf", .sentences[1].text = "I'm the player. I have lots of things to say. Bla bla bla. All I do is say things. How cringe and terrible",