Author Topic: Jetpack 8x+ background request  (Read 18986 times)

0 Members and 1 Guest are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Jetpack 8x+ background request
« Reply #15 on: March 23, 2012, 03:31:04 pm »
You'd better make the sprite a little smaller.
I'm not a nerd but I pretend:

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Jetpack 8x+ background request
« Reply #16 on: March 23, 2012, 04:31:27 pm »
This looks nice guys :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Jetpack 8x+ background request
« Reply #17 on: March 23, 2012, 04:45:38 pm »
In the real game, the enemies are 1.5 times bigger than mine, so it might be easily playable :)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Jetpack 8x+ background request
« Reply #18 on: March 23, 2012, 05:42:52 pm »
could be, but your screen is about 8 times smaller :)

it really is too big i think, since the field is only like 3 guys high...

but ok, if you don't want to change it, it stays an extremely nice game :)

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Jetpack 8x+ background request
« Reply #19 on: March 24, 2012, 04:33:52 am »
Sorry, but the field is like 5 guys high : my chara is high of only 12 pxls :)

EDIT : I saw a problem in your sprite, saintrunner : still my screen is little, the ground where the chara runs might be at the real bottom of the screen, can you change it ? Else I'll use it as it is.

EDIT 2 : I finished convert all in hexa (saintrunner, I'll hate you for that >:D ), and here is the result :


As you can see, that's awesome ! :thumbsup:

EDIT 3 : I paste the ground and the bottom of the screen :


I think I can fill the blank on the top of the screen by inserting 25% gray between the bottom and the top of the image.
« Last Edit: March 24, 2012, 07:31:36 am by Matrefeytontias »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Jetpack 8x+ background request
« Reply #20 on: March 24, 2012, 09:12:14 am »
You really should make your guy smaller.
I'm not a nerd but I pretend:

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Jetpack 8x+ background request
« Reply #21 on: March 25, 2012, 05:00:34 am »
I have some scrolling issues : I want to scroll my pic but I don't really know how to do that. The bitmap() functions is really too slow, and I think of use Horizontal -(BUF) then Copy(BUF), but I don't know how to reblit the same pic at the right of the first (to scroll).

Right now, I have this :
Code: [Select]
:prgmJTPKBG
:Buff(768)->A
:Buff(768)->B
:Copy(Pic1BG,A
:Copy(Pic1BKG,B
:
:Repeat getkey(15)
:Horizontal -(A
:Horizontal -(B
:
:Copy(A
:Copy(B,L3
:DispGraphrr
:End

It works, but only scrolls the pic once. How can I blit the second pic at the right of this ?

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Jetpack 8x+ background request
« Reply #22 on: March 25, 2012, 05:55:53 am »
You're trying to make a pixelmapping, good luck on that. :P

PS : you don't need thoses buffers. :o
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Jetpack 8x+ background request
« Reply #23 on: March 25, 2012, 07:11:41 am »
Actually that's ok, I found 2 hours ago ;D

Yes, I need these buffers because I clear both buffers each cycle, so I use them to keep the pic displayed somewhere (in order to apply Horizontal - on it)

EDIT : Here is what I reach :


That's not really pixelmapping, though
« Last Edit: March 25, 2012, 07:39:34 am by Matrefeytontias »

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Jetpack 8x+ background request
« Reply #24 on: March 25, 2012, 01:16:28 pm »
So if you use a 1536 bytes buffers, please use it outside the game. Eg. in an appvar that can be deleted at the end of the program. ;)
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Jetpack 8x+ background request
« Reply #25 on: March 25, 2012, 01:20:38 pm »
Yeah, but I just saw something : in game, it's slooooooooow <_<

Now, I have this (bit checking) :
Code: [Select]
:.X2t is the buffer 1, Y2t the buffer 2
:.There are 8 empty pixels at the top of the image
:
:DS<(C,2)
:For(r1,7,63)
: {r1*12+X2t}e0→{r1+L2
: {r1*12+Y2t}e0→{r1+L2+64
:End
:
:Horizontal -(X2t
:Horizontal -(Y2t
:
:For(r1,7,63
: {r1+L2} or {r1*12+11+X2t→r2}→{r2
: {r1+L2+64} or {r1*12+11+Y2t→r2}→{r2
:End
:End
:
:Copy(X2t
:Copy(Y2t,L3
That leave the game at an normal speed, but now that's the background which is too slow :banghead: how can I have fast speed and fast scrolling ?

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: Jetpack 8x+ background request
« Reply #26 on: March 25, 2012, 04:06:58 pm »
I'm not exactly sure how you're doing it, but the way I'm doing the scrolling backgrounds in Essence is I horizontal +/- the buffer, then look through a stored image and copy a column to the screen.
However in your case you might be able to get away with not having a stored copy because it's the same size as the screen.

I'm assuming you can only scroll to the left...
Maybe try this: First check the part of the buffer that's about to be scrolled off the screen.
So if it's scrolling leftthen you'd check the leftmost bit in each row ( {[row#]*12}e0 ), and store the results somewhere.
Horizontal - as needed
Then go back through the bits you checked earlier and effectively copy the column that was scrolled off the screen (on the left) to the other side of the screen (the right), giving the impression of scrolling :) ( this should be possible by working down what you stored earlier and doing pxl-on to the buffer)
« Last Edit: March 25, 2012, 04:10:49 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Jetpack 8x+ background request
« Reply #27 on: March 25, 2012, 04:10:03 pm »
He wants probably update screen to display rockets and jetpack every loop.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

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: Jetpack 8x+ background request
« Reply #28 on: March 25, 2012, 04:12:50 pm »
Then he'll probably a stored copy...which he could modify on-the-fly to scroll.
Maybe when he goes to Clrdraw, he could just copy the background to the screen because that writes over whatever's on the buffer in the process ;D
« Last Edit: March 25, 2012, 04:13:18 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Jetpack 8x+ background request
« Reply #29 on: March 25, 2012, 06:22:34 pm »
Actually that's ok, I found 2 hours ago ;D

Yes, I need these buffers because I clear both buffers each cycle, so I use them to keep the pic displayed somewhere (in order to apply Horizontal - on it)

EDIT : Here is what I reach :


That's not really pixelmapping, though
That looks awesome. I'm curious how this will look like :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)