Jump to content

Photo

2018 Contest Chat


120 replies to this topic

#51 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Sat Mar 24, 2018 7:00 PM

Given the number of objects in screen at same time, this is done with 16 GRAM predefined.

The object is moved one bit to right for 8 times, the extra goes into another card.

Then you use an array to select the card for the pixel coordinate AND 7.

Essentially infinite objects of same type on screen.

OK, I'm still working on how to do this. but, in my search around the forum I found the paralax scrolling discussion and that led me to an animation from "Inty-B Volume 2". Is this available anywhere? the code for it etc.  I can't find it and was wondering if it was ever released.



#52 nanochess ONLINE  

nanochess

    Processorus Polyglotus

  • 5,529 posts
  • Coding something good
  • Location:Mexico City

Posted Sat Mar 24, 2018 7:02 PM

OK, I'm still working on how to do this. but, in my search around the forum I found the paralax scrolling discussion and that led me to an animation from "Inty-B Volume 2". Is this available anywhere? the code for it etc.  I can't find it and was wondering if it was ever released.


I think Tarzilla is still developing volume 2 and didn't feel like source code was ready.

#53 DZ-Jay OFFLINE  

DZ-Jay

    Quadrunner

  • 11,156 posts
  • The P-Machinery AGE is almost here!
  • Location:NC, USA

Posted Sun Mar 25, 2018 6:40 AM

OK, I'm still working on how to do this. but, in my search around the forum I found the paralax scrolling discussion and that led me to an animation from "Inty-B Volume 2". Is this available anywhere? the code for it etc.  I can't find it and was wondering if it was ever released.

 

fsuinnc, unfortunately there doesn't seem to be any ready-made IntyBASIC code of this technique, but it is quite simple, you should be able to give it a try.  Here's the simple algorithm:

 

  • First, decide whether you will be "scrolling" a repeating pattern (like a light marquee) or "moving" an object (like in the meteor example).  There is a difference in the implementation because moving the object requires shifting it out of the card and into a new one, which requires more animation cards.  In any case, the technique is the same.
  • Draw the pattern or object on an 8x8 picture card.  Here's my sample object, just an oval:
........
........
........
..####..
##....##
..####..
........
........
  • Now, repeat the picture as many times as it takes to shift it in and out of the 8x8 card space, one pixel at a time.  That will be our animation sequence:
:0       :1       :2       :3       :4       :5       :6       :7       :8       :9       :10      :11      :12      :13      :14      :15
........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........
........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........
........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........
........ ........ .......# ......## .....### ....#### ...####. ..####.. .####... ####.... ###..... ##...... #....... ........ ........ ........
.......# ......## .....##. ....##.. ...##... ..##.... .##....# ##....## #....##. ....##.. ...##... ..##.... .##..... ##...... #....... ........
........ ........ .......# ......## .....### ....#### ...####. ..####.. .####... ####.... ###..... ##...... #....... ........ ........ ........
........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........
........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ 
  • Now, decide where your object starts on the screen.  It'll probably be on the edge of the screen so that you can smoothly transition it into the visible field.  You set a BACKTAB card the first picture in our sequence, tile #0 above.
  • Decide the direction you are moving.  The sequence above moves the object from the right to the left.  Animating it in reverse will result in moving the object from left to right.

