Jump to content

Photo

The Cabin

The Cabin Game Programming

34 replies to this topic

#1 Odourman OFFLINE  

Odourman

    Space Invader

  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 10:23 AM

The Cabin



Jeremiah B. Sterne decides to go out to his uncles cabin in the woods, to get some relaxation and work on his latest novel.
 
But late in the night, as he writes about the horrors in the dark, something comes through the front door! A thing from his nightmares! So he quickly kills it with his axe and locks the door, when behind him the backdoor opens to let in another beast! He launches at it, kills it and locks the door - when he hears a click from the frontdoor.



You control Jeremiah in the oneroom cabin. On the left and right sides there are two doors that lets monsters in, you need to kill them with your axe. After a killing you need to close the door, otherwise more monsters will keep getting in. There is a delay before the door opens to let monsters in again.
 Tentacles will be reaching forward through the windows at the top and bottom of the screens also, they are slow and retracts when hit, you can’t lock the windows. The monsters are strange. Some are like spiders, some are like ooze and some are like octopuses.
 
If you get hit by any monster you loose a life. You have three lives, you get no extra. There is no score, but a timer on how long you can survive. It gets harder and harder the longer you survive, no levels.



#2 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 10:30 AM

Today I start my journey and I'm going to post about it here.
I always have a lot of game ideas in my head, so now I'm going to learn how to make them come to life.
This is my first try at learning to make a game, so I have no idea what I'm getting myself into. Yay...  :P



#3 KaeruYojimbo OFFLINE  

KaeruYojimbo

    Stargunner

  • 1,654 posts
  • Location:Portland, OR

Posted Sun May 20, 2018 10:35 AM

This sounds very cool. Looking forward to watching your progress.



#4 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 11:08 AM

This sounds very cool. Looking forward to watching your progress.

Thank you!
When I get my mind on something I tend to finish it.
I would have started years ago if I knew about homebrewing on Atari.
I love Atari and arcade games so this is great.
Also, I just ordered an Atari Flashback Portable! To be able to play all those games again so easily!



#5 Brian O OFFLINE  

Brian O

    Stargunner

  • 1,620 posts
  • [THIS SPACE FOR RENT]

Posted Sun May 20, 2018 11:46 AM

Just remember, developing games is hard work.



#6 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 12:10 PM

Just remember, developing games is hard work.

Yeah, my father was a programmer and he used to tell me about it. It frightened me from ever trying!
But, I'm going to try now... 



#7 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 12:15 PM

For score I'm thinking duration, inspired by this game:

Survival Island 1983. 
I was 1 year old when it came out and I haven't played it on the Atari because I have never tried a Supercharger, but I have played it on an emulator. It's a game I recommend.



#8 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 2:56 PM

I have installed Crimson Editor SVN286M and BB.1.1d.reveng40 .Also VisualbB Build 568 2017y 07m23d 2157t.

Good start I hope...


Edited by Odourman, Sun May 20, 2018 3:15 PM.


#9 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 4:37 PM


 playfield:
 .XXXXXXXXXXX.........XXXXXXXXXX.
 X.XXXXXXXXXX.........XXXXXXXXX.X
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 XXX..........................XXX
 XXX..........................XXX
 XXX..........................XXX
 XXX..........................XXX
 XXX..........................XXX
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 X.XXXXXXXXXX.........XXXXXXXXX.X
 .XXXXXXXXXXX.........XXXXXXXXXX.
end
 COLUBK = $00
 COLUPF = 240
 player0x=50:player0y=50
 player1x=30:player1y=50
 
 player0:
 %01000010
 %00100100
 %00111000
 %10111000
 %01111111
 %00010000
 %00111000
 %00111000
end

 COLUP0 = 28

 
 player1:
 %10010101
 %01111110
 %00111110
 %00010100
 %00100010
 %00101010
 %00100100
 %00011000
end
draw_loop
 drawscreen
 goto draw_loop


#10 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Sun May 20, 2018 4:40 PM

Haha, well... That is what I did on my first day. I got a lot to learn! A lot to read...
​I didn´t manage to change the colour of player0... yay!


Edited by Odourman, Sun May 20, 2018 4:42 PM.


#11 kdgarris ONLINE  

kdgarris

    Moonsweeper

  • 320 posts

