Oxygen Basic

Programming => Example Code => Topic started by: Peter on October 18, 2012, 08:27:56 AM

Title: MapDemo v oo2
Post by: Peter on October 18, 2012, 08:27:56 AM
Deleted
Title: Re: MapDemo v oo2
Post by: Aurel on October 18, 2012, 08:48:27 AM
Hey ... :)
YES...
This time work as espected with from 114 - 140 frames :)
Only not when window is changed in size,i mean manualy resized but this
is not important i guess...

When i catch some time at evening i will try create my own map... ::)
Cool work Peter !!  ;)
Title: Re: MapDemo v oo2
Post by: Aurel on October 18, 2012, 11:40:44 AM
Peter...
Just one question...
because i am not sure about that... :-\
So..do i can with your presented MapEditor create map like is
in this demo ?
or do i must do something else because i tthink that size of
sprites are not the same ,or i'm in wrong.
Do you create this demo map in this editor?
Title: Re: MapDemo v oo2
Post by: Aurel on October 18, 2012, 11:40:25 PM
It is OK ...i must first build map and test how big is ..
thanks on explanation... ;)
Title: Re: MapDemo v oo2
Post by: Aurel on October 19, 2012, 12:46:33 PM
Hi Peter...
Hmm i don't know what i do wrong but it look that i mess up something.
I have load maps from mapdemo.bas example into folder where is
oxymapEditor and i try made some changes just to see how things work.
I add few green(grass) tiles around map and save then
i replace original map in mapdemo example then i see that changes are not
accepted  ???
I see that in demo are 3 maps...so do i must change all 3 maps?
What this leyers represent...?
Sorry man i am really dumb about this type of games  ::)
Title: Re: MapDemo v oo2
Post by: Aurel on October 20, 2012, 05:23:07 AM
Hey Peter
Now the grass tile work fine .
Just to say to you in lines...33-37 you changed name of function DrawSprite and replace with
just Sprite() , to avoid confusion i change them to DrawSprite because on that way are written in
sw.inc....ok... ;)
Code: [Select]
if map1[z]=34  then DrawSprite s1,x*64,y*64,1
if map1[z]=41  then DrawSprite s1,x*64,y*64,2
if map2[z]=91  then DrawSprite s2,x*64,y*64,zAtom
if map2[z]=121 then DrawSprite s7,x*64,y*64,0
        if map2[z]=81  then DrawSprite sa,x*64,y*64,zAtom
Title: Re: MapDemo v oo2
Post by: Aurel on October 20, 2012, 05:30:05 AM
by the way...
You ask me how much leyers i use ..
only one Layer1 just to see how work.
Idea about map editor is good and enable lot easier to build maps that's for sure.
Then only require some time to work properly with this program especially for
people who are not very much familiar with all this graphics.

I have in plan build some sort of space SF map with little bit different objects
not cups,grass etc and this will take lot of time ::)