Pages: 1
  Print  
Author Topic: Object Inheritance Implemented  (Read 5900 times)
Offline (Male) Goombert
Posted on: October 23, 2013, 07:58:02 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile

Because of inheritance I was able to get the following Studio tutorial working, with a slight modification to two for statements because none of them know how to program.

That is right I have implemented full object inheritance and polymorphism to the compiler, even the event_inherited() function and the corresponding drag and drop tile. There is a setting now added to Build->Settings where you can completely disable inheritance if you, for instance, like cheeseboy, you only want inheritance for collisions and nothing else.

You can also see settings there for my angular unit and scalar types, the options don't do anything quite yet they are implemented in the engine the setting is just hidden away I have to do something else first before I make the options work.

Compatibility should improve a lot now. You must update LateralGM and the plugin if you update from git or vice versa because a modification was made to allow the YAML settings layout to parse checkboxes. At any rate, enjoy!
« Last Edit: October 05, 2019, 06:26:26 pm by Goombert » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) egofree
Reply #1 Posted on: October 24, 2013, 03:36:04 am
Contributor
Joined: Jun 2013
Posts: 601

View Profile Email
Excellent ! You've kept your promise. I don't have enough time right now to test the new enigma, but  i will definitely test it in the future. Thanks again Robert and all people working on this project for all your efforts.  (Y)
Logged
Offline (Male) Goombert
Reply #2 Posted on: October 24, 2013, 03:39:42 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
I'll do timelines when I finish this GMX writer so you can save.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) egofree
Reply #3 Posted on: October 24, 2013, 04:03:48 am
Contributor
Joined: Jun 2013
Posts: 601

View Profile Email
By the way, is the new compiler finished ?
Logged
Offline (Unknown gender) TheExDeus
Reply #4 Posted on: October 24, 2013, 06:18:29 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
The new compiler is vaporware or as we call it New Compiler: Forever. It's always about 1 month off in the future. For the past 6 months or so. But I guess some progress is made.
Logged
Offline (Unknown gender) Ideka
Reply #5 Posted on: October 24, 2013, 10:01:13 am

Member
Joined: Apr 2011
Posts: 85

View Profile
Well, you know Hofstadater's Law:
"It always takes longer than you expect, even when you take into account Hofstadter's Law."
Logged
Offline (Male) time-killer-games
Reply #6 Posted on: October 25, 2013, 06:27:35 pm

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1178

View Profile Email
At long last! Thanks! This is great! All we need now is persistent rooms and objects, stretchable video embedding (both full client area and specific window coordinates), and a fixed Mac OS X update, once these three small things happen, my life will be complete, and I will die happy. Keep up the great work Josh, Robert and everyone else who contributed. You guys are the best! :-)
Logged
Offline (Male) Goombert
Reply #7 Posted on: October 28, 2013, 02:53:48 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
TKG, I have another surprise coming in maybe a week or so for you. Also, yes persistent is already implemented, but a couple of noticed it's broke, I will fix it when I get the chance, I am working on things to get Project Mario working too.

Edit: Just to update everyone on this there was a bug causing objects to have their parent object_index. I have fixed it in the following pull request.
https://github.com/enigma-dev/enigma-dev/pull/474/files

Now I believe object inheritance is pretty solid, I am going to fix with constructs next.

Also, I'd put up the source to that game but for copyright reasons I can not.
« Last Edit: October 28, 2013, 03:04:24 am by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Josh @ Dreamland
Reply #8 Posted on: October 28, 2013, 09:15:50 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
That is because the new compiler is always one month of work into the future, and I have not had a break that long in a year and a half.

I am graduating in six weeks, five days. After that, I'm getting a job. A job will run 2.5x as many hours as my class, with the important differences being the following:
  • There is no structured set of homework assignments due over the weekend. This means that except where I choose to take work home (which is likely to happen; I'm weird when given interesting problems), my life is free outside the hours I have sold to my place of employment.
  • Meetings for projects will happen inside work hours rather than absolutely whenever. This means that the hassle of corresponding with uninterested individuals on a project that no one cares about is over. I will instead be collaborating inside those previously mentioned hours with people who are actually interested in the success of the project. I don't have to pick up anyone's slack (At least, not to the degree I have been at my university).
  • My workload will be managed by one company, rather than by 3-5 professors who each assume they can pile any amount of work on us at any time. This is how I end up stuck with two group projects, three individual projects, and three homework assignments, right now.
  • I won't have an awkward, university-sponsored job to attend in addition to my primary focus. I spend about 1/4 the amount of time traveling to my tutoring job as I do actually participating in it.
  • I'll actually get a lunch break and won't have to go hungry between the hours of 10:50 and 7:00. This doesn't help with ENIGMA so much, but is another reason I am looking forward to the event.

In between my graduation and my first day on the job, I will have to move. I don't know how messy a process this will be, or how much time it will leave for ENIGMA.

And also, the new compiler is, by definition, not vaporware. If any of you decided to get a clue what was going on in it, you could check out the JDI branch of ENIGMA and the new templates branch of JDI and work on it. As it stands, everyone would rather whine at me that I said it would take about a month of work, and six months later, nothing is finished.
« Last Edit: October 28, 2013, 09:20:57 am by Josh @ Dreamland » Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1
  Print