Author Topic: [Axe] Gravity Walls  (Read 12951 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
[Axe] Gravity Walls
« on: August 08, 2012, 08:25:28 pm »
Hi guys !

Here is my current Axe project : Gravity Walls !

In this gravity-based game, you are a man trapped in a room with only one chance to escape : a small door.

But there is a problem ... this door is sticked far on the wall ! Yeah, this room is kind of special ... In the background, there are arrows, and these arrows decide where go the gravity ; if you go on them, the gravity switch in the direction of the arrow. And since you follow the gravity, you can access to the door by using these arrows !

There will be many levels, but for now I only did the map engine and the physics, and separately.

Mapper :


Physics :
« Last Edit: August 09, 2012, 05:44:15 am by Matrefeytontias »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Gravity Walls
« Reply #1 on: August 09, 2012, 05:43:44 am »
Up !

Now with screenshots !

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Axe] Gravity Walls
« Reply #2 on: August 09, 2012, 05:52:53 am »
Are you a big fan of Leafy ? It reminds me a lot of Graviter (by Leafy) in which the player would control the character from Tag (by Leafy too) O.O
Otherwise, it seems like a great project :D
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Gravity Walls
« Reply #3 on: August 09, 2012, 06:01:40 am »
Eeeeeer no I'm not :D but it's right that I took the character from Graviter and Portal X.

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: [Axe] Gravity Walls
« Reply #4 on: August 09, 2012, 09:39:39 am »
It does indeed sound like quite the awesome project ^^ I'm glad to see the gravity games getting a revival :P
In-progress: Graviter (...)

Offline V1mes

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +7/-0
  • Ma-Heki!
    • View Profile
Re: [Axe] Gravity Walls
« Reply #5 on: August 09, 2012, 10:20:47 am »
Cool idea  :D
Can't wait see this one finished
Nom nom nom

Spoiler For Do a barrell roll:

Offline Progammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +9/-0
    • View Profile
Re: [Axe] Gravity Walls
« Reply #6 on: August 09, 2012, 10:23:16 am »
How do you get the "scrolling arrows effect" ?
Check out my New Axe game : Wormsblock http://www.omnimaga.org/index.php?topic=8393.msg154258#msg154258
Any suggest would be welcome :)

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/e1c7a850d530fb8e.png" alt="NerdTests.com says I'm a Cool Light-Weight Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>
Have fun !

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [Axe] Gravity Walls
« Reply #7 on: August 09, 2012, 10:27:08 am »
Idea: make two same sprites, and in a loop:
Code: [Select]
0->I
[xxx]->Pic0
[xxx]
.the two sprites are the same!!
While(xxx)
I=I+1%8
Pt-On(0,0,Pic0+I)
End
I is used like a offset ;)
« Last Edit: August 09, 2012, 10:30:46 am by Eiyeron »

Offline Progammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +9/-0
    • View Profile
Re: [Axe] Gravity Walls
« Reply #8 on: August 09, 2012, 10:29:30 am »
ah ok , thank's a lot
Check out my New Axe game : Wormsblock http://www.omnimaga.org/index.php?topic=8393.msg154258#msg154258
Any suggest would be welcome :)

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/e1c7a850d530fb8e.png" alt="NerdTests.com says I'm a Cool Light-Weight Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>
Have fun !

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [Axe] Gravity Walls
« Reply #9 on: August 09, 2012, 10:30:59 am »
I ust added something, you just have to make two same sprites
« Last Edit: August 09, 2012, 10:31:12 am by Eiyeron »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Gravity Walls
« Reply #10 on: August 09, 2012, 10:35:30 am »
Well, in fact I use an Axiom I codded for this game :P it's just bits and bytes manipulations in the arrows' image. I did it in ASM to have fast commands.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [Axe] Gravity Walls
« Reply #11 on: August 09, 2012, 10:41:14 am »
May we take a look at it's source? THat could be VERY useful!

Offline Progammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +9/-0
    • View Profile
Re: [Axe] Gravity Walls
« Reply #12 on: August 09, 2012, 10:41:32 am »
I ust added something, you just have to make two same sprites
Yeah I guessed
Check out my New Axe game : Wormsblock http://www.omnimaga.org/index.php?topic=8393.msg154258#msg154258
Any suggest would be welcome :)

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/e1c7a850d530fb8e.png" alt="NerdTests.com says I'm a Cool Light-Weight Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>
Have fun !

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Gravity Walls
« Reply #13 on: August 09, 2012, 10:55:25 am »
May we take a look at it's source? THat could be VERY useful!
Of course :)

Here are the file axmwalls.z80 :
Code: [Select]
.dw $C0DE
; Scroll down
.dw scrlDEnd
.db 00111111b
.db 0FEh, 0
.db 0
.db 1
rorg 0
ld e, 7
ld d, 0
add hl, de
ld e, (hl)
ld b, 7
LoopD:
dec hl
ld a, (hl)
inc hl
ld (hl), a
dec hl
djnz LoopD
ld a, e
ld (hl), a
scrlDEnd:
; Scroll left
.dw scrlLEnd
.db 00111111b
.db 0FDh, 0
.db 0
.db 1
rorg 0
push hl
ld b, 8
LoopL:
rlc (hl)
inc hl
djnz LoopL
pop hl
scrlLEnd:
; Scroll right
.dw scrlREnd
.db 00111111b
.db 0FCh, 0
.db 0
.db 1
rorg 0
push hl
ld b, 8
LoopR:
rrc (hl)
inc hl
djnz LoopR
pop hl
scrlREnd:
; Scroll up
.dw scrlUEnd
.db 00111111b
.db 0BBh, 5Ah
.db 0
.db 1
rorg 0
push hl
ld e, (hl)
ld b, 7
LoopU:
inc hl
ld a, (hl)
dec hl
ld (hl), a
inc hl
djnz LoopU
ld a, e
ld (hl), a
pop hl
scrlUEnd:
; Screen on
.dw scrOnEnd
.db 00111111b
.db 05h, 0
.db 0
.db 1
rorg 0
ld a, 3
out (10h), a
scrOnEnd:
; Screen off
.dw scrOffEnd
.db 00111111b
.db 0BBh, 5Bh
.db 0
.db 1
rorg 0
ld a, 2
out (10h), a
scrOffEnd:
.dw 0
.dw 01FCh
.db 11
.db "ScrollDown("
.dw 01FAh
.db 11
.db "ScrollLeft("
.dw 01F8h
.db 12
.db "ScrollRight("
.dw 045Eh
.db 9
.db "ScrollUp("
.dw 0Ah
.db 8
.db "ScreenOn"
.dw 0460h
.db 9
.db "ScreenOff"
These 6 commands are in the TYPE menu : [2nd] + [f(x)] / [Y=] + [→]. To use them :
Code: [Select]
Scroll*direction*(Pic1

Scrolls the content of Pic1 one pixel in the given direction and re-stores it to Pic1
« Last Edit: August 09, 2012, 10:56:31 am by Matrefeytontias »

Offline Progammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +9/-0
    • View Profile
Re: [Axe] Gravity Walls
« Reply #14 on: August 10, 2012, 04:57:20 am »
But what about right and left arrows ? cant use :

0->I
[xxx]->Pic0
[xxx]
.the two sprites are the same!!
While(xxx)
I=I+1%8
Pt-On(0,0,Pic0+I)
End
Check out my New Axe game : Wormsblock http://www.omnimaga.org/index.php?topic=8393.msg154258#msg154258
Any suggest would be welcome :)

<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/e1c7a850d530fb8e.png" alt="NerdTests.com says I'm a Cool Light-Weight Nerd.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>
Have fun !