Author Topic: Dimension  (Read 7440 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Dimension
« on: February 18, 2011, 11:15:11 pm »
Speaking of this "random garbage" popping up, it gave me a game idea.  A platformer, with essentially no purpose (except to have fun/kill time) that reads from the RAM, in which you can switch 'dimensions' (inspired by the random blocks appearing and disappearing at random in the old versions).  
So... thanks for that ;D
[↑ quoted from sandland thread]
So, I started by modifying an old version of Sandland to see what I could come up with.  It's worked pretty well.
See first screenshot. Screenie removed b/c of confusions.
You can probably tell how it's supposed to work.

After that, I went to code my own.
It reads starting at a random spot in RAM.  The 'other dimension' is that pointer plus 32768 (65536/2).
It doesn't work as much.  See second screenshot.

Can someone look at the source and see what's wrong?  It seems to not be detecting tiles that should be there, or standing on a tile that's not there...

Variables:
E: starting pointer
I,J: tile offset from E.
N,O: pixel offset from I,J
D: whether or not player is on top of a tile
FGKL, PQUV: used for detection of tiles
Z,Θ: X- and Y-velocities

Thanks in advance ;D

Controls for Dimension: left/right: move left/right
2nd: jump
Alpha: swap dimension
Clear: quit

btw I'm not dropping Tio for this, I'm kind of using this to learn more about smoothscrolling tilemappers before I apply it to Tio.
« Last Edit: February 19, 2011, 10:52:28 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Dimension
« Reply #1 on: February 19, 2011, 12:14:19 am »
That's pretty cool. I was going to make a game called "flipside" based on this concept, but without using Random RAM.
In-progress: Graviter (...)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #2 on: February 19, 2011, 12:23:38 am »
Thanks ;D
I was playing the first one about every other class at school today, esp. because there are so many of the teachers sick for some reason and I had like three subs :P
Kind of addictive actually, once you come up with a sort of goal (in my case, try to get as far up as possible) ;D
« Last Edit: February 19, 2011, 12:23:51 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Dimension
« Reply #3 on: February 19, 2011, 12:25:41 am »
No idea why, but it totally reminded me of
http://www.moddb.com/mods/flipside
In-progress: Graviter (...)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #4 on: February 19, 2011, 12:44:54 am »
Strange...I've heard of HL2 but I've never played it before...

I'm hoping to get this figured out soon, though.  Smoothscrolling, random ideas/explorations and I don't seem to get along very well :P

Okay, I'm taking the night to try and get this fixed.
« Last Edit: February 19, 2011, 02:48:46 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

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
Re: Dimension
« Reply #5 on: February 19, 2011, 03:30:09 am »
Interesting, in future versions you could maybe add some sort of goal to the game where you must collect an item or something and it displays how close you are from it and the faster you get to it, the higher the score.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #6 on: February 19, 2011, 04:02:25 am »
That would be really hard.
The 'level' this uses is the RAM.  Like, any spot.
What it does is
rand→E  //not a typo
and later it references {E} as a pointer.  IDK if there's a way to add in stuff without editing the 'level', which is a random spot in RAM.
« Last Edit: February 19, 2011, 04:02:56 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

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
Re: Dimension
« Reply #7 on: February 19, 2011, 04:14:37 am »
Ah ok, you could maybe add the object the early-Illusiat/ROL way, where it wasn't part of the map data.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #8 on: February 19, 2011, 04:15:44 am »
How is that done?  Does it have its own pointer of something?
Vy'o'us pleorsdti thl'e gjaemue

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
Re: Dimension
« Reply #9 on: February 19, 2011, 04:25:49 am »
In Illusiat the object Y and X location was stored in 2 variables. If your position was equal to both then it triggered the event code.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #10 on: February 19, 2011, 04:28:21 am »
Hmm...so one would try to collect coins or something spread through the RAM...could call them "corruptions" or something lol
I think I'm getting a storyline idea...

Thanks ;D
« Last Edit: February 19, 2011, 04:28:37 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

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
Re: Dimension
« Reply #11 on: February 19, 2011, 04:32:37 am »
One thing to keep in mind, though, is that using variables you would only have one coin. It might be best to store them in an array like in L1 and run a For loop through them to display them if they're in the screen.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #12 on: February 19, 2011, 04:36:42 am »
True.  Maybe when you collect one, another pops up...the last one can be in the variable buffer so it's hard to get at as the blocks are going haywire. :evillaugh:  I'm kind of liking this idea... I'll try to implement it once I get the elementary tilemapping working :P
Vy'o'us pleorsdti thl'e gjaemue

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
Re: Dimension
« Reply #13 on: February 19, 2011, 04:42:24 am »
That could work too.

Also what would be cool is if we could be able to move on 2 different type of tile at a time and swap layers or something, because that way I am sure the game would be even more fast-paced, as someone could switch extremly fast between layers to fall faster and faster.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Dimension
« Reply #14 on: February 19, 2011, 04:45:40 am »
Pretty much the main part of this game is its 'swapping layers'...watch this and you'll see kind of what I'm shooting for.
It's the image from above.

About the blocks:
Dark gray=current layer
light gray=other layer
black=both layers

Do you mean more than two layers?
« Last Edit: February 19, 2011, 04:46:56 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue