Jump to content

A game built by the community?


Guest GroundHOG-2010

Recommended Posts

If it\'s an aeroplane, lift is what lets it fly. You might try looking at it backwards and don\'t let the plane off the ground till you have sorted out lift?

Once you have sorted that out, then stalling takes care of itself... not enough lift, down she goes. Then you could extend that by having no lift on the control surfaces, and there is your way to influence the tumble direction. Translate that to part.cfg files with varying liftCoef, and you have different craft the will tumble different ways, but not just solely based on their mass or mesh or whatever.

If I were you, I\'d start here.

Link to comment
Share on other sites

Guest GroundHOG-2010

If it\'s an aeroplane, lift is what lets it fly. You might try looking at it backwards and don\'t let the plane off the ground till you have sorted out lift?

Once you have sorted that out, then stalling takes care of itself... not enough lift, down she goes. Then you could extend that by having no lift on the control surfaces, and there is your way to influence the tumble direction. Translate that to part.cfg files with varying liftCoef, and you have different craft the will tumble different ways, but not just solely based on their mass or mesh or whatever.

If I were you, I\'d start here.

Thanks for your help.

Link to comment
Share on other sites

I don\'t get what your saying. ???

You misspelled patience as patients

Patience is what you need to perform long and complicated tasks

Patients are sick people admitted to the care of some sort of doctor in some sort of hospital

I tried to make a joke about needing test subjects, guinea pigs, for coding. That\'s all :)

Link to comment
Share on other sites

... Lol KSP has got over 50k lines of code ???

That might not necessarily be something HarvesteR is proud of.

Judging a program by how many lines of code it contains is crazy. It\'s not an indication of quality or complexity. A 400 line program can easily be written in 1,500 lines while both do the *exact same thing*.

My example of this it I wrote a (PHP) MP3 'jukebox', Idea was this: Dump an MP3 collection into a folder. Have program read the entire directory structure, read the MP3\'s ID3 tags and generate the appropriate pages AND links on-the-fly. As you click on an MP3, a playlist is generated for RealPlayer, WindowsMedia. or WinAmp. You click a song, music starts playing, as you click more, the playlist grows.

Yea, over 1,500 lines after 6 months. I learned a bit more and reduced the codebase by nearly half, then after some more practice/education, I cut it in 1/2 again. The program sits at 435 lines of code now and is *just as functional*, all though I did rip out support for Real Player Playlists.

Program worked great until I got a take down notice because I had a lot of commercial music in the collection. Yea, it had to be someone I knew who turned me in.

I\'m willing to bet as you learn and improve you\'ll someday be able to look back at 750 lines of code and think: 'What was I thinking?'.

Link to comment
Share on other sites

That might not necessarily be something HarvesteR is proud of.

Judging a program by how many lines of code it contains is crazy. It\'s not an indication of quality or complexity. A 400 line program can easily be written in 1,500 lines while both do the *exact same thing*.

My example of this it I wrote a (PHP) MP3 'jukebox', Idea was this: Dump an MP3 collection into a folder. Have program read the entire directory structure, read the MP3\'s ID3 tags and generate the appropriate pages AND links on-the-fly. As you click on an MP3, a playlist is generated for RealPlayer, WindowsMedia. or WinAmp. You click a song, music starts playing, as you click more, the playlist grows.

Yea, over 1,500 lines after 6 months. I learned a bit more and reduced the codebase by nearly half, then after some more practice/education, I cut it in 1/2 again. The program sits at 435 lines of code now and is *just as functional*, all though I did rip out support for Real Player Playlists.

Program worked great until I got a take down notice because I had a lot of commercial music in the collection. Yea, it had to be someone I knew who turned me in.

I\'m willing to bet as you learn and improve you\'ll someday be able to look back at 750 lines of code and think: 'What was I thinking?'.

I\'m not judging programs by how many lines of code they have. I just find it interesting to know.

You\'re totally right about your last sentence.

But I don\'t want to change these unnecessary lines of code because it jsut cost too many time. So I don\'t care them. I\'going to change them anyway because my program (btw, it\'s a program with mathematic tools, like a tool to calculate the avarage speed, or some tools to calculate equations like AX + B = C) now uses the notepad to do all these calculations and to interact with the user. The GUI is only 1 place with buttons that start\'s the tools on the notepad. I don\'t like that notepad shit. I\'ve never seen a program that uses the notepad before. But I planned to say goodbye to the notepad on update 3.0. But that\'s a thing for later. Tomorrow I introduce update 1.3 :)

Link to comment
Share on other sites

Technically you could make an entire game in a single line of code. Some languages treat spaces pretty much the same as linebreaks, I think?

In languages that have an 'end line' character, yes, you could write an infinite amount of code on a line... but it\'s still an infinite amount of lines to the machine...

...and just try to debug something like that. Ohhh Momma!

Link to comment
Share on other sites

  • 2 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...