Jump to content
atari2600land

One-button game collection

Recommended Posts

After reading a certain thread, I thought of three ideas of a game where you can use one button and nothing else. I thought, "Why not try to make them, and put them all in one collection?" So that is what I'm doing. I have the first one here. It is called "Stak-king" which, I bet you can guess what you do here. I tried to implement some changes from the original game. You only have one block width, and it goes from left to right. To "stak" it, you need to press the button when the box moving left to right over and over again is on top of the previous box. A change I made was when you start on a new level, you can put the box anywhere. My highest score was 20 something. Let me know what you think, and if I should keep going. By the way, I did this with bB instead of assembly because one of the game ideas involves scrolling.

onebutton_2021_06_27.bin

  • Like 1

Share this post


Link to post
Share on other sites

Very cool idea.  This particular game reminds me of Stack Game, which is also quite nice.  Might want to check that out for ideas or ways to differentiate.

 

I assume this is all playfield graphics?  Feels like it be better to use a sprite for the moving block with the same dimensions a colors so you can get a smoother motion.

Share this post


Link to post
Share on other sites

I get what you're saying, but the sprite can't be drawn more than once in using bB like it can in assembly.

I worked some more on this and have the beginnings of a bomber pilot game, basically a port of an Odyssey 2 game that uses only the fire button. In case you're unfamiliar with it, the object of the game is to clear the blocks by using missiles to shoot them away. If the heilcopter crashes into one of them, the game ends. The helicopter moves downward a little with each pass by of the boxes. It's supposed to get harder as the game progresses, but I haven't gotten that far yet and I need to go to sleep now. To get to the "Bomber Pilot" game, press the select switch at the "Stak-king" screen.

onebutton_2021_06_27_version2.bas.bin

Share this post


Link to post
Share on other sites
10 minutes ago, atari2600land said:

I get what you're saying, but the sprite can't be drawn more than once in using bB like it can in assembly.

 

Right, but you wouldn't need to do that.  Just define the missile or the player or whatever so it looks just like a playfield block, and then when you hit the button you redefine the playfield to replace the sprite and move the sprite up a row before the next drawscreen.

Share this post


Link to post
Share on other sites

But what if the player doesn't line up with the pfblock when fire is pressed?

Share this post


Link to post
Share on other sites

I have a problem. I'm working on the Bomber Pilot game and the blocks aren't disappearing like they should. I have this code:

 collx=(player1x-13)/4 : colly=player1y/8 : leftblock=collx-2 : rightblock=collx+2

 if collision(player1,playfield) && bombdropping=1 then boxeshit=boxeshit+1 : pfhline leftblock colly rightblock off : bombdropping=0 : score=score+1 : sfxtype=2 : sfxtimer=16 : player1y=200

In theory, it SHOULD get rid of the two blocks to the left and right of the block as well as the block(s) it hits, but noooooo:

2021june28_bas.thumb.png.0ec73b7337638455138d326cbaa87938.png

Complete code attached. WHAT AM I DOING WRONG?

2021june28.bas

Share this post


Link to post
Share on other sites

Don't ask me how because I don't know, but this seems to have fixed it.

collx=(player1x-13)/4 : colly=player1y/8 : leftblock=collx-1 : rightblock=collx+2

This should get rid of one block to the left and two blocks to the right of where the bomb hit. Since the boxes are made of two pfpixels together, it should always work, but why not the other way? This game has four levels. If you beat the fourth level, it repeats until you die. By the way, I think I finished this game, on to the next one tomorrow. I thought of another idea in case I can't get my original third idea won't work, so there should be at least 3 games in this game.

onebutton_2021_06_28.bin

Share this post


Link to post
Share on other sites

Another game added. I have 9 bytes left if I choose to go 4k. I'm pretty impressed I was able to fit three games (albeit simple ones) into 4k.

This third one is called "Yum!" It is a simple game. What you do is open the mouth with the fire button to eat the red and blue candies and close the mouth by not pressing the fire button so you don't eat the Brussels Sprouts. The game ends if you eat a Brussels sprout or don't eat a candy. I decided I could simplify the game idea I had (about the cross between Flappy Bird and SMB) so you jump at certain times instead of making the playfield scroll. So there will be a fourth game, and that means this program will be 8k. The program's name is "Press Fire", because that's all you do (well, apart from choosing the game with the select switch.)

press_fire_2021june29.bas.bin

Share this post


Link to post
Share on other sites
On 6/28/2021 at 12:47 PM, atari2600land said:

But what if the player doesn't line up with the pfblock when fire is pressed?

Ghg1x7C.gif.53f450e284f7aa5765aaba3606e92457.gif

Share this post


Link to post
Share on other sites

The fourth game will be about a nose named Mr. Noseson that has legs and is running around. It is called "Runny Nose."

Share this post


Link to post
Share on other sites

Mr. Noseson is now in the game. He jumps whenever you press fire. I have a question about jumping.

I set the force of Mr. Noseson's legs when he begins jumping (called "antigravity" in the code) at 7. Then when he jumps, I have the force of his legs decrease with each frame by one until it gets to zero, and once it gets to zero (or the player depresses fire), then gravity begins to take hold. Gravity starts at 1 and increases by one every frame until he hits the ground. So my question is: If I want realistic jumping physics, am I doing this correct?

press_fire_2021june30.bas.bin 2021june30.bas

  • Like 1

Share this post


Link to post
Share on other sites

It took a lot longer than I expected, but the boxes are ready to be jumped over. It starts out slow, and at 20 points, 2 slow boxes, then at 50 points, two medium speed boxes, and at >99 points two fast boxes.

Since this took a long time to do, I will start the collision of the boxes tomorrow.

press_fire_2021june30_v2.bas.bin

2021june30_v2.bas.png

Share this post


Link to post
Share on other sites

Scores update:

  • changed the score font. Every number is a different "font", thus making it look cool (er, weird?)
  • Black score=Stac-king, white score = Bomber Pilot, orange score = Yum!, yellow score = Runny Nose. So no more potential "cheating" (saying your score is for, say, bomber pilot when in fact it was stac-king you played. I believe Arenafoot's score, though, I just thought of putting this in the program.)
  • program starts with (C) 2021.

 

press_fire_2021july2.bas.bin

  • Like 2

Share this post


Link to post
Share on other sites

ZeroPage Homebrew is playing Press Fire on tomorrow's (Tue Jul 6, 2021) stream LIVE on Twitch at 6PM PT | 9PM ET | 1AM GMT+1Day! Hope everyone can watch!

 

Games:

After Dark:

 (SET TO 1080P60 FOR FULL QUALITY!)

 

(SET TO 1080P60 FOR FULL QUALITY!)

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...