Author Topic: Adventure/RPG Project (THE MYSTERY OF ROBOT PLANET)  (Read 8111 times)

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Adventure/RPG Project (THE MYSTERY OF ROBOT PLANET)
« on: November 25, 2015, 12:25:54 pm »
Decided to make another oldschool game. This one is going to be more of an adventure/rpg thing rather than my previous arcade-style Zombie Game. Making a much more advanced engine for this too that is based on images.

Latest Post.
« Last Edit: June 11, 2017, 04:36:42 am by roadbloc »

FellippeHeitor

  • QB64 Partner Site Owner
  • Hero Member
  • *
  • Posts: 1385
  • LET IT = BE
    • QB64.org
Re: Adventure/RPG Project
« Reply #1 on: November 25, 2015, 01:56:43 pm »
I have downloaded your data and copied your source, but haven't run it yet. I'll let you know.
« Last Edit: November 25, 2015, 05:13:09 pm by FellippeHeitor »

FellippeHeitor

  • QB64 Partner Site Owner
  • Hero Member
  • *
  • Posts: 1385
  • LET IT = BE
    • QB64.org
Re: Adventure/RPG Project
« Reply #2 on: November 25, 2015, 02:03:36 pm »
Ok, now I ran it. It's really cool!
« Last Edit: November 25, 2015, 02:22:22 pm by FellippeHeitor »

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #3 on: November 26, 2015, 02:25:40 am »
Ok, now I ran it. It's really cool!

Thanks! :D There are many more updates to come. I'll keep this thread up to date on what is going on.

thelasttruegreatamerican

  • Sr. Member
  • ****
  • Posts: 338
  • Qbasic for life.
    • Qbasic Text Adventure
Re: Adventure/RPG Project
« Reply #4 on: November 30, 2015, 08:17:01 pm »
How does one get it to work? I keep receiving error messages.
At my funeral I want my funeral march to be programmed on Qbasic. Then everyone gets drunk.

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #5 on: December 01, 2015, 03:00:04 am »
How does one get it to work? I keep receiving error messages.

Which errors? Have you downloaded and extracted the data zip file?

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #6 on: January 19, 2016, 04:22:52 am »
Made some updates. Thought I'd keep y'all informed on how it's going :) Let us know what you think.

Robert Claypool

  • Sr. Member
  • ****
  • Posts: 463
Re: Adventure/RPG Project
« Reply #7 on: January 19, 2016, 08:07:27 pm »
The program got to a point where I think are 6 boxes, and I think that three of them were mostly yellow, and I think some had x's through them. It didn't seem to respond to any key presses I made. The VAME.BAS structure doesn't correspond to what I'm familiar with and I guess I'm trying to be generous?

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #8 on: January 20, 2016, 02:24:07 am »
The program got to a point where I think are 6 boxes, and I think that three of them were mostly yellow, and I think some had x's through them. It didn't seem to respond to any key presses I made. The VAME.BAS structure doesn't correspond to what I'm familiar with and I guess I'm trying to be generous?

That's the main menu. Using the WSAD keys will let you pick an item. Pressing U will select the item. I must confess that I have had trouble getting it to run on linux (for reasons I haven't worked out yet), so it only works for Windows users at the moment.

Here is a video of it running :) https://www.youtube.com/watch?v=plRXvnKt_94&feature=youtu.be

Johny B.

  • QB64 Partner Site Owner
  • Hero Member
  • *
  • Posts: 1472
Re: Adventure/RPG Project
« Reply #9 on: January 20, 2016, 02:43:12 am »
The problem with Linux is file name case: for instance, if you interact with the bed, containitem$ (on line 296) will contain "T-CARD", but the file is t-card.ddf. Either change the case of one, or run LCASE$ over the strings just before you pass them to OPEN.

I found the delayed walking (takes a step, waits a bit, then keeps walking) quite annoying. It's a result of using INKEY$, and the fact that the key doesn't start repeating for a moment. I replaced the start of the input manager with this code:
Code: [Select]
inputter:
REM input manager
REM up
IF _KEYDOWN(18432) THEN
    LET cbgy = bgy
    LET bgy = bgy + pace
    LET refresh = 1
    LET direction = 1
    LET sps = 0
