Qbasicnews.com
October 17, 2018, 08:07:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: starting ll again  (Read 10282 times)
Anonymous
Guest
« on: March 13, 2005, 10:10:57 AM »

im sure very few of you remember me and josiah tobin talking about making a game called lynn's legacy some time ago.

well, since then my computer has crashed, and ive basically had to rewrite the engine from scratch for the third time. (i had cool stuff last build... like wrapping around edges of tiles, like in SoM... >.<)so, seeing this new language FB i figured i would port the code i have (skeleton p*t scrollage) and then continue to develop the game in FB.

im new with being ale to work with individual bytes, im excited at the possiblilities that were just too slow in qb. so... after all this meaningless babble:


http://members.aol.com/rubentbstk/progsnstuf/ll2.rar


it runs a little fast on my comp, i tried to govern it with TIMER but other people that tested it (with faster pc than me) said it was slower =S so i dunno try it out. at least there should be no anomalies and no way to crash it =). oh and btw "d" will show numbers and ESC exits.

ill keep updates on major progress in the engine!


cya


p.s. source included, enjoy
Logged
BastetFurry
Forum Regular
**
Posts: 136



WWW
« Reply #1 on: March 16, 2005, 09:35:33 AM »

Looks nice, and runs smooth here.
Maybee you should consider going 640x480?

And there is one command i dont know...
Code:

MOD

You use it to calculate the beginning of the drawing window.
What is it for?

Can i "copy" your drawing routine?
Mine seems a bit messy Wink

WARNING! C AHEAD! Needs to be translated to FB Wink
Code:

    int drawdone;
    int drawx,
        drawy,
        drawxanfang,
        drawyanfang,
        mapx,
        mapy,
        fensterx,
        fenstery,
        mapxanfang,
        mapyanfang;
    drawdone=0;

    fensterx = party.x-160;
    if(fensterx<0)fensterx=0;
    if(fensterx>(mapmax_x*8)-160)fensterx=(mapmax_x*8)-160;

    fenstery = party.y-120;
    if(fenstery<0)fenstery=0;
    if(fenstery>(mapmax_y*8)-120)fenstery=(mapmax_y*8)-120;


    tempx=0;
    tempy=0;
    mapxanfang=fensterx/8;
    mapyanfang=fenstery/8;
    mapx=mapxanfang;
    mapy=mapyanfang;
    drawxanfang = (mapxanfang*8)-fensterx;
    drawyanfang = (mapyanfang*8)-fenstery;
    drawx       = drawxanfang;
    drawy       = drawyanfang;

    while(!drawdone)
    {
        drawarea.x = drawx;
        drawarea.y = drawy;
        drawchip(map[mapx][mapy].chipset
                 ,map[mapx][mapy].chipx
                 ,map[mapx][mapy].chipy);
        drawchip(map[mapx][mapy].vchipset
                 ,map[mapx][mapy].vchipx
                 ,map[mapx][mapy].vchipy);
        mapx++;
        drawx=drawx+8;
        if(mapx>mapxanfang+40)
        {
            mapx=mapxanfang;
            drawx=drawxanfang;
            mapy++;
            drawy=drawy+8;
            if(mapy>mapyanfang+30)drawdone=1;
        }
    }
Logged

color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
barok
Na_th_an
*****
Posts: 1727


How about a tasty lead sandwich?


« Reply #2 on: March 16, 2005, 11:14:35 AM »

mod displays the remainder of a number divided by another number.  say your dividing 16 by 6.  the result would be 2, with a remainder of 4.  using mod would return 4.

e.g.

n = 16 mod 6 'result would be 4
Logged

Jumping Jahoolipers!
jsmith71
Been there, done that
*****
Posts: 1004


« Reply #3 on: March 16, 2005, 10:09:52 PM »

Quote from: "BastetFurry"
Looks nice, and runs smooth here.
Maybee you should consider going 640x480?

We might be, actually... Dunno... Cha0s did mention that to me briefly. :Huh:
It might work better actually, now that we have the new character sprite... (twice the size as the one in that demo, really busted my ass making it and animating it smoothly Shocked ...and of course it's the real main character sprite instead of a random npc, so it looks a fair bit better)
Oh, and:
Quote
I had cool stuff last build... like wrapping around edges of tiles, like in SoM

Get your terms right-- That's PSF, ProSlide Factor! Don't you forget! :lol:  What are you all laughing at...?
Logged
Dr_Davenstein
Na_th_an
*****
Posts: 2052


« Reply #4 on: March 17, 2005, 12:36:31 AM »

Hmmm... does that demo crash on you guys if you try to run in full screen?
Logged
Anonymous
Guest
« Reply #5 on: March 18, 2005, 04:52:14 PM »

sometimes, when i go full screen, it resets all the colors to crazy colors, but if i throw in a switch to say, when i hit space, reset the pallete, its fine.

never had a crash tho... =/ well.. the engine now is like tons more solid than it was when i released that demo, that was just to hardcode a lot of the code that i didnt have, and some hacks to hold it all together... now its more of, um... structure? ;p as you see in my fb programming help topic
Logged
Anonymous
Guest
« Reply #6 on: April 01, 2005, 07:28:52 AM »

hi, id like to have someone run this and tell me if the speed is too fast, or if it seems limited, josiahs telling me its running ultra fast but i have a TIMER delay so it doesnt make any sense ;p anyways..

http://members.aol.com/rubentbstk/nextll.rar
Logged
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #7 on: April 01, 2005, 08:08:32 AM »

can you zip it?  :wink:
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Anonymous
Guest
« Reply #8 on: April 01, 2005, 08:15:10 AM »

http://members.aol.com/rubentbstk/nextll.zip
Logged
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #9 on: April 01, 2005, 08:21:04 AM »

Very cool!!!! Runs blazingly fast!!!
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Anonymous
Guest
« Reply #10 on: April 01, 2005, 08:28:06 AM »

yeh... thats actually the problem...

  DO
  LOOP UNTIL TIMER - delay# > .007

how come its not blazing fast on mine? :S do you have a really fast computer? i have like 500 mHz

even still shouldnt that delay it?? im checking for delay# at the beginning of the loop, and doing that calc at the end
Logged
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #11 on: April 01, 2005, 08:32:09 AM »

Quote from: "Cha0s"
yeh... thats actually the problem...

  DO
  LOOP UNTIL TIMER - delay# > .007

how come its not blazing fast on mine? :S do you have a really fast computer? i have like 500 mHz

even still shouldnt that delay it?? im checking for delay# at the beginning of the loop, and doing that calc at the end


I'm on a net cafe running XP. :*)

You can do what zire did. :*)

Try to contact her at freebasic.tk
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Anonymous
Guest
« Reply #12 on: April 01, 2005, 08:44:27 AM »

thanks dude ill try, but isnt she like MIA or something? <.<
Logged
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #13 on: April 01, 2005, 08:55:09 AM »

Quote from: "Cha0s"
thanks dude ill try, but isnt she like MIA or something? <.<


Nah, only here. She's active at freebasic.tk and we chat at badlogic from time to time. ;*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Anonymous
Guest
« Reply #14 on: April 01, 2005, 09:02:22 AM »

i tried going to bad-logic a while ago? where are you talking about??
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!