Posted Sun May 20, 2018 4:52 PM

You need to have COLUP0 set inside of your main loop with drawscreen. Also, I don't know if 28 is intended to be a hex value, but if so you will want to write it as $28.

#12 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Mon May 21, 2018 6:02 AM

You need to have COLUP0 set inside of your main loop with drawscreen. Also, I don't know if 28 is intended to be a hex value, but if so you will want to write it as $28.

 

Thank you!
Right! So that the Atari can loop it! 
I might have put in a dec instead of a hex value...
Still I might be getting ahead of myself, I'm not all happy with the background yet. 

 



#13 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Mon May 21, 2018 10:07 AM

Ok, so now I'm going to read up on how to make player0 reverse when moving left. And if possible I want him to have dark blue pants! Then he shall have an axe that is only visible when you press the button, and he can only hit the direction he's facing (left or right)



 playfield:
 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
 X.XXXXXXXXXXXX....XXXXXXXXXXXX.X
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 XXX..........................XXX
 XXX..........................XXX
 XX............................XX
 XXX..........................XXX
 XXX..........................XXX
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 X.XXXXXXXXXXXX....XXXXXXXXXXXX.X
 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
end

 COLUBK = $00
 COLUPF = 240
 player0x=50:player0y=50
 player1x=30:player1y=50
 
 player0:
 %01000010
 %00100100
 %00111000
 %10111000
 %01111111
 %00010000
 %00111000
 %00111000
end
 
 
 player1:
 %10010101
 %01111110
 %00111110
 %00010100
 %00100010
 %00101010
 %00100100
 %00011000
end
draw_loop
 drawscreen

 COLUP0 = $1C
 COLUP1 = $C2
 if joy0up then player0y = player0y-1: goto jump
 if joy0down then player0y = player0y+1: goto jump
 if joy0left then player0x = player0x-1: goto jump
 if joy0right then player0x = player0x+1: goto jump
jump
 goto draw_loop

Edited by Odourman, Mon May 21, 2018 10:08 AM.


#14 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Mon May 21, 2018 11:10 AM

Ok, I made the hero hit the walls and move diagonal.

I can find info on how to make missiles, but I want an axe!

 

 

 dim p0_x = b
 dim p0_y = c
 player0:
 %01000010
 %00100100
 %00111000
 %10111000
 %01111111
 %00010000
 %00111000
 %00111000
end
 player1:
 %10010101
 %01111110
 %00111110
 %00010100
 %00100010
 %00101010
 %00100100
 %00011000
end
 COLUBK = $00
 COLUPF = 240
 player0x=76:player0y=40
 player1x=30:player1y=50
main
 playfield:
 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
 X.XXXXXXXXXXXX....XXXXXXXXXXXX.X
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 XXX..........................XXX
 XXX..........................XXX
 XX............................XX
 XXX..........................XXX
 XXX..........................XXX
 XX.XXXXXXXXXXXXXXXXXXXXXXXXXX.XX
 X.XXXXXXXXXXXX....XXXXXXXXXXXX.X
 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
end
 COLUP0 = $1C
 COLUP1 = $C2
 p0_x = 0
 if joy0left then p0_x = 255
 if joy0right then p0_x = 1
 player0x = player0x + p0_x
 p0_y = 0
 if joy0up then p0_y = 255
 if joy0down then p0_y = 1
 player0y = player0y + p0_y
 drawscreen
 if collision(player0,playfield) then gosub knock_player_back
 goto main
knock_player_back
      player0x = player0x - p0_x
      player0y = player0y - p0_y
      return

Edited by Odourman, Mon May 21, 2018 11:12 AM.


#15 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Mon May 21, 2018 3:20 PM

New plan, only one life. So one hit and your gone. No need for a status bar.
It’s very hard to find info on how to use batari Basic... I’m going to print the stuff I find to study.

#16 Lewis2907 OFFLINE  

Lewis2907

    Chopper Commander

  • 225 posts
  • Location:Senatobia, MS

Posted Mon May 21, 2018 3:24 PM

New plan, only one life. So one hit and your gone. No need for a status bar.
It’s very hard to find info on how to use batari Basic... I’m going to print the stuff I find to study.

Odourman,

 

