Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Help find the bug in my game please

Author
Message
x3meblue
15
Years of Service
User Offline
Joined: 11th Dec 2008
Location: Nuremberg, Germany
Posted: 17th Apr 2015 02:21 Edited at: 17th Apr 2015 05:36
[SOLVED]

Hi,

i am working on my second AGK2 project,
a simple breakout game. I am loading the
levels from an external file in a array.

But here is a problem. The first brick doesn't
show up. The rest is working fine. I don't know
more what to do. I tried with debugger but this
didn't help me.

In function LoadLevel() the first brick should
be set at Position 64,64 but it is not...aaargh

Please help me. You can download the complete game, code
and graphic files as a zip file or look the next post for
just the main.agc file.

Controls:
ESC - Quit Game
F1 - decrease paddle speed
F2 - increase paddle speed
Mouse - Move paddle

EDIT: changed zip file to working version

AGK2 Tier 1 / GameGuru / ProMotion 6.5

Attachments

Login to view attachments
x3meblue
15
Years of Service
User Offline
Joined: 11th Dec 2008
Location: Nuremberg, Germany
Posted: 17th Apr 2015 02:22 Edited at: 17th Apr 2015 05:37
If you don't trust zip files, here is just the code in main.agc, but then it's without the level file and graphics.

EDIT: changed file to working version.

AGK2 Tier 1 / GameGuru / ProMotion 6.5

Attachments

Login to view attachments
x3meblue
15
Years of Service
User Offline
Joined: 11th Dec 2008
Location: Nuremberg, Germany
Posted: 17th Apr 2015 04:20
Aiiiiiiiiiii....i found what was wrong!

I already was near getting crazy! Now i found out that it wasn't my code, but the level file, because it was decoded in UTF-8. I changed for ANSI and voilá, everything is working!

AGK2 Tier 1 / GameGuru / ProMotion 6.5
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 17th Apr 2015 12:32
Congrats!

V2 T1 (Mostly)
Uzmadesign

Login to post a reply

Server time is: 2024-11-25 20:51:47
Your offset time is: 2024-11-25 20:51:47