We're ready to "move" our object by animating it across the BACKTAB.  First, since it is a "moving object," we'll want to keep track of some information on it, similar to how we do for a MOB:  it's speed, it's position in the play-field (in case there's a "logical" coordinate system), and its actual position in the BACKTAB (which will change as it moves across the screen), and its current animation frame.

 

This last one is important, as you'll see, because it tells us the "offset" within a BACKTAB card in which the object resides.  Together, the BACKTAB card number and the animation frame, tells us precisely where in the play-field our object is.

 

One other thing to remember is that, as the object moves across the field, it will occasionally straddle two BACKTAB cards.  We'll have to keep track of both (or at least one of them, and derive the other from it).

 

To simplify things, we'll track the "leading edge," that is, the BACKTAB card containing the front of the object.

 

There's also a few things we need to know about our animation sequence.  It'll be useful to keep these constants around.

  • First frame for moving left:  picture #0.
  • Last frame for moving left:  picture #15.
  • First frame for moving right:  picture #14.
  • Last frame for moving right:  picture #0.
  • First frame shifting out of card for moving left:  #8.
  • First frame shifting out of card for moving right:  #6.

In the algorithm below, we are going to move from the right edge of the screen to the left.  To move in the other direction, just reverse the signs on all maths operations, e.g., turn all additions to subtractions, and vice-versa.

 

Now, Let's animate it!

 

 


  • FIRST_FRAME = 0
  • LAST_FRAME = 15
  • FIRST_SHIFT_FRAME = 8

 

MAIN LOOP:

  1. Increase animation frame number for the LEADING BACKTAB.
  2. Is the frame number less than the FIRST_SHIFT_FRAME?
    1. Yes:  The object is still in the same card.
      1. Go to ANIMATE LEAD
      2. Go to ANIMATE TRAIL
    2. No:  The object moved into a new card.
      1. Go to ENTER NEW CARD
      2. Go to ANIMATE TRAIL
  3. Go to Step 1.

 

ANIMATE LEAD:

  1. Set LEADING BACKTAB to new frame card.
  2. Return

 

ENTER NEW CARD:

  1. Set animation frame number for TRAILING BACKTAB to current leading animation frame.
  2. Set animation frame number for LEADING BACKTAB to FIRST_FRAME.
  3. Update LEADING BACKTAB to point to new leading frame (FIRST_FRAME).
  4. Return

 

ANIMATE TRAIL:

  1. Is current animation frame for TRAILING BACKTAB equal to LAST_FRAME?
    1. No:  Update TRAILING BACKTAB with current animation frame.
    2. Yes:  We're done with TRAILING BACKTAB.  We can discard its information for the moment.
  2. Return

 

 

By doing the above for multiple objects on the screen, you can simulate "scrolling."  The parallax effect comes when you animate multiple objects at different speeds and different starting animation frames -- all the objects at the same speed appear to be on the same "perspective plane."

 

Also, by keeping the animation frames as powers of two, you can shortcut some steps by just using bitwise operations rather than more expensive comparisons and go-tos.

 

I hope the above helps.

 

    -dZ.

 

 

EDIT:  Re-wrote algorithm for clarity.

EDIT:  Added Step 2.1.1 to clarify that the LEADING BACKTAB needs to be updated.


Edited by DZ-Jay, Tue Mar 27, 2018 5:30 AM.


#54 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Tue Mar 27, 2018 5:19 AM

(sorry for the delay)  Thanks for the detailed help. Pretty amazing. This was all very helpful and I am playing with some ideas. It's amazing how much time and effort you guys put into helping people (me). 

Thanks again.



#55 DZ-Jay OFFLINE  

DZ-Jay

    Quadrunner

  • 11,156 posts
  • The P-Machinery AGE is almost here!
  • Location:NC, USA

Posted Tue Mar 27, 2018 5:23 AM

(sorry for the delay)  Thanks for the detailed help. Pretty amazing. This was all very helpful and I am playing with some ideas. It's amazing how much time and effort you guys put into helping people (me). 

Thanks again.

 

No worries.  If I were a good programmer (or at least knew IntyBASIC), I would offer code.  So I leave that to the experts here. :)

 

   -dZ.



#56 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Tue Mar 27, 2018 5:27 AM

Your outline is just about as good as code, maybe better.  I'm playing with code myself. Downside is now that I can make one image move I want to move ten. Then timing becomes a problem because I don't quite get that. and on and on. Thankfully, I find the processes very enjoyable even if I never get a game out of it.



