AtariAge Forums: 16-position rotation and movement - AtariAge Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

16-position rotation and movement

User is offline kisrael Icon
Posted Wed Jul 20, 2005 10:00 PM


  • Icon
  • HMBL 2600 coder
  • PM this member
  • Posts: 3,937
  • Joined: 10-July 02
  • Location: Boston Burbs, MA
This is just a small demo, I decided to see if I could do a "16 position rotation/movement" like you see in Combat. That's supposed to be a little jet, or something.

It's really crying out for "subpixel positioning" -- right now to throttle the speed and control I only change values of N frames, which is kind of primitive. But for "subpixel" I'd have to get into fractional, fixed point math and I think I'll wait and see what Batari adds to the language to help with that first, at least for now.

One thing I might try someday is a port of Intellivision biplanes, which is a bit like combat biplanes but there's gravity and stalling and all that good stuff.

Attached File(s)


0

User is offline batari Icon
Posted Wed Jul 20, 2005 10:19 PM


  • Icon
  • River Patroller
  • PM this member
  • View blog
  • View gallery
  • Posts: 4,706
  • Joined: 20-September 04

kisrael, on Wed Jul 20, 2005 11:00 PM, said:

This is just a small demo, I decided to see if I could do a "16 position rotation/movement" like you see in Combat.  That's supposed to be a little jet, or something.

It's really crying out for "subpixel positioning" -- right now to throttle the speed and control I only change values of N frames, which is kind of primitive.  But for "subpixel" I'd have to get into fractional, fixed point math and I think I'll wait and see what Batari adds to the language to help with that first, at least for now.

One thing I might try someday is a port of Intellivision biplanes, which is a bit like combat biplanes but there's gravity and stalling and all that good stuff.
View Post

I'm working on fixed point variables and math for the next release. I don't want to do just 8.8 since people will run out of bytes quickly, so I'm going to allow variables to be dim'ed as 4.4 as well. 8.8 should be useful for x and y positioning, and 4.4 should be good for velocities - and will be signed, such that it ranges from -8 to +8 at steps of 1/16th.
0

User is offline djmips Icon
Posted Wed Jul 20, 2005 11:42 PM

    • scrolling


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 575
  • Joined: 27-November 03
  • Location: Seattle
Ah... that's excellent. Supporting fixed point as a native type is something that the original 8 bit Basics should have had! (not to mention C)
0

User is offline kisrael Icon
Posted Thu Jul 21, 2005 12:19 PM


  • Icon
  • HMBL 2600 coder
  • PM this member
  • Posts: 3,937
  • Joined: 10-July 02
  • Location: Boston Burbs, MA

djmips, on Wed Jul 20, 2005 10:42 PM, said:

Ah... that's excellent.  Supporting fixed point as a native type is something that the original 8 bit Basics should have had!  (not to mention C)


Yeah. 4bit/4bit would probably be useful too. I guess you just need commands that can add another 8 bit value to either the integer or the fractional part, as well as a command to extract either the integer or fractional part.

I wonder if a new syntax would be useful, for constants?
Like
5|3
representing a byte that was 5 for the integer and "3/16" for the fraction, so like
01010011 in binary

It might make sense to have that, rather than saying only
0.0625
0.125
0.1875

I'd still be ok with using 2 bytes per fixed point value, and then just having some special add and subtract routines (I think you're going to need some special routines anyway, I think it's going to be too weird to keep the syntax clean...)
0

User is offline fsuinnc Icon
Posted Fri Jul 22, 2005 5:30 AM


  • Icon
  • Chopper Commander
  • PM this member
  • Posts: 170
  • Joined: 10-May 01
  • Location: Chapel Hill NC.
Using stella and Z28 all I get is some sound and an all black screen, but no jet?
0

User is offline kisrael Icon
Posted Fri Jul 22, 2005 5:52 AM


  • Icon
  • HMBL 2600 coder
  • PM this member
  • Posts: 3,937
  • Joined: 10-July 02
  • Location: Boston Burbs, MA
You shouldn't be getting any sound.

I just downloaded and it worked in Z26 and PCAEWin but not Stella. Strange.

Try compiling it from the .BAS file...
0

User is online stephena Icon
Posted Fri Jul 22, 2005 6:17 AM

    • Stella maintainer


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,320
  • Joined: 11-May 02
  • Location: Newfoundland, Canada

kisrael, on Fri Jul 22, 2005 8:22 AM, said:

You shouldn't be getting any sound.

I just downloaded and it worked in Z26 and PCAEWin but not Stella. Strange.

Try compiling it from the .BAS file...
View Post

It works with the current CVS version of Stella, so I guess there's a problem with Stella 1.4.2.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users