END IF
REM down
IF _KEYDOWN(20480) THEN
    LET cbgy = bgy
    LET bgy = bgy - pace
    LET refresh = 1
    LET direction = 2
    LET sps = 0
END IF
REM right
IF _KEYDOWN(19712) THEN
    LET cbgx = bgx
    LET bgx = bgx - pace
    LET refresh = 1
    LET direction = 3
    LET sps = 0
END IF
REM left
IF _KEYDOWN(19200) THEN
    LET cbgx = bgx
    LET bgx = bgx + pace
    LET refresh = 1
    LET direction = 4
    LET sps = 0
END IF
and got much nicer results, although he probably moves a bit too fast. A _LIMIT somewhere should take care of that.

You may also like to lookup the ON GOSUB command. It could save you a bit of typing/copy-pasting.


Critique aside, this game could definitely go somewhere. It reminds me of those old text-adventure style games, in particular one called dunnet, but it also has a nice RPG feel to it.

P.S The video is marked as private.

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #10 on: January 20, 2016, 02:56:24 am »
The problem with Linux is file name case: for instance, if you interact with the bed, containitem$ (on line 296) will contain "T-CARD", but the file is t-card.ddf. Either change the case of one, or run LCASE$ over the strings just before you pass them to OPEN.
Ah, of course! I can't believe I forgot about this! I pretty much abandoned my linux partition because of my stupidity over this.  :-[

Quote
I found the delayed walking (takes a step, waits a bit, then keeps walking) quite annoying. It's a result of using INKEY$, and the fact that the key doesn't start repeating for a moment. I replaced the start of the input manager with this code:
Code: [Select]
inputter:
REM input manager
REM up
IF _KEYDOWN(18432) THEN
    LET cbgy = bgy
    LET bgy = bgy + pace
    LET refresh = 1
    LET direction = 1
    LET sps = 0
END IF
REM down
IF _KEYDOWN(20480) THEN
    LET cbgy = bgy
    LET bgy = bgy - pace
    LET refresh = 1
    LET direction = 2
    LET sps = 0
END IF
REM right
IF _KEYDOWN(19712) THEN
    LET cbgx = bgx
    LET bgx = bgx - pace
    LET refresh = 1
    LET direction = 3
    LET sps = 0
END IF
REM left
IF _KEYDOWN(19200) THEN
    LET cbgx = bgx
    LET bgx = bgx + pace
    LET refresh = 1
    LET direction = 4
    LET sps = 0
END IF
and got much nicer results, although he probably moves a bit too fast. A _LIMIT somewhere should take care of that.
Thank you! This was something else I was having difficulty solving.

Quote
You may also like to lookup the ON GOSUB command. It could save you a bit of typing/copy-pasting.


Critique aside, this game could definitely go somewhere. It reminds me of those old text-adventure style games, in particular one called dunnet, but it also has a nice RPG feel to it.

P.S The video is marked as private.
Thanks for taking the time to test it out for me. I'm a fan of old-school adventure games, I'll have to give dunnet a spin sometime. :)

PS. Apologies, another silly mistake on my behalf! The video should now work.

Muffinman

  • Sr. Member
  • ****
  • Posts: 408
Re: Adventure/RPG Project
« Reply #11 on: January 20, 2016, 07:20:33 pm »
I intend to make a competing project to this project.  (lol, j/k but wouldn't it be cool?)

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #12 on: January 21, 2016, 06:37:54 am »
I intend to make a competing project to this project.  (lol, j/k but wouldn't it be cool?)

Hey, feel free to! :) A bit of competition usually makes me pull my finger out a bit. :p

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc
Re: Adventure/RPG Project
« Reply #13 on: January 30, 2016, 05:40:05 am »
Updated once more. Three(ish) maps now available. Plus many new features :)

roadbloc

  • Full Member
  • ***
  • Posts: 120
  • I write books. And play Doom. And Qbasic.
    • roadbloc