From f2cd452d100ef7458d2d492193c85b57c4d6cc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20Mu=CC=88ller?= Date: Sat, 20 Aug 2011 18:44:21 +0200 Subject: [PATCH 1/3] try to get the image crash handled --- src/Functions.pbi | 2 +- src/Main.pb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions.pbi b/src/Functions.pbi index acaf932..3f879de 100644 --- a/src/Functions.pbi +++ b/src/Functions.pbi @@ -6,7 +6,7 @@ UsePNGImageDecoder() Procedure InitTileset() - LoadSprite(#Tile01, DataPath+"gfx/tileset01.png") + LoadSprite(#Tile01, DataPath+"gfx/tileset01.bmp") ;ClipSprite(#Tile01, 0, 0, 16, 16) EndProcedure diff --git a/src/Main.pb b/src/Main.pb index 8b2a1ca..0d7ad20 100644 --- a/src/Main.pb +++ b/src/Main.pb @@ -98,7 +98,7 @@ If OpenWindow(0, 0, 0, Screen\Width, Screen\Height, title, #PB_Window_ScreenCent EndIf EndIf - Debug CurrentState + ; Debug CurrentState ; Handle the events for the current state GameStates(CurrentState)\HandleEventFun() From f6ab4d9452f017485a845ed1e8d6d766c875ce53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20Mu=CC=88ller?= Date: Sat, 20 Aug 2011 18:45:54 +0200 Subject: [PATCH 2/3] merge2 --- src/Functions.pbi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Functions.pbi b/src/Functions.pbi index ca0a181..bf3409b 100644 --- a/src/Functions.pbi +++ b/src/Functions.pbi @@ -6,11 +6,7 @@ UsePNGImageDecoder() Procedure InitTileset() -<<<<<<< HEAD - LoadSprite(#Tile01, DataPath+"gfx/tileset01.bmp") -======= LoadSprite(#Tile01, #DATA_PATH+"gfx/tileset01.png") ->>>>>>> f089be7018687821daf886b8c0e8a0d907df0e2d ;ClipSprite(#Tile01, 0, 0, 16, 16) EndProcedure From e07c64c6c7205dd85ece61a5e2a20054c852c9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20Mu=CC=88ller?= Date: Sat, 20 Aug 2011 19:09:23 +0200 Subject: [PATCH 3/3] fix the image bug --- data/gfx/tileset01.bmp | Bin 32824 -> 49180 bytes src/Draw.pbi | 2 +- src/Functions.pbi | 4 +--- src/Globals.pbi | 4 ++++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/data/gfx/tileset01.bmp b/data/gfx/tileset01.bmp index 99f8196e4fd150e1b682a7b636027ecd3ba26548..9ce510b8ee0a4fa24722cc402ff5b3335785f609 100644 GIT binary patch literal 49180 zcmeI$+fH0%90hQ^^TG!(##ivtM6HqvEl?=u^Jy4nrohZ_7+_{Nw|x`e!D2mCtuZOI zSb<_8nADi)d(;J6w<|1|4Of%67yU}sEcVU(_J4nS&(yWP`?%)x=Nnex8_VJau>|-Am@I0`FX8WiKH}+u-&Gu0fZtTMvn(d<|+}MXT zG}}i_xUmmwXts}=*)`=|*w_F)ap_E8gV?86$G?V~2#*oQSV+eb~fu@7r#wvU={V;|PgY#%k@ z#y+f}**=*) z`=|*w_F)ap_E8gVV(5dn>{Uep9>2&O!}*Lf;REc$8k+5+CfwMEH8k5tO}McSYiPEQ zns8$u*3fJpHQ~lStfARHYQl|uSVOaY)Px)Ru!d&)s0larVGYgpQ4?=*)`=|*w_F)ap_E8gV?86$G?V~2#*oQSV+eb~fu@7r# zwvU={V;|PgY#%k@CWbz{Pd@+i)n2eJlSc+Rf;E{QnayXymqADjcV{QYnr>XHt9`$v zu@+_Rdv9K8;S|Jb9qfF4uK(dLkHY?N_q#BM;K`BR@zK8UWe{d_nPMT=SpU&L&+VYO z56pr@m0sILwFiJ>mfe}%Jv>-WXehvA$<_}t9bNHEof>502*C0qqeBqZ^(FgP_P@ydqCW7?j1R(gY`7aQTW?**-FC5%+gL5F zuM`{Wuk~~^;zpcG^p6a5+P|_twwiF}dCu7%J5qQ|;E#>v-dY*EP4E)_*pc#+M z_Qr;~4}%`R?O)k{_sN5o&mTb>Yk&KT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