#57 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Tue Mar 27, 2018 5:53 PM

Just in case anybody wants to see (and maybe can make it better). a couple of examples of moving things horizontally accross the screen. At present it goes only left to right. 

 

Attached File  scroll_test.bas   4.96KB   24 downloads (this is the source for the first animation. code is the same for the second just the bitmaps change)

 

Scroll1.gif

 

Scroll2.gif

 

Now, I need to work on better ways to control the timing of things.

 
Thanks again to DZ-Jay and nanochess for putting up with me.

Edited by fsuinnc, Tue Mar 27, 2018 5:53 PM.


#58 nanochess ONLINE  

nanochess

    Processorus Polyglotus

  • 5,529 posts
  • Coding something good
  • Location:Mexico City

Posted Tue Mar 27, 2018 5:59 PM

You're welcome :) :thumbsup:

#59 emerson OFFLINE  

emerson

    Chopper Commander

  • 109 posts
  • Location:Northeast Ohio

Posted Tue Mar 27, 2018 6:55 PM

Well done fsuinnc!



#60 DZ-Jay OFFLINE  

DZ-Jay

    Quadrunner

  • 11,156 posts
  • The P-Machinery AGE is almost here!
  • Location:NC, USA

Posted Wed Mar 28, 2018 3:07 AM

 

Just in case anybody wants to see (and maybe can make it better). a couple of examples of moving things horizontally accross the screen. At present it goes only left to right. 

 

attachicon.gifscroll_test.bas (this is the source for the first animation. code is the same for the second just the bitmaps change)

 

attachicon.gifScroll1.gif

 

attachicon.gifScroll2.gif

 

Now, I need to work on better ways to control the timing of things.

 
Thanks again to DZ-Jay and nanochess for putting up with me.

 

 

That's great!  I'm glad I was able to help.   :)

 

Hipnotic!  Nice work. :thumbsup:

 

   -dZ.



#61 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Wed Mar 28, 2018 7:08 PM

I know this is dumb, but i didn't even think about multiple colors when I was messin with this.  and then it hit me.  I just thought it was cool so I posted it.

 

(sharing is caring)

 

PlanesInColor.gif



#62 digress ONLINE  

digress

    Stargunner

  • 1,043 posts
  • Location:Toronto, Ontario, Canada

Posted Tue Apr 3, 2018 6:29 PM

wow 4 entries now. Pretty cool. just need 2 more or I'll have to enter twice.



#63 Kiwi OFFLINE  

Kiwi

    Stargunner

  • 1,586 posts

Posted Tue Apr 3, 2018 9:58 PM

I'll join in. I haven't thought of what game to make.



#64 cmart604 OFFLINE  

cmart604

    Intellivision Hoarder

  • 12,058 posts
  • Running out of things to buy.
  • Location:Vancouver

Posted Tue Apr 3, 2018 11:30 PM

I'll join in. I haven't thought of what game to make.


Bacon. Make a bacon game please. Just sayin. :)

#65 carlsson OFFLINE  

carlsson

    Metagalactic Mule

  • 7,522 posts
  • Location:Västerås, Sweden

Posted Wed Apr 4, 2018 12:27 AM

2/3 of the contest time remains. I'm sure there will be additional entries. Last time I think about 50% of the entries were submitted in the last month, though it might be different this time depending on how many spend their summer vacation programming video games.



#66 DZ-Jay OFFLINE  

DZ-Jay

    Quadrunner

  • 11,156 posts
  • The P-Machinery AGE is almost here!
  • Location:NC, USA

Posted Wed Apr 4, 2018 5:16 AM

I'll join in. I haven't thought of what game to make.

 

OK, I'll give you a hint...

Spoiler

 

:)

    -dZ.



#67 fsuinnc OFFLINE  

fsuinnc

    Moonsweeper

  • 482 posts
  • Location:Chapel Hill NC.

Posted Wed Apr 4, 2018 2:14 PM

I am planning to have an entry.  Not sure exactly how far I will get but I am hoping to make something similar to the classic arcade 'Lunar Rescue'. If your not familiar here is a video https://www.youtube....h?v=6oeAsbC2xKA

 

After much looking I felt this game and it's single screen was better suited to my thinking process than the taxi game or most of the other great ideas people shared.

 

(there is a good A2600 homebrew game very similar called "This Planet Sucks").



#68 carlsson OFFLINE  

carlsson

    Metagalactic Mule

  • 7,522 posts
  • Location:Västerås, Sweden

Posted Wed Apr 4, 2018 3:11 PM

What a lovely little gem! Previously unknown to me, despite it's from Taito.

#69 DZ-Jay OFFLINE  

DZ-Jay

    Quadrunner

  • 11,156 posts
  • The P-Machinery AGE is almost here!
  • Location:NC, USA

Posted Wed Apr 4, 2018 4:26 PM

I am planning to have an entry.  Not sure exactly how far I will get but I am hoping to make something similar to the classic arcade 'Lunar Rescue'. If your not familiar here is a video https://www.youtube....h?v=6oeAsbC2xKA

 

After much looking I felt this game and it's single screen was better suited to my thinking process than the taxi game or most of the other great ideas people shared.

 

(there is a good A2600 homebrew game very similar called "This Planet Sucks").

 

Oh yeah!  I remember that game.  I used to play it at a pizza parlor close to my grandparents house when I was a kid.  I would imagine that game would be harder to implement than Space Taxi, but if you can pull it off it would be great! :)

 

    -dZ.



#70 emerson OFFLINE  

emerson

    Chopper Commander

  • 109 posts
  • Location:Northeast Ohio

Posted Wed Apr 4, 2018 4:40 PM

Lunar Rescue reminds me of Cosmic Ark, just more complicated.

 

Also, I plan to have an entry as well. I know what I want to do, and am slowly figuring out how to do it.



#71 carlsson OFFLINE  

carlsson

    Metagalactic Mule

  • 7,522 posts
  • Location:Västerås, Sweden

Posted Wed Apr 4, 2018 6:21 PM

It reminds me, is there somewhere an equivalence list of Intellivision games and any arcade games or other formats they've been based upon? While I can find lists with just the titles and even ROMs to download, I haven't really come across any good sites with screenshots, like a Gamebase64, Lemon Amiga, Generation MSX or any other similar site out there. Of course just looking at a screenshot not always is enough to determine how the game plays, but it gives a hint which games are worth studying more carefully if one wants to extend the wheel rather than redo it. But yes, an equivalence list even without screenshots would be a great start, and for those games that don't really have a match on another format just leave it blank.



#72 Intymike OFFLINE  

Intymike

    River Patroller

  • 3,003 posts
  • Location:Rhine Valley

Posted Thu Apr 5, 2018 10:59 AM

Cool, Jupiter Lander meets Space Invaders meets Choplifter. With the twist that this game was there before two of this games.



#73 Rev OFFLINE  

Rev

    A.K.A. Revolutionika

  • Topic Starter
  • 16,128 posts
  • Location:NC

Posted Sun Jun 10, 2018 9:20 PM

Any new entries coming? 😃

#74 nanochess ONLINE  

nanochess

    Processorus Polyglotus

  • 5,529 posts
  • Coding something good
  • Location:Mexico City

Posted Sun Jun 10, 2018 9:25 PM

Any new entries coming?


I've heard there are at least two games in the works and possibilities of two more :)

#75 Rev OFFLINE  

Rev

    A.K.A. Revolutionika

  • Topic Starter
  • 16,128 posts
  • Location:NC

Posted Sun Jun 10, 2018 9:44 PM

I've heard there are at least two games in the works and possibilities of two more :)


👍




1 user(s) are browsing this forum

0 members, 1 guests, 0 anonymous users