Fixed Shooter

About Monkey 2 Forums Monkey 2 Projects Fixed Shooter

This topic contains 21 replies, has 8 voices, and was last updated by  Jesse 2 years ago.

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #7378

    Jesse
    Participant

    This is a game I made a couple of years ago in Monkey1 for a Mochi contest. It’s an old style game ala Space Invaders and Galaga. I have made the source available here for any body to use, modify and/or Rip.

    https://github.com/legionnairex3/PromptInvasion/tree/master

    Please let me know if there are any problems.

    #7379

    degac
    Participant

    Thanks very much!

    One question: is it programmed for a specific MX2 version?

    I tried to compile the source code with MX2 1.0.5 and I got errors

    [/crayon]

    there are some errors in the ‘assets’

    background.png (missed data/)
    hit.mpr
    hita.mpr

    should be hit.ogg, hita.ogg

    #7380

    abakobo
    Participant

    here on W7 mx2 1.1.03

    [/crayon]
    #7381

    Jesse
    Participant

    Sorry guys I was trying some modifications to the code to make it simpler and I forgot that I had modified the List node class module. If you all want to give it another try, it should be ok now.

    I am not sure but I think that it only works with the latest v1.1.03

    #7391

    Ethernaut
    Participant

    Just tried, and I’m also getting “no default constructor” errors with V1.1.03.

    [/crayon]
    #7397

    Jesse
    Participant

    did you download the V1.1.03 from Github?

    And did you download the latest game update from the repository?

    It might be that you don’t have the latest game update. those errors seem to be because of some dependancies I had implemented to the Node class. which I have take out in the latest update.

    #7402

    TomToad
    Participant

    I’m getting the same errors, v1.1.03

    #7405

    Jesse
    Participant

    I had to try it in previous version to fix the problem because apparently when I rebuilt the models without the changes apparently the changes didn’t go through. I had forgotten to remove some code from the game source code and it failed to recognized them as errors. Now I know it works in v1.1.01 and it should work in most previous versions.
    I understand if no one want’s to give a try anymore but I would appreciate it. Thanks.

    I don’t understand, if I removed the additions to the modules and rebuild the modules why the changes were not recognized when I recompiled the code. I guess I am going to have to stop messing with the modules.

    #7411

    Ethernaut
    Participant

    Works now. Thanks!
    Is it gonna be added as one of the “bananas” examples?

    #7413

    TomToad
    Participant

    The source now compiles and runs, but there seems to be a couple of bugs.  The invaders just march off the right side of the screen and don’t return.  Can’t shoot any of the asteroids.

    #7419

    Jesse
    Participant

    @ethernaut, I have no idea if Marks want’s to add it to the bananas examples but if he wants to he can.

    @tomtoad

    The invaders just march off the right side of the screen and don’t return.

    I don’t know why they are doing that, they don’t do that on my computer, never have. they just move left to right and right to left.

    anybody else having that problem? Please, let me know.

    about the asteroids, they are just meant for background decoration/distraction, not intended to be shot at.

    #7434

    TomToad
    Participant

    Odd, when I do an emscriptem build, everything works fine.  A PC desktop build, and I have the bug of the invaders running off screen.

    HP 15-f100dx laptop. AMD A8 6410 APU with Radeon R5 Graphics 2.0ghz, 4GB ram, Windows 10 Home 64 bit OS.

    #7437

    peterigz
    Participant

    I get the issue here on PC with the invaders going off the side of the screen. Which bit of the code tells them to some back and I can try and debug?

    #7438

    Jesse
    Participant

    I have a suspicion that Pi is not initialized in some systems windows maybe
    can somebody on windows try this with the latest build V1.1.03:

    [/crayon]

    if I am right some of them should give the result of 0.0

    if it does

    can you replace this code on line 33 of the source code:

    [/crayon]

    to thi:

    [/crayon]

    i believe it has to do with line 1918 in the source code:

    [/crayon]
    #7439

    peterigz
    Participant

    Yep that was it. Pi does contain the right value, but assigning it to another value outside of the main function doesn’t work:

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic.