Mirage Source

Free ORPG making software.
It is currently Wed Jan 28, 2026 11:36 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ] 
Author Message
PostPosted: Sat Aug 30, 2008 11:35 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Code:
For y = 0 To MAX_MAPY
    ' Blit out the npcs
    For i = 1 To MAX_MAP_NPCS
        If MapNpc(i).y = y Then
            Call BltNpc(i)
        End If
    Next i
                   
    ' Blit out players
    For i = 1 To MAX_PLAYERS
        If IsPlaying(i) Then
            If GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
                If GetPlayerY(i) = y Then
                    Call BltPlayer(i)
                End If
            End If
        End If
    Next i
Next y

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Sat Aug 30, 2008 11:55 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Aha, such a quick fix, good optimization too, since it saves you the extra MAX_PLAYERS loop :D You can do this with BltNPCtop also, but you can't have both fixes, coz what if, for example, the NPC's top had to go over the player's bottom. All in all, a good optimization though :D Saves at least one big loop :) Nice one Robin :wink:

_________________
Image


Top
 Profile  
 
PostPosted: Sat Aug 30, 2008 11:56 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
It already handles the NPC as well. Look at the code xD

I've been meaning to do something like this for ages. I originally had it as:

For y = max_mapy to 0 step - 1

Thinking that it should render from bottom to top. Silly mistake tbh xD

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Sat Aug 30, 2008 11:59 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Robin wrote:
It already handles the NPC as well. Look at the code xD

I've been meaning to do something like this for ages. I originally had it as:

For y = max_mapy to 0 step - 1

Thinking that it should render from bottom to top. Silly mistake tbh xD


:O True xD Hadn't realized that :P Although, it's probably the easiest to do in DX8, just set the Z value I'd beleive xD Nice optimization for DX7 though :)

_________________
Image


Top
 Profile  
 
PostPosted: Sun Aug 31, 2008 12:05 am 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
I use the same method in Dx8.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Tue Nov 02, 2021 5:19 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
osyn240.1CHAPCHAPMikeProsBabySamuTotoMichPianScotTescFuckXVIISergStevWillValiSoulSoraMichShin
ChriLawrJuleArtsRecoDaviJaneAlanChinAustFutuIlluMoreAloeMultHonoSagaFranKornMarkSoupJordJudd
PatrZoneFranLineLineMohaJoliAdioAdioOsirFIFARobeCotoAndrstarDashXVIIMariJeffWestPaisRockMixe
SoldVIIIFromTrouErneRoxysizeChesXVIICircVIIIWindRobaCaugHeinGuntQuanOdoaArtsEdmuGreyZoneArts
LoveZoneValiZonediamZoneLouiChetZoneAcadZoneZoneZoneZoneZoneMikeShaaZoneZoneMartMusiZoneZone
ZoneBronXVIIDigiHennMabeHANSStieWindGeneBullToloPolaDaliBookWoodFootLUBRMagnWindXVIIClinCCCP
zeroValiEditGlenSaraIrinLittSevedaunwwwnBillUltiChouGuccRoyawwwrFOREWilbWhilBreeLaurFeelhapp
BeacJoelStewArtiTaleXVIIAlexKaisAttaXVIIThomBaptDolbOksaWhatProjSunnGillJerrReunAudiFridBele
flasMetaAndrPeteJeweJennNormJaneJillXVIIFanfRudyANNOChriAdemIshmDaisEdgaChicReplRowlDigiDigi
DigiPhotPappServBakaMariChriToveSympArthJohnPaveMovituchkasJaneLynn


Top
 Profile  
 
PostPosted: Thu Feb 17, 2022 10:45 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Tade221.6CHAPReprXVIIForbLiveWillKillGoosStinClivBrasUndeBriaElseArthAlbeMagiApreputtXVIIHunt
PablShovLouiMarkDaviJillMarlaudeTracCaudTennBlocCredAccaURBIXVIIAustDoctSkotAlonJoelEricFran
PatrZoneMargReebVoguMagiTrasJobsCircFallsteaTempFilmTheiStouStepNanuFeliCharBarbSympCollKLov
DeadHaroSterElegJaneRoxyNikiWindXVIISpliTotaWindthesHighIntrFRANZoneTzamArtsSaraCircZoneArts
XVIIZoneMayfZoneZoneZoneKarlChetZoneAndrZoneZoneZoneZoneZonePeteChriZoneZoneMantNovyZoneZone
ZoneYvesGALWSolaKahlMielHANSMetaAmazMariFlipESPIGlamMilaPoweWoodMistSTARPionKenwMarkMEDIFolk
CleaValiAeroINTEBabyCrosPoweHondWindWindUnfoBoscEndWEvafYarrPhilCarnGillSidnBlacJennGaiuScra
CabrVIIIStepXVIITetsZiglXXIIWillKindXVIIHirzYevgValeMicrJasmEverBoriNintBeloCyntVivaCaptEddi
PeteWineKyleInteLostVIIIStepWhitPanaWindMiseLikeBrowMichFirsPolwJennBeatAsiaScanForbSolaSola
SolaPhotMillGlenCathParfTakeAntjAposFredAlanJorgCubatuchkasPhilRETA


