• Portal Prelude 5 1
Currently:  

Author Topic: Portal Prelude  (Read 254201 times)

0 Members and 2 Guests are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Portal X
« Reply #30 on: March 11, 2010, 07:40:00 pm »
Sir.
You and me are going to have a serious discussing about this physics engine you are flaunting in our faces.

>:C

Prophet is not amused.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Builderboy

  • Physics Guru
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Portal X
« Reply #31 on: March 11, 2010, 07:58:08 pm »
Lol, ok then, here is the physics engine :P The portal engine will be released with the game ;)


(I had to remove about 1700 bytes of code to remove the portal support ;D)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Portal X
« Reply #32 on: March 11, 2010, 09:01:21 pm »
If you wouldn't mind going into more details that would be great, you definitely don't have to though :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Portal X
« Reply #33 on: March 11, 2010, 10:19:30 pm »
That is pure awesome!  It's kinda mean that you took the portal section out, but it's something to look forward to. ;D

That's an awesome engine!  I really need to study this code and learn how you made it sooooo awesome. :D

I can't wait for Portal X! :)

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: Portal X
« Reply #34 on: March 11, 2010, 11:56:32 pm »
What I have always been amazed the most in this Portal 2D clone, and I stated this many times so far on IRC: the fact when you enter a portal, you won't immediately warp to the other one. You stand there and see the other part of you from outside the other portal, and can even jump and stuff! Just that makes the game look even more professional and advanced. Nice job on this.

Offline Builderboy

  • Physics Guru
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Portal X
« Reply #35 on: March 12, 2010, 12:24:15 am »
Hmmmmm I'll consider making this an open source project as it is developed, especially since Axe is a developing language and im sure we all could learn by sharing of code.  Portal could be a learning experience for us all!

And Dj, thats the very first thing i knew i needed when i decided to make a Portal game :) I actually originally had this idea a looong while back directly after the original Portal came out.  I was going to try to make it using Omnicalc, but then i realized that there just wasn't enough speed or control to make an effective game with it.  Once i realized that i could do it with Axe, i jumped at the chance!  The code to find the position of the alternate sprite, so that your character can be in two places at one, was one of the most difficult coding challenges i have faced in a long while.  That coupled with momentum transfer left me exhausted after a whole day of coding :D  I am really happy with the way it is turning out though, already I'm flying around with Portals!

(And did anybody notice I am still using 5x5 sprites, just like in the original? ;D)

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: Portal X
« Reply #36 on: March 12, 2010, 02:10:28 am »
Yeah I saw, nice

Btw for open source always wait until final release, though, in case someone would steal the code, release game modified as their own then you have no more power when uploading to ticalc, as ppl would think they're the real author, since he uploaded first.

Offline AaroneusTheGreat

  • Moderator
  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 287
  • Rating: +26/-1
    • View Profile
Re: Portal X
« Reply #37 on: March 12, 2010, 02:26:29 am »
If that happens we will all stand behind you because we know the real story. :D Good thinking though Kev.
« Last Edit: March 12, 2010, 02:27:20 am by AaroneusTheGreat »

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: Portal X
« Reply #38 on: March 12, 2010, 02:43:43 am »
(btw you might want to refer to me as DJ or DJ Omnimaga now because I think there are some other forum members who has Kevin as first name now :P)

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Portal X
« Reply #39 on: March 12, 2010, 02:53:50 pm »
I looked at the code for the physics engine and there are A LOT of optimizations you can do.  Most of them you can find in the "Optimization Tips" file and some of them are just program flow stuff.  Let me know if you want me to point some out for you :)  This is a very cool project so far.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Builderboy

  • Physics Guru
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Portal X
« Reply #40 on: March 12, 2010, 03:55:00 pm »
Yeah i'm not surprised.  I haven't done any optimizing, and i have been putting a lot of things in subs when they are not needed to preserve readability right now.  That and i havnt been using Axe for very long :P This is one of the reasons i am thinking releasing code would be a good idea, I don't think i have anything to worry about, and we could always give it to select members only if we thought there might be a problem.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Portal X
« Reply #41 on: March 12, 2010, 06:19:31 pm »
Quigibo, can you compare the code side by side so we can see how to optimize with Axe?  Thanks! :D
(The Optimization Tricks file is nice, but it can help to see it more. :) )

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: Portal X
« Reply #42 on: March 12, 2010, 06:40:44 pm »
I looked at the code for the physics engine and there are A LOT of optimizations you can do.  Most of them you can find in the "Optimization Tips" file and some of them are just program flow stuff.  Let me know if you want me to point some out for you :)  This is a very cool project so far.
When I release my first game or demo of game, could you take a look at my code for some optimizing? Unfortunately, I am so used to BASIC syntax that it will take me a while to get used to some of the funky Axe optimizations and I tend to learn better to optimize if I look at my very own code, then look at the changes I could have made. :P

Offline Builderboy

  • Physics Guru
  • Project Author
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Portal X
« Reply #43 on: March 15, 2010, 11:14:33 pm »
Alrighty, I have finished the first version of my tilemapper.  It fully supports RLEncoding, and also 16 different types of tiles (which should be plenty, i might even lower the number to increase compression rates).  Here is a demo screenie that shows a Beta of a possible game level.  The funky looking walls are walls the don't support Portals ;)



For those of you curious I will attach the source so you can take a look at it in a bit.  It basicaly runs in 2 parts.  Durring the first part it uncompresses the data into SaveScreen RAM.  This is where the tilemap 'matrix' is stored.  After that it moves onto display, where it renders all the tiles.  Note that it needs to be done in 2 parts because some tiles (like the non portal-able tiles) need to know what the tiles around it are before it can be rendered correctly.  The screenshot above only uses 3 tiles, blank, solid, and non-portal-able.


SirCmpwn

  • Guest
Re: Portal X
« Reply #44 on: March 15, 2010, 11:16:25 pm »
Very nice!  [SirCmpwn claps]
When I looked at the source code for your physics engine, I saw you used this syntax for your map:
[11111111
[10000001
And so on.  If data is in hex, how on earth did this work?