Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #393

Re: ideas for super mario bros?

From BLuRry <brendan.robert@gmail.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: ideas for super mario bros?
Date 2012-08-17 08:20 -0700
Organization http://groups.google.com
Message-ID <adadbb60-8331-4952-8c76-a9ff835d3b9b@googlegroups.com> (permalink)
References <f20ea197-84e6-41cd-8ca6-baa04edacabb@googlegroups.com>

Show all headers | View raw


I would use lookups.  You could have the macro assembler compute the rotation bits, but I wouldn't compute it on the fly in the game.  You'll have your hands full with updating sprites.

The cheap way would be to XOR the fireballs as an overlay.  It wouldn't look as pretty, but it would make it easier to redraw the screen (xor the old fireballs, update the screen, xor the new location of the fireballs, etc)

Your only other option would be to tag the surrounding blocks as "moved" so that you force them to be redrawn in order to get rid of the old fireball sprites.  This would allow you to draw better fireball overlay sprites but at a cost of a slower redraw.

On Friday, August 17, 2012 12:20:33 AM UTC-5, (unknown) wrote:
> My ascii version was rough, but fun to program.
> 
> 
> 
> I'm almost done with 6502 version (I know you guys
> 
> will be able to poke a ton of holes in my crummy
> 
> 6502!)
> 
> 
> 
> One thing that is going to slow the game down quite a bit
> 
> is spinning fireball bars.  World1.4
> 
> 
> 
> Enemies are bricks.  14X14 tiles with simple integer
> 
> math controlling their movements.
> 
> 
> 
> The spinning fireballs rotate around a brick in a circle.
> 
> 
> 
> see bottom of page at http://rich12345.tripod.com/basicmario/index.html
> 
> 
> 
> Any suggestions on how to spin that graphic?
> 
> 
> 
> The fireball bar is made of 6 8X8 fireballs.  That is 3 bricks long.  I have the fireball graphic converted to 7X7 to match the other graphics in my port. 
> 
> 
> 
> Should I have a table of the rotating pixel coordinates?  Use bresenhams algorithm to compute the coordinates?

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ideas for super mario bros? aiiadict@gmail.com - 2012-08-16 22:20 -0700
  Re: ideas for super mario bros? BLuRry <brendan.robert@gmail.com> - 2012-08-17 08:20 -0700
  Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-20 14:07 -0700
    Re: ideas for super mario bros? Antoine Vignau <antoine.vignau@laposte.net> - 2012-08-21 01:10 -0700
      Re: ideas for super mario bros? BLuRry <brendan.robert@gmail.com> - 2012-08-21 09:44 -0700
        Re: ideas for super mario bros? D Finnigan <dog_cow@macgui.com> - 2012-08-21 17:12 +0000
  Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-21 22:48 -0700
  Re: ideas for super mario bros? Egan Ford <datajerk@gmail.com> - 2012-08-22 08:34 -0600
    Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-22 09:49 -0700
  Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-23 16:59 -0700
    Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-28 20:24 -0700
      Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-29 07:55 -0700
        Re: ideas for super mario bros? Antoine Vignau <antoine.vignau@laposte.net> - 2012-08-29 10:35 -0700
          Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-29 13:03 -0700
          Re: ideas for super mario bros? BLuRry <brendan.robert@gmail.com> - 2012-08-29 16:07 -0700
          Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-29 18:04 -0700
            Re: ideas for super mario bros? aiiadict@gmail.com - 2012-09-08 09:03 -0700
              Re: ideas for super mario bros? Antoine Vignau <antoine.vignau@laposte.net> - 2012-09-09 14:21 -0700
          Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-30 09:15 -0700
          Re: ideas for super mario bros? Antoine Vignau <antoine.vignau@laposte.net> - 2012-09-02 13:10 -0700
            Re: ideas for super mario bros? BLuRry <brendan.robert@gmail.com> - 2012-09-02 14:30 -0700
              Re: ideas for super mario bros? aiiadict@gmail.com - 2012-09-03 17:02 -0700
            Re: ideas for super mario bros? aiiadict@gmail.com - 2012-09-03 10:02 -0700
              Re: ideas for super mario bros? Antoine Vignau <antoine.vignau@laposte.net> - 2012-09-03 14:30 -0700
      Re: ideas for super mario bros? aiiadict@gmail.com - 2012-09-05 15:50 -0700
  Re: ideas for super mario bros? aiiadict@gmail.com - 2012-08-29 07:59 -0700

csiph-web