On RT's Page you can CTRL F and find a lot of stuff. I think almost everyone uses his page to find what they are looking for. Below is what I think you are looking for in a status bar.

 

http://www.randomter...ut_world_deluxe



#17 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Mon May 21, 2018 3:31 PM

Odourman,
 
On RT's Page you can CTRL F and find a lot of stuff. I think almost everyone uses his page to find what they are looking for. Below is what I think you are looking for in a status bar.
 
http://www.randomter...ut_world_deluxe


Thank you!

I started printing a lot from his site. To try to learn.
I saw that he is autistic and has memory problems, just like me. So that made me think that maybe I can make my game work in the end!
I was just looking at your The Quest post. Looks good! I was learning from the code posted.

#18 Lewis2907 OFFLINE  

Lewis2907

    Chopper Commander

  • 225 posts
  • Location:Senatobia, MS

Posted Mon May 21, 2018 4:49 PM

Thank you!

I started printing a lot from his site. To try to learn.
I saw that he is autistic and has memory problems, just like me. So that made me think that maybe I can make my game work in the end!
I was just looking at your The Quest post. Looks good! I was learning from the code posted.

Odourman,

 

I took your code and made it into something easier for everyone at Bb to use and help you along the way. RT did the same for me when I first started out using Bb. I made some notes as well. Basically it's still your code with just minor changes. It helps when you post the code in this format so we don't have to copy and paste and make edits. Hope this helps in your game, thanks. 

Attached Files



#19 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Tue May 22, 2018 11:49 AM

Odourman,

 

I took your code and made it into something easier for everyone at Bb to use and help you along the way. RT did the same for me when I first started out using Bb. I made some notes as well. Basically it's still your code with just minor changes. It helps when you post the code in this format so we don't have to copy and paste and make edits. Hope this helps in your game, thanks. 

 

Wow! Thank you!
I'm downloading and having a look now!



#20 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Tue May 22, 2018 3:05 PM

 

Wow! Thank you!
I'm downloading and having a look now!

 

Great! Helped a lot! Now I understand a bit more.



#21 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Tue May 22, 2018 3:29 PM

Today I got the little dude to walk in an animation. I want to give it a second colour… 
 
  if f=10 then player0:
   %01000010
   %00100100
   %00111000
   %10111000
   %01111111
   %00010000
   %00111000
   %00111000
end
  if f=20 then player0:
   %00101000
   %00101000
   %00111000
   %10111000
   %01111111
   %00010000
   %00111000
   %00111000
end
  if f=20 then f=0


#22 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Tue May 22, 2018 3:51 PM



#23 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Tue May 22, 2018 3:54 PM

And I dreamt that he was a she, so hell be needing a dress. That would look great! Dark blue and short same colour hair. I need to see if that can be done...
The eyeball monster should be white and have a two frame animation also.

Edited by Odourman, Tue May 22, 2018 3:55 PM.


#24 Jinroh OFFLINE  

Jinroh

    Dragonstomper

  • 639 posts
  • Catgirl Maid Lover

Posted Wed May 23, 2018 8:50 PM

Great to see your game! :D

 

It is looking great so far, you seem to be learning bAtari really well.

 

I like the story/idea for your game and the graphics so far are looking very cool. It has a very Lovecraft/Alone in the Dark feel from your description.

 

Definitely excited for more development. :)



#25 Odourman OFFLINE  

Odourman

    Space Invader

  • Topic Starter
  • 34 posts
  • Creeping in the darkness
  • Location:Sweden

Posted Thu May 24, 2018 8:09 AM

Great to see your game! :D
 
It is looking great so far, you seem to be learning bAtari really well.
 
I like the story/idea for your game and the graphics so far are looking very cool. It has a very Lovecraft/Alone in the Dark feel from your description.
 
Definitely excited for more development. :)


You are too kind!
Thank you!
Yesterday I got nothing done on the game, but today Im hoping to change that. I got a new idea for the monster to be more abstract, right now it looks like an Alien from Tge Simpsons!
It feels like Im doing homework, but I was away when the lessons were and the teacher has gone missing. Now Im searching for comments here and there about the lessons and the teacher. Well, at least its fun!
I downloaded batari Basic - commands by Fred Batari Quimby, adopted by Duane Alan Hahn. Im studying that on the bus and before sleep.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users