Author Topic: My first game  (Read 46256 times)

0 Members and 3 Guests are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: My first game
« Reply #150 on: January 28, 2015, 07:50:37 am »
Yeah, that thing is looking awesome, especially for a first game ;)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Omegaxis213

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +5/-0
    • View Profile
Re: My first game
« Reply #151 on: February 25, 2015, 09:37:03 pm »
This project is not dead, I just am somewhat busy with school. I made a couple of updates which is that I added a combo system where if you tap the attack button three times, it does a little bit of extra damage and knocks back the enemies a small distance. If you click and hold the attack button in rapid succession, then you will deal more damage you would than tapping and it will knock the enemies back twice as far. If you tap the attack button twice and hold, you will kick the enemies which will stun them and knock them back a short distance. Another thing that i added is that you can slide which drains a lot of stamina, but it stuns the enemies and knocks them twice as far as a kick will.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: My first game
« Reply #152 on: February 25, 2015, 10:22:56 pm »
Those are all really cool ideas!

Offline Omegaxis213

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +5/-0
    • View Profile
Re: My first game
« Reply #153 on: March 17, 2015, 07:22:56 pm »
I have been working on my program but I have run out of memory. Does anyone know a way to get more memory than 16000 bytes?

Offline CKH4

  • LV3 Member (Next: 100)
  • ***
  • Posts: 42
  • Rating: +1/-0
    • View Profile
Re: My first game
« Reply #154 on: March 17, 2015, 07:27:39 pm »
Is it compiled as an app? I don't know if Axe can do multipaged apps. Anyway I downloaded this a while ago and its progressed so much. Good luck.
Profiles:
        
Other Peoples Projects:
   
(I like parentheses)

Offline Omegaxis213

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +5/-0
    • View Profile
Re: My first game
« Reply #155 on: March 17, 2015, 08:02:27 pm »
This program that I am making is compiled as an app.

Offline CKH4

  • LV3 Member (Next: 100)
  • ***
  • Posts: 42
  • Rating: +1/-0
    • View Profile
Re: My first game
« Reply #156 on: March 17, 2015, 08:21:23 pm »
Is the source over 16000? If it is you can make sub programs in the Axe format calling them like you would in a basic program. From there if you need a label in a subprogram I think that you can do this
Code: [Select]
code...
.label name
SOMELBL()
more code...

If I'm wrong just ignore me, I'm not great at Axe.
Profiles:
        
Other Peoples Projects:
   
(I like parentheses)

Offline Omegaxis213

  • LV3 Member (Next: 100)
  • ***
  • Posts: 83
  • Rating: +5/-0
    • View Profile
Re: My first game
« Reply #157 on: March 17, 2015, 09:19:34 pm »
can you give me a example program?

Offline CKH4

  • LV3 Member (Next: 100)
  • ***
  • Posts: 42
  • Rating: +1/-0
    • View Profile
Re: My first game
« Reply #158 on: March 17, 2015, 10:16:52 pm »
I don't write too much Axe and I'm on my phone but I'll try.

programASRC:
Code: [Select]
.A

Repeat getKey(15)
Disp "HI
A()
End

prgmBSRC

programBSRC
Code: [Select]
.B
Lbl A
Disp " HELLO

*This code may be completely useless and unfunctional. It may also clear your ram so be careful.
« Last Edit: March 18, 2015, 10:23:40 am by CKH4 »
Profiles:
        
Other Peoples Projects:
   
(I like parentheses)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: My first game
« Reply #159 on: March 18, 2015, 07:48:01 am »
You don't necessarily need a label and a call. You can also put some "raw" code in your subprogram and it will be "copy pasted" into the main program at compilation. Which is why your example program doesn't do what you want, you probably should put the "prgmBSRC" at the bottom of the main program.

And using sub sources only solves the problem of having a source too large, not the problem of having a compiled program/application too large.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline CKH4

  • LV3 Member (Next: 100)
  • ***
  • Posts: 42
  • Rating: +1/-0
    • View Profile
Re: My first game
« Reply #160 on: March 18, 2015, 07:57:27 am »
Yeah I wasn't really sure what he meant. Can Axe compile multi page apps?
Also I edited the example because when I did something like that in an emulator it crashed.
Profiles:
        
Other Peoples Projects:
   
(I like parentheses)

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: My first game
« Reply #161 on: March 18, 2015, 10:00:45 am »
Can Axe compile multi page apps?

Nope. It would require either that the compiler implement a significantly more complicated memory model or that a bunch of the built-in routines be rewritten in more complicated, and thus larger and slower, variants. It seems unlikely that either of these things will be happening, at least any time soon.

I know of a few "solutions" to the application size limit:
  • Optimize your code. There are lots of small tricks to save a few bytes here and there, but you'll get the biggest savings by first seeking out code that looks bloated or has a lot of redundancy. If you spot any such sections and want help optimizing them, you can post them here and I'm pretty confident someone will help.
  • Move data out into appvars. The best candidates are data that doesn't need to be accessed often/rapidly, like map or string data.
  • [Advanced] Use the PageSwap Axiom (tutorial) to manually emulate a multi-page application.


For those saying I neglected to mention Fullrene: I chose to leave it off because it's proven to be a bit unreliable and doesn't even offer much more space (logarithmically speaking) than an application does.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: My first game
« Reply #162 on: March 18, 2015, 10:19:03 am »
Yeah I wasn't really sure what he meant. Can Axe compile multi page apps?
Also I edited the example because when I did something like that in an emulator it crashed.
Not surprising from your first example. If Axe doesn't add a "Return" at the end of subprograms (and I think that's the case, it probably only adds it to the main source), then your program (before you edited it) was basically this:
Code: [Select]
.A

Lbl A
Disp " HELLO

For(15)
Disp "HI
A()
End
So you have a routine calling itself without any stop condition, and a beautiful stack overflow :P

For those saying I neglected to mention Fullrene: I chose to leave it off because it's proven to be a bit unreliable and doesn't even offer much more space (logarithmically speaking) than an application does.
You neglected to mention CrabCake though.
And another solution can also be to move code outside of the app, in an external program/appvar that you run with DrDnar's RunProgram axiom. You obviously can't reasonably move everything in external programs but you can move your menu for example, or anything that is not related to the main engine.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline CKH4

  • LV3 Member (Next: 100)
  • ***
  • Posts: 42
  • Rating: +1/-0
    • View Profile
Re: My first game
« Reply #163 on: March 18, 2015, 10:27:46 am »
Oh whoops didn't even see that. I fixed it so that no damages will happen ( hopefully ).
To omega:
You should move the characters and maps into an appvar. I have no experience with them but hopefully someone else can help you.
Profiles:
        
Other Peoples Projects:
   
(I like parentheses)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: My first game
« Reply #164 on: March 19, 2015, 01:30:39 am »
This tutorial can help about appvars. It teaches a lot more but skip parts that are not related to appvars and you'll still be fine :)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s