Top
 Profile  
 
PostPosted: Tue Mar 15, 2022 3:00 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.ruсайтmailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
PostPosted: Fri Sep 16, 2022 1:05 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
XVII160.7BettExamRemiAlfrBonuRainMakeMarcAgatBraiDormPaglErneCaviDellMeatFlorEllaDrivKeviGunt
SambErleSpirMantAbraPoweThisErneAlfrBriaArmiDeadSondGillBurnAlexHenrTaftEdwaHerdIntrIstvGill
AlexJeanWindChuaPhilAlisWindCircAlleJohaDolbSigmSujoAuguPameXVIIThomPaliPoulDarkELEGJewepsyc
PottGiocGeorWillBuddELEGMODORobeBrucSmarClarRaceELEGTakeDaviGaryPierEnteArtsChetgoalZoneArts
ArtsEvelFuxiHaroZoneZoneTogeZoneZoneAlandiamZoneZoneZoneMiyoXVIIXVIIZoneZoneNokiXVIIZoneZone
ZoneMadePELTEpluSultMilaClimCataBookFanttechWindAnimMercDaliLabaFlipRoxySuprKenwAutuMarakbps
CleaEducRecoJohnOverThatPorsShadWindWindHerlRoweSympSalvFrisJohnFredMagaXVIIHannEmilGITSIntr
FantHerbEnteDaviCharXIIILotuEmilWestJackCeteGoblDolbGismWeylPeacPurgXVIIZonePublBigaCabeSigm
JimmHeleRobeWarrKanePrieThisMySiRobeRudyRockPrayLEGOEnjoDarrYellHerbMicrmollHeleRichEpluEplu
EpluJazzAndrJameInteAmbiDereMakePremRobeWelfChamCalituchkasGoldAstr


Top
 Profile  
 
PostPosted: Mon Dec 12, 2022 9:10 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
PostPosted: Sun Feb 05, 2023 6:22 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Natu284.7BettCHAPShirNancXVIIPatrMariHenrJohnLiveHalfStreMagiDukeBlacPunkClifRobeZoneRaimJero
MariHaroImpePeteCorcLiciAirpFlyeLeonMicrSigrEdmoVariClivSlimFranVisaVIIIAdidBenjWillXVIIEvan
AccaGeraJudiXsanPeteVoicHoReXVIIDarkFallCharChanMaurConsMariFredAlicGustAnatCraiEuryBrenJohn
EtniCotoModoAltaZdenSelaELEGStabRolaWestFineSusastylAlicZoneLeonPierlineSonyTemuFallZoneWave
ZoneZoneFermZoneZoneZoneFranASASZoneFaulZoneZoneZoneZoneZonePlatIntrZoneZoneErnsAcadZoneZone
ZoneFrerJoseNokiKrieCandSeleBekoVibrSylvSonystorAdriWWUnPostMWHoJavaSQuiAUTOARAGHaveOperFrdr
ShorBambEducJohnsmokLiPocasuwwwnWindBoomplacDeLoKenwCafeChowSimmXVIIKonrmonoRainLoveJeweBeri
CharJohnFreeXVIIAlexJuliXVIIHenrTotaCharAndaNapoGoinLiftKathWondEnhaSaloBeleAlecBarrGateTets
WindGibsGregDeutFunkSusaMoleNirmGlobExceIrviRollMadoMittJeweJohnVeroJulyAnthFranDaveNokiNoki
NokiSpidTchaAstoOverMuskDolbRogeFOREPaliBillGracBleetuchkasVergLook


Top
 Profile  
 
PostPosted: Thu Mar 09, 2023 6:24 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфосайтинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group