Jump to content

Photo

The Celery Game (was:"Screen rolls at the start")


148 replies to this topic

#51 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sat Jul 16, 2016 8:18 PM

Minor update: I changed the look of the 1 digit and made sure the score rolled properly. Yes, I sat through the entire 10,000 numbers, but they were increasing 60 per second (I think) so it didn't take that long. I also played it on my Harmony cart and didn't notice anything weird (besides the score not being the way I wanted it to.) I have 756 bytes left, so what's left on my list of things I want to do to this game is to make the vegetarians move faster the longer you play the game. To do this, I'll put in a variable called Player0Speed and make it go higher depending on the value of the score, only having it increase if the first two digits of the score are 00. I'm a week into this game and almost done with the programming of the main game.

Attached Files



#52 tschak909 ONLINE  

tschak909

    Stargunner

  • 1,745 posts
  • Location:USA

Posted Sat Jul 16, 2016 11:22 PM

am proud of you, bro. 

 

How are you liking doing the whole process?

 

-Thom



#53 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sat Jul 16, 2016 11:28 PM

This is, believe it or not, the hardest coding I think I have ever done. But it's fun, it certainly does have advantages over bB, like you don't have to use no_blank_lines to get no blank lines and you get to keep both missiles. The trade off is having some even more difficult code that I am still trying to get the hang of. it reminds me of Odyssey 2 assembly which I have done stuff in, but this is harder.



#54 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 8:14 AM

Made the vegetarians' speed increase at 25, 50, and once more at 75 points. Let me know if it goes too fast.

Attached Files



#55 SpiceWare ONLINE  

SpiceWare

    Quadrunner

  • 11,134 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Sun Jul 17, 2016 9:36 AM

I wanted a good solid score. Is that possible?

 

 

Sure, would be easier if the score was centered.  Would that be OK?  If so I'll take a look later on today.



#56 SpiceWare ONLINE  

SpiceWare

    Quadrunner

  • 11,134 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Sun Jul 17, 2016 2:59 PM

celery17dgs.png

 

Attached File  celery17dgs.zip   30.57KB   56 downloads



#57 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 6:56 PM

I moved the score increasing code you put in the code to when the vegetarian gets hit but the score won't increase.



#58 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 7:09 PM

OK, I got the score issue resolved and it looks a lot nicer. Thank you Spiceware!

 

What do you think about the speed of the vegetarians?



#59 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 7:25 PM

I have been thinking about making the speed of the vegetarians random. How would I utilize the first two bits of the Random variable to control the speed? Also keep in mind that I don't want 00 as a speed because then it wouldn't move at all. I call the Random variable, but then what?



#60 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 7:33 PM

I think I figured it out. What do you think?

Attached Files



#61 tschak909 ONLINE  

tschak909

    Stargunner

  • 1,745 posts
  • Location:USA

Posted Sun Jul 17, 2016 9:30 PM

This kind of game can only be played with paddles, just sayin'. :)

 

-Thom



#62 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 11:28 PM

Can I have the computer tell which is plugged in, the paddles or the joystick and then have it do that? How do I read whether the paddle has been turned left or right?



#63 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Sun Jul 17, 2016 11:43 PM

Per Stella guide:


12.1 Dumped Input Ports (INPT0 thru INPT3) These four ports are used to read up to four paddle controllers.  Each paddle controller contains an adjustable pot controlled by the knob on the controller.  The output of the pot is used to charge a capacitor in the console, and when the capacitor is charged the input port goes HI.  The microprocessor discharges this capacitor by writing a "1" to D7 of VBLANK then measures the time it takes to detect a logic one at that port.  This information can be used to position objects on the screen based on the position of the knob on the paddle controller.

So what do I use to measure the paddle position? INPT0? VBLANK? Both? I'm so confused...



#64 tschak909 ONLINE  

tschak909

    Stargunner

  • 1,745 posts
  • Location:USA

Posted Mon Jul 18, 2016 12:16 AM

Here's a decent example courtesy of SpiceWare: 

 

http://spiceware.org...ri_paddles.html

 

-Thom



#65 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Mon Jul 18, 2016 1:13 AM

I can't do the paddles. Figuring out which scanline is which is too hard for me. This will have to be a joystick game.



#66 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Mon Jul 18, 2016 2:28 AM

I fixed the bug that varied the length of the buzz sound.

Attached Files



#67 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Mon Jul 18, 2016 4:34 AM

Added animation to the vegetarian, speed of the animation depending on how fast he goes.

Attached Files



#68 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Tue Jul 19, 2016 8:26 AM

Added some more celery. This time, it's either a vegetarian or a small piece of celery. You're supposed to let the celery pass and not incinerate them, because it's not very nice to burn your kin. The vegetarians act the same, though. Both have low and high speeds. I was having a whole bunch of trouble with the score being all wacko when the first digit was 6-9. but I think that has gone now. I wonder how this tiny bit of code, though, can be about 200-300 bytes?

.POS    SET 0
    REPEAT 256
    .byte (.POS / 15) + 1
.POS    SET .POS + 1
    REPEND

Attached Files



#69 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Wed Jul 20, 2016 7:41 AM

I'm having trouble with AUDF1. Is there a reason why I can't increase it?



#70 tschak909 ONLINE  

tschak909

    Stargunner

  • 1,745 posts
  • Location:USA

Posted Wed Jul 20, 2016 8:20 AM

If you look at the Stella Programmers Guide, you'll see that the audio circuitry on the VCS is literally a master frequency, divided down to produce the target pitch...Your effective frequencies are limited by the coarseness of the counter, and the particular polynomial transform that you use in AUDCx.

 

-Thom



#71 SpiceWare ONLINE  

SpiceWare

    Quadrunner

  • 11,134 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Wed Jul 20, 2016 8:36 AM

I can't do the paddles. Figuring out which scanline is which is too hard for me. This will have to be a joystick game.

 

 

I can add paddle support if you're interested in having that as an option.



#72 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Wed Jul 20, 2016 8:44 AM

Added an ending sound.

@SpiceWare: Yes, please add paddle support. What I would like to have is if paddles are detected, then use them, otherwise, use the joystick. Is that possible?

 

Attached Files



#73 SpiceWare ONLINE  

SpiceWare

    Quadrunner

  • 11,134 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Wed Jul 20, 2016 9:14 AM

Added an ending sound.

@SpiceWare: Yes, please add paddle support. What I would like to have is if paddles are detected, then use them, otherwise, use the joystick. Is that possible?

 

 

 

Yes, Astroblast autodetects joystick or paddles when you turn on the Atari.  It's probably similar to how we detect joystick or multi-button gamepad.



#74 atari2600land OFFLINE  

atari2600land

    In the name of lvoe.

  • Topic Starter
  • 10,590 posts
  • Shwam.
  • Location:Salem, Oregon

Posted Thu Jul 21, 2016 2:18 AM

How would I make it so the game starts once the fire button is pressed and then LET GO OF? Or is that even possible?

ProcessSwitches:
        ldx EndNoise
        cpx #63
        bcc StartOfFrame

        lda INPT4          ; read the player's fire button value    
        bmi StartOfFrame
        
StartTheGame:
        ;starting variables begin here.

Edited by atari2600land, Thu Jul 21, 2016 2:19 AM.


#75 SpiceWare ONLINE  

SpiceWare

    Quadrunner

  • 11,134 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Thu Jul 21, 2016 2:29 PM

auto-detect only runs once, so if you want to change between using paddles or joystick you need to shut off your Atari.

 

changes flagged with DGS

 

Attached File  celery24dgs.zip   31.74KB   50 downloads






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users