Qbasicnews.com

Full Version: MemGraph
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ever wondered what you memory looks like?

Well.... probably not... heh, ut now you can see visually what your memory looks like. I am planning a 3D version of this and maybe have a game revolve around it. Big Grin

Code:
DEFINT A-Z
SCREEN 12
LINE (0, 114)-(639, 116), 8, BF
LINE (0, 117)-(639, 119), 7, BF
LINE (0, 120)-(639, 430), 15, BF
LINE (0, 431)-(639, 433), 7, BF
LINE (0, 434)-(639, 436), 8, BF
DO
  key$ = INKEY$
  oldmemloc = memloc
  IF key$ = "+" AND dir < 1 THEN dir = dir + 1
  IF key$ = "-" AND dir > -1 THEN dir = dir - 1
  IF dir = 1 AND memloc < 64882 THEN memloc = memloc + 8
  IF dir = -1 AND memloc > 8 THEN memloc = memloc - 8
  LOCATE 1, 1: PRINT "Displaying Mem Location:"; memloc; " to"; memloc + 640
  IF oldmemloc <> memloc THEN LINE (0, 144)-(639, 401), 15, BF
  FOR disp = 0 TO 639
    mem = PEEK(disp + memloc)
    LINE (disp, 400)-(disp, 400 - mem), 8
    IF memloc = oldmemloc THEN LINE (disp, 140)-(disp, 400 - mem), 15
  NEXT
LOOP
It would be cool to do some "special" - "bonus" - "magic" tiles for a game with it.
I once tested using random memory locations as textures for walls in a raytracer. It never evolved to a first person shooter..
then you would find this interesting

http://www.geocities.com/goathell2000/street.html

a side effect of my early JNK raycaster
oh yeah, if you want to download it...

http://www.geocities.com/goathell2000/jnk.html
Did you make the JNK raycaster? Wow! I thought that was awesome, man!! I wish I could make a raycaster as good as you!
Hey Joe!!!! How's Larry doing?

Big Grin
Is it a windows game?

My card can't support the resolution. I get DX errors. :*(
Quote:Check it out yourself Smile
http://users.sisna.com/joeking3/ld3/down...3beta2.zip

WTF is that? it said fail three time and screwed the crap out of my displays!
Hey! very impressive! :o

Allegro? Many people have problems with Windows in 320x240 or lower resolutions. You should allow a windowed mode if everything fails, just for compatibility.