Author Topic: Mario?  (Read 18189 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Mario?
« Reply #45 on: November 03, 2011, 02:43:24 pm »
better syntax: LABEL(parameter,parameter etc
??? is that new?
I think it came with 1.0.1 or so with these many updates.
Is it faster?
No, it's just another syntax form to do exact the same thing. But it saves one or two bytes in your source.
I use a lot of the old syntax. Maybe 20 times, so it would save 40 bytes. Not much, but I'd rather optimize as much as I can.
If you like my work: why not give me an internet?








Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Mario?
« Reply #46 on: November 03, 2011, 02:52:05 pm »
.... But it saves one or two bytes in your source.
I use a lot of the old syntax. Maybe 20 times, so it would save 40 bytes. Not much, but I'd rather optimize as much as I can.
Yeah, and it also makes your code esier to read I think. You cannot confuse the parameters and the subroutine name. The C++ syntax is the same so I got used to that.

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Mario?
« Reply #47 on: November 04, 2011, 10:25:57 am »
I mainly do that for prettiness cause I think LABEL(param param etc) looks awesome. Optimizing your source code is not really that useful.
EDIT: REPHRASE: optimizing the source code itself, making the source code itself smaller when it doesn't change the executable's size, isn't really useful. So stuff like comments and the label syntax change thing, when it doesn't affect the executable, isn't really useful.
« Last Edit: November 04, 2011, 10:27:58 am by buttsfredkin »
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Mario?
« Reply #48 on: November 04, 2011, 11:34:13 am »
but optimizing source code means less scrolling when you have to edit something and you can type more stuffs:D
Sig wipe!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Mario?
« Reply #49 on: November 04, 2011, 10:16:13 pm »
haha yeah, but it usually means less code readability. Depends on what you care about, I guess.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Mario?
« Reply #50 on: November 04, 2011, 10:42:49 pm »
lol you are probably having fun with portal X's readability, huh? :P

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Mario?
« Reply #51 on: November 05, 2011, 12:26:33 am »
haha yeah, but it usually means less code readability. Depends on what you care about, I guess.
Personally what I do is split the source in multiple sub programs. That makes it easier to find what code you want and in some cases can reduce the need for comments.

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Mario?
« Reply #52 on: November 05, 2011, 04:29:03 am »
Yeah, when I was writing larger programs, it was quite annoying that you have to scroll through the whole code. The next time I made multiple sub programs, but due to the fact that axe only backs the main progam up, I lost them all in a crash caused by a little error in my sub program.  >:(
Now I'm archiving them before compiling... which is quite annoying too - maybe Quigibo will add that it in future.
« Last Edit: November 05, 2011, 04:29:44 am by MGOS »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Mario?
« Reply #53 on: November 05, 2011, 01:09:05 pm »
So I've been working on my Mario Shotgun game which, if you remember, is where this whole topic started. And I have most of the movement down, but I'm having trouble with the actually bullet coming out of the gun. My sprite looks like Mario with a shotgun, but I need to make it so that when you press the 2nd key, it looks like a bullet of some sorts is coming out, and then when the bullet hits various objects to the right of Mario, I need those objects to explode. Does any one know and easy way to do that?
« Last Edit: November 05, 2011, 01:09:40 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Mario?
« Reply #54 on: November 05, 2011, 02:58:16 pm »
Code: [Select]
if (d=94)
x->d
0->g
end
if (g=1)
d-1->d
end
if getkey(54)
1->g
Pt_On(d,y)
dispgraph
End
if pxltest d+1,y
pt-off #the pixels around it you want to destroy
end
this might work
This used to contain a signature.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Mario?
« Reply #55 on: November 06, 2011, 02:16:47 pm »
Great thanks! I figured it out with some help from a friend. But thanks anyways.

Now on to tile mapping and enemies!
« Last Edit: November 06, 2011, 02:17:34 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Mario?
« Reply #56 on: November 06, 2011, 02:31:12 pm »
Is the Mario game still gonna be some sort of Platformer or will it be more like a shoot-em-up but with Mario moving around the screen? Some sort of Mega Man or Metroid style Mario game would be cool.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Mario?
« Reply #57 on: November 06, 2011, 02:36:57 pm »
I haven't decided, A shoot em up style would be the easiest, that I could finish in maybe less then a day, and the platformer would take longer, but would look cooler. both are cool....maybe ill start with the shoot em up, and then edit it into the platformer. kinda like a win win.
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Mario?
« Reply #58 on: November 06, 2011, 02:49:19 pm »
Ah ok. Well I would start with the shooter first. Before doing the platformer you should practice with 1-room based map engines and collision detection, before venturing into smooth scrolling.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Mario?
« Reply #59 on: November 06, 2011, 02:49:50 pm »
this will be awesome I love how so many people love making great games :D
This used to contain a signature.