From 0cada0a3d9fbbed761e08233ebb1e1e873e259c0 Mon Sep 17 00:00:00 2001 From: jbiesek Date: Tue, 8 Mar 2022 22:21:55 +0100 Subject: [PATCH 1/2] Add agent --- dot-22-433567.png | Bin 0 -> 5125 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dot-22-433567.png diff --git a/dot-22-433567.png b/dot-22-433567.png new file mode 100644 index 0000000000000000000000000000000000000000..be7c968fb8adc8e4f5cb2b1c8786eda3412faccc GIT binary patch literal 5125 zcmeHLXH-+!8VzL-QDhuciiJ!-L@>SGL;^xW6B0sEK^^7h=7wA$g(N@#MX6$?3I>6p z*o7Gd716Og9I-ydGU#(2q9_(bk;e?ESl&%Q#r5WoYrXkr*1AdVIs4n+_wBRKS-Dv! z6!=+M*jr#Q7|Q^EUMTwMjb2=HQ}jLEXle@vW89w{9-#>Z6R}E_LW0D?SWS`=#==@e zg28BSKP%xEO#Oa*)?gXVPa0sp?tbf=@Gdh}>I_qRqN-_Nhzv)D~<$a$yUumz>;V6*7RSi8(xYY!~N!TX169K3C}z zh4-?-Q?G!$`)z}>s$}^=8zjeMRlj6q{%myHxa)RXe*N#gOMsyTy}d-{-LVZh@1z4I zi5Y{XqUqpsZ&jtZ?;=KLHD8Uvm9r)B9X4CfOz6Wn#ZM?d&mIK+$bUwm<#&17d zzj$k+XkF96F^_kge&OO2+qJPLr+d9n>c|+adq&WtDli)?{kX0Ru^;i+HkF`*qxhLq`8atcbhcBLwfzB9RJy4#z z=++tca!aanQ>4f~r}dWLx30TOQU!(k)>I0JR~!rO-Rds@wxqV3*3TQ~?ArZwe8C|+ z#s);P$WB}1JOxyDzPHC2c?}}Sy`Np`q)y%DQD6#Y3 z?L^*xJ{05T>+>c;^Q$oA>h8S({2v;Mon|}pXGfNnh{y+QgYY`tlEa;ySAQ$qb}X8x zYq)#uMp-?4g;kPHA6GQ)1YxW2!uefgeK(XluM0f;BVC(!wd|!Y*tblL-?WYPZwEX* z=8np(obA2m>`$Edr+3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KN z`&%RD8g)&q)I|Mx!|ZTI_Nk^K_2m<_Vb<^H_cMElLr2?AM(x=#qjHAb+mua<+`n-r zG!cSQupiW zD`yiK&oB>mt820QEJ!#XU}c)Dy2Qr36dwCchsTdykH`h6RO)QIdT?aDTWegBgv=B2ZiUD}-D zFf<5wrwcVc&|ur?Z(7|1{GiL3xAE=I=hs__I!Nt-dnXU{zQ1Ly8wF zB(ny1{cny-bJn}?X4;DaCyC}BeQx`z+x(_|z7@B&FYw6g6py;wl8gB^M6dpPoW7uG zBKqr=Oa9ax&rT=>%n6Lk0c|@=-9j=ao~#+*EuU2FunMZ!;JuW`J?Qhjz~NTd^F_>U z+gnygPG662xmV3gEc2E2pK~=GAn+Sh})n38ip* z;qd_DZvxvulG&tdcF`3k_vidc`MvSmm}J4u=(s5>j?Vp8ah-c>1pm)TR&Te~0J(yb6BF~WL*3W>Z{}Q&2}rGMX3Sjn xx;w|ircBiwyzYdHI>EbQ!NzS3f%wTcJYCN^3~6UxGeQl93Gfl{e)5h=|1VvYvz-6{ literal 0 HcmV?d00001 -- 2.20.1 From 89a1cacabb2810cdd999ae2a53148a6670f55104 Mon Sep 17 00:00:00 2001 From: jbiesek Date: Tue, 8 Mar 2022 22:30:31 +0100 Subject: [PATCH 2/2] Add agent --- main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e7b5404..7fe6061 100644 --- a/main.py +++ b/main.py @@ -3,20 +3,26 @@ import pygame WIDTH, HEIGHT = 800, 800 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Sztuczna Inteligencja") +FPS = 30 +AGENT_IMG = pygame.image.load("dot-22-433567.png") +AGENT = pygame.transform.scale(AGENT_IMG, (50, 50)) -def draw_window(): +def draw_window(agent): WIN.fill((255,255,255)) + WIN.blit(AGENT, (agent.x, agent.y)) pygame.display.update() def main(): + clock = pygame.time.Clock() run = True + agent = pygame.Rect(0, 0, 50, 50) while run: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False - draw_window() + draw_window(agent) pygame.quit() -- 2.20.1