Author Topic: Code  (Read 5178 times)

0 Members and 1 Guest are viewing this topic.

katmaster

  • Guest
Code
« on: March 04, 2006, 10:42:00 am »
Well, here is my main loop. I will attempt to explain what all the variables do and stuff:

c1-->
CODE
ec1
:Lbl 1

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Code
« Reply #1 on: March 04, 2006, 12:15:00 pm »
It looks pretty good, is there any problems with it atm or are you just looking for it to be faster? If you could run it through http://www.cemetech.net/projects/basicelite/sourcecoder2.php it would be a little better :Pblah.gif.

crzyrbl

  • Guest
Code
« Reply #2 on: March 04, 2006, 01:09:00 pm »
elimating all the lbl's and goto's will drastically increase speed.  i did that to xLib's original example prgm, i think it went close to 3x faster.  lets see some more ss! ;)wink.gif

katmaster

  • Guest
Code
« Reply #3 on: March 04, 2006, 07:43:00 pm »
Hmmm that's what I figured. Is there just a way to order everything differently? Because I'm not exactly sure how to get rid of all of them and make it still work....

@kalan vod: Nothing's wrong with it, I'm just looking to make it run faster. Also, it doesn't have AI or powerups incorperated into it yet.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Code
« Reply #4 on: March 05, 2006, 03:36:00 am »
I will take a better look at the code if you use source coder so it's easier to read :Dbiggrin.gif

katmaster

  • Guest
Code
« Reply #5 on: March 05, 2006, 12:52:00 pm »
Whiners!!! j/k :)smile.gif ok it's "easier to read" now :Pblah.gif

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Code
« Reply #6 on: March 26, 2006, 11:37:00 am »
woiw nobody posted here :/ too bad I couldnt help much I cant read other ppl code :(sad.gif I hope this is not dead tho

katmaster

  • Guest
Code
« Reply #7 on: April 02, 2006, 01:02:00 pm »
My code must be perfect then XDgni.gif. And no, it's not dead, things just got kinda busy again. Might be a few weeks before I get to work on it again though :(sad.gif

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Code
« Reply #8 on: April 02, 2006, 01:08:00 pm »
cool to hear you aren't dropping it :)smile.gif. yteah basic can be kinda slow sometimes, I doubt it will run that slow tho because diortem ran at 2 fps with enemies and it used Omnicalc, which is slower than xlib

katmaster

  • Guest
Code
« Reply #9 on: April 02, 2006, 05:30:00 pm »
Yeah, I really need to find time to figure out exactly how I'm going to impliment the A.I. I've tried a few routines, but they ended up being kinda slow and unpredictable (things moving into walls and not dieing or killing you etc.). I wish I had more time.....

BCTurk

  • Guest
Code
« Reply #10 on: April 02, 2006, 06:29:00 pm »
If this is like the bomberman that I have played, I would reccomend that, for an AI routien, you have them randomly place & avoid bombs until they see either you or one of your bombs, then they should try and follow you and place bombs.  Opinion only.  Hope it helps.

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
Code
« Reply #11 on: April 03, 2006, 03:57:00 am »
QuoteBegin-crzyrbl+Mar 5 2006, 1:09-->
QUOTE (crzyrbl @ Mar 5 2006, 1:09)
elimating all the lbl's and goto's will drastically increase speed.  i did that to xLib's original example prgm, i think it went close to 3x faster.  lets see some more ss! ;)wink.gif

O_Oshocked2.gif k... how did u do that?

Mine still runs at about the same speed :???:confus.gif

maybe I

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Code
« Reply #12 on: April 03, 2006, 04:08:00 am »
it really depend how huge the code is, if the lbl is at the bottom of a 11 KB huge code it will take a long while to load. if its at the top it will load faster. Some ppl probably noticed that old basic games (including some of mines) had the title screen, menu and such at bottom of the code, and the engine at the top. First code line was a goto 1

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
Code
« Reply #13 on: April 03, 2006, 04:16:00 am »
But I

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Code
« Reply #14 on: April 03, 2006, 05:26:00 am »
I think you mean DIE LBL/GOTO! DIE!