PDA

View Full Version : Pac3D



peter
25-06-2009, 21:49
Hi,

another game for you. it is a pseudo Pacman3D.
this game has other rules than a originally Pacman.
you must pick up every pill and coin. further, you have to
open all Boxes. to open a box, stand near at the box and press the up Key. before you can open a box, you need a key.
any box needs its own key. an obstruction could you with a bomb to clear away.

the space bar drops a bomb.
arrow keys moved your Pac.
watch your time. avoid the monsters.
if get headache, jump not out of your window. we need you!

greeting
Peter

Petr Schreiber
25-06-2009, 22:48
Hi Peter,

very nice game, the graphics are very complex this time!

Only one problem - how to exit game properly?


Petr

P.S. If you are user of TB beta, you could take advantage of TBGL_BindPeriodicFunction for this game, it would help you to achieve very low CPU usage.

ErosOlmi
25-06-2009, 22:53
Thanks a lot peter.
Another great game from your arsenal.

I tried Level 1 a couple of times but quite difficult :oops:

Ciao
Eros

PS: when I try to exit from game I get error: "EXIT: exit from a non supported block" at line 510.

ErosOlmi
25-06-2009, 23:00
Forgot to say: if you would like to add online game scores features, just let me know and I will setup a new game and send you a new GUID you will use to get/store games results in thinGaming (http://community.thinbasic.com/gaming/) web site.

Ciao
Eros

peter
25-06-2009, 23:09
Hi Eros,

i have no intuition why you get an error !
I cannot detect an error here !

No message about an error like "exit".
Peter

Michael Clease
25-06-2009, 23:12
PS: when I try to exit from game I get error: "EXIT: exit from a non supported block" at line 510.



I get the same error.

ErosOlmi
25-06-2009, 23:17
petr,

I checked thinCore.dll source code.
Error "EXIT: exit from a non supported block" is error code 37 and can occurs when END is followed by an unsupported statement or when END is followed by nothing.
So the following lines will all produce the above error:

END '---Just END followed by nothing
END BLOCK '---BLOCK is not supposed to be a keyword

Check around line 510 of your code and see if there is an END and if yes what is the keyword that follows the END. I do not have the sources of your game so I can just imagine.

Ciao
Eros

peter
25-06-2009, 23:25
That's Beta Version 1.7.8 ?
Line 510 has nothing with 'Exit' oneself !
I can nothing here recognize !
i will rewrite it, with an older version.
Peter

ErosOlmi
25-06-2009, 23:31
Line 510 has nothing with 'Exit' oneself !

Petr, not EXIT but END followed by an unsupported keyword or END just alone.

Error description is not correct because I used the same error code for different situations, sorry my mistake :oops:
I will amend it in next thinBasic preview release.

peter
25-06-2009, 23:43
Hi Eros,

this is line 510: ElseIf BombR =4 Then.
My 'END' stands on line 88. and has not a block behind it.

kryton9
25-06-2009, 23:47
Wow awesome game!

Graphics, the intro and characters. I like it more so than the original pacman.

I had no errors in exiting the game. After I got through level 1, I pressed Escape and then Go Home and it all worked fine.
I might not have the latest thinBasic, so that could be the difference?

ErosOlmi
25-06-2009, 23:49
Attached the window I get when I exit from script.

Maybe thinBasic is calculating the error line in wrong way because script is obfuscated.
When script is obfuscated, no code is showed in error window in order to protect source code

Anyhow, next thinBasic version will be more precise in catching this situation. Sorry again.
Eros

ErosOlmi
25-06-2009, 23:52
I might not have the latest thinBasic, so that could be the difference?

No, bundled exe carry with it all needed thinBasic dlls.

It can happen that error is not on screen if error occurs at the very last line of thinBasic source code.
Usually you get a beep instead of a thinBasic runtime error window.

Ciao
Eros

kryton9
25-06-2009, 23:54
I did hear a beep Eros on exit, but no messages or any sign of trouble as the computer is running fine afterwards. I thought the beep was the game saying goodbye :)

peter
25-06-2009, 23:55
thank you, kent sarikaya.
so, i have not to rewrite the game.

Lionheart008
26-06-2009, 00:13
hi peter :)

yes, here is also everything ok with your pac 3d game... I was caught by the evil cats at level one (cause I am tired!) with score 536 and 68 seconds ;) ... after that I press ESC and then GOHOME with return key, quit game... all was done well without any error messages... I uses the current thinbasic beta version ...

a really good game ! :) although I am a not-gamer... I like this kind of games without blood and a lot of action... the little nice game calms me down and I love evil cats ! ;)

salve, Lionheart

peter
26-06-2009, 00:21
Hi,
okay, i found the adverseness.
it is the 'end statement', i have removed it.
i will hope that is now clear.
you can upload the Pac3D.exe now.

and thank you Lionheart !
Peter

ps: upload Pac3d.exe is in the first mail.

ErosOlmi
26-06-2009, 00:24
Thanks a lot peter. Seems all ok now.

Maybe better to update attached file in first post of this thread. You can modify your post, remove the attached .rar file and upload it again.

Ciao
Eros

peter
26-06-2009, 00:32
Thanks a lot peter. Seems all ok now.

Maybe better to update attached file in first post of this thread. You can modify your post, remove the attached .rar file and upload it again.

Ciao
Eros


okay done!

peter
26-06-2009, 01:54
Hi,

another game for you. it is a pseudo Pacman3D.
this game has other rules than a originally Pacman.
you must pick up every pill and coin. further, you have to
open all Boxes. to open a box, stand near at the box and press the up Key. before you can open a box, you need a key.
any box needs its own key. an obstruction could you with a bomb to clear away.

the space bar drops a bomb.
arrow keys moved your Pac.

watch your time. avoid the monsters.
if get headache, jump not out of your window. we need you!

greeting
Peter

you have to load both rar's.

matthew
26-06-2009, 03:32
You've been busy over the past few weeks peter, writing all these good games. :)

Petr Schreiber
26-06-2009, 09:08
Very nice,

I finally completed level 1!
I just realised GoHome item serves for exiting the game :)