Author Topic: Contra  (Read 51859 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55830
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Contra
« Reply #30 on: November 07, 2010, 02:41:47 pm »
Yeah I recommend staying away from Bitmap too. Quigibo only added them for those who need to save space but don't care about speed. Otherwise, I recommend using the Axe sprite functions, which are much faster.

Btw Contra seems to be much more than 8 tiles high. Are you sure you will not need scrolling up/down?
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Contra
« Reply #31 on: November 07, 2010, 02:43:14 pm »
What?  o.O *Builderboy is confused*

The original Contra is 7 blocks vertically. I was thinking 9 pixels per block * 7 blocks = 63 rows of pixels, which would have filled the screen nicely. But I think I'll stick to 8x8 :-\




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Contra
« Reply #32 on: November 07, 2010, 03:08:32 pm »
Ohh gotcha, and thats cool that contra is only 7 blocks high, it can fit on the screen very nicely :D and yeah 9x9 sprites would be a pain x.x

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Contra
« Reply #33 on: November 07, 2010, 03:11:56 pm »
What?  o.O *Builderboy is confused*

The original Contra is 7 blocks vertically. I was thinking 9 pixels per block * 7 blocks = 63 rows of pixels, which would have filled the screen nicely. But I think I'll stick to 8x8 :-\

You could just use the lower 56 pixels for the game (7 blocks * 8 pixels) and the remaining 9 pixels on the top for scenery like clouds.

I can't wait to see how this turns out.
« Last Edit: November 07, 2010, 03:12:33 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Contra
« Reply #34 on: November 07, 2010, 03:12:38 pm »
What?  o.O *Builderboy is confused*

The original Contra is 7 blocks vertically. I was thinking 9 pixels per block * 7 blocks = 63 rows of pixels, which would have filled the screen nicely. But I think I'll stick to 8x8 :-\

You could just use the lower 56 pixels for the game (7 blocks * 8 pixels) and the remaining 9 pixels on the top for scenery like clouds.

Or a black bar for stats :)




Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55830
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Contra
« Reply #35 on: November 07, 2010, 04:22:26 pm »
Er, Deep Thought, Contra is 15 blocks high, not 7. The NES screen is 240 pixels high and NES tiles are 16x16.

EDIT: actually it's 14. Most tiles seems to be blocks of 4 16x16 tiles, but somewhere else in the game I saw such blocks that were one tile high only. If you really want to divide the map size by half, some parts might require modifications.
« Last Edit: November 07, 2010, 04:30:33 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Contra
« Reply #36 on: November 07, 2010, 05:16:07 pm »
Or, perhaps you could do like Notch did in minecraft, and have half tiles that actually take up a whole tile, but you land midway through it. You'd have to use Pxl-test for colliion, though.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Contra
« Reply #37 on: November 07, 2010, 07:13:19 pm »
Er, Deep Thought, Contra is 15 blocks high, not 7. The NES screen is 240 pixels high and NES tiles are 16x16.

EDIT: actually it's 14. Most tiles seems to be blocks of 4 16x16 tiles, but somewhere else in the game I saw such blocks that were one tile high only. If you really want to divide the map size by half, some parts might require modifications.

Yeah, I know. I'm combining four tiles into one. And yeah, some of the platforms would be halfway down a tile if I did that, but I think I'm just going to move them a bit. Close enough ;)

No pxl-Test('ing. It would get really messy with a dark background.




Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55830
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Contra
« Reply #38 on: November 07, 2010, 07:31:37 pm »
Ah ok, thanks for confirming. For the half-tile platforms you could remove them indeed. I doubt they will matter much anyway. Good luck with this project!
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Contra
« Reply #39 on: November 07, 2010, 07:37:01 pm »
Good luck with this project!
this.  ;)
so, how far are you into coding?  or is this still in the planning stages?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

ASHBAD_ALVIN

  • Guest
Re: Contra
« Reply #40 on: November 07, 2010, 07:42:42 pm »
Yeah I recommend staying away from Bitmap too. Quigibo only added them for those who need to save space but don't care about speed.

Also, there's a ROM call for that in assembly ;) that's probably another reason why

it drawns to the buffer AND updates the screen.  I don't recommend :P

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Contra
« Reply #41 on: November 07, 2010, 07:45:25 pm »
Ah ok, thanks for confirming. For the half-tile platforms you could remove them indeed. I doubt they will matter much anyway. Good luck with this project!

Actually I'm just going to move them half a tile up or down just in case. Whichever one works.

Good luck with this project!
this.  ;)
so, how far are you into coding?  or is this still in the planning stages?

Thanks! I'm coding the movement right now (walking and jumping all work), and I'll probably add tile detection next.




Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Contra
« Reply #42 on: November 07, 2010, 08:14:22 pm »
this sounds like it might be a little cramped, but with fewer bullets you could make it work(and save processing power as well =D). good luck and all that!

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55830
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Contra
« Reply #43 on: November 07, 2010, 09:31:41 pm »
Yeah I recommend staying away from Bitmap too. Quigibo only added them for those who need to save space but don't care about speed.

Also, there's a ROM call for that in assembly ;) that's probably another reason why

it drawns to the buffer AND updates the screen.  I don't recommend :P
This is what Quigibo's Bitmap command uses.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Contra
« Reply #44 on: November 07, 2010, 10:57:48 pm »
Idk if this has been mentioned, but...

will you add the Contra Code?  ;D

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>