First Symbos Application

Página 45/47
38 | 39 | 40 | 41 | 42 | 43 | 44 | | 46 | 47

Por Prodatron

Paragon (1836)

imagem de Prodatron

20-02-2014, 00:00

PacMan only uses 7 objects Smile
1x background, 4x ghost, 1x pacman, 1x fruit

Por Trebmint2

Master (242)

imagem de Trebmint2

20-02-2014, 00:04

I know Prodatron, but you are the only person that can currently plot anything onto a background Tongue

Por Prodatron

Paragon (1836)

imagem de Prodatron

20-02-2014, 00:19

PacMan for SymbOS is open source, but yes, with the library it's more easy Smile

Por edoz

Prophet (2465)

imagem de edoz

20-02-2014, 20:24

I'm playing around with the farmer movements ..
Some problems:
-The yellow line is not removed but I do a RefreshObj for the imagebox ... (if I move the form it is removed)
-If I constantly do a key press the farmer is stopped after a while and I have to re-press the key again. (I have the same with tetris, first I thought it was something in the emulator but it is also on a normal MSX. But not on the turbo-r

View My Video

Por Prodatron

Paragon (1836)

imagem de Prodatron

20-02-2014, 21:32

Lol, it took a while until I understood the meaning of your avatar! LOL! LOL!

Regarding your questions:
1. You should also refresh the part of the background, which has been covered by the farmer and is now uncovered again; though I don't know what SymBasic command you have to use for that
2. Strange behaviour; I wonder if there is something with a keyboard buffer "overflow"... I will have to discuss this with Trebmint

Por Trebmint2

Master (242)

imagem de Trebmint2

20-02-2014, 21:35

The keypress thing I will have to do some research on. However the yellow line is just all part of the object not being a sprite. Effectively you have to worry about erasing the old and printing the new, not just printing the new obj. Im affraid its been the bane for non sprite computer game coders since year dot. Dont worry though we will explain all when the new library arrives.

Glad to see you got tiles working Smile

Por edoz

Prophet (2465)

imagem de edoz

20-02-2014, 22:09

Ha. So if I cut his hat a bit it's also solved Hannibal and saves me a refresh LOL! Its logical that I have to paint it with the background color again. Thanks for the examination! Bdw. I was thinking about the levels. Maybe it's wise to make the complete level in a picture background. ? So I can load two backgrounds for each level ? One for 1:1 and one for 1:2 ? Is this a good idea ?

Por Trebmint2

Master (242)

imagem de Trebmint2

20-02-2014, 22:23

Id say no its not a good idea yet as you'd have to draw it as a picture, or make it as objects. Chuckie egg has very few background graphics, being blackness, platform, and ladders mainly. So you have a blank playarea, and then you just replot these few graphics over and over to make the level. As the farmer moves the position you just replot the graphics on which he stood, and then draw him in the new position, and then refresh the areas that have been updated.

The process is. 1 erase old sprites putting background back (erasing is as simple as plotting the background over them. 2 plot sprites in new position. Note 1 & 2 are done without a refreshing the view. 3 refresh the view in the areas that have changed using RefreshArea... should result in flicker free clean update

Por edoz

Prophet (2465)

imagem de edoz

21-02-2014, 15:50

Hi Trebmit, Thanks. I did some try on your suggestions. Only thing is the speed at the moment.
Is this because the keyboard handling ? See My video and or the code.

Sourcecode

Here the Video. But this is not how it is in real (video compression is not the best but small in kb)

View My Video

Por edoz

Prophet (2465)

imagem de edoz

21-02-2014, 18:14

Birdsheets are also working Big smile

Página 45/47
38 | 39 | 40 | 41 | 42 | 43 | 44 | | 46 | 47