Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Programming Thing Resumed  (Read 1319 times)

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Programming Thing Resumed
« on: February 23, 2012, 10:35:23 pm »

With my Tech Fair once again approaching, I figured I might actually make something and post it here, instead of being a failure. Once again, it is TF2 in 2D being made with a shitty coder. Scratch. But, it has 3 z-levels in the map, and there are going to be about 200-300 variables, along with basic Ai, picking basic paths with a random number generator. How efficient this is might be questionable, but I shall do it. About 100 variables in.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Programming Thing Resumed
« Reply #1 on: February 23, 2012, 10:37:20 pm »

Eeeeeeeenteresting...
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Thing Resumed
« Reply #2 on: February 23, 2012, 11:00:03 pm »

Measuring a program in the number of variables..? Strange way to go about it, especially if you use any structure for dynamic memory allocation like a list.

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: Programming Thing Resumed
« Reply #3 on: February 23, 2012, 11:09:34 pm »

Just a sheer measure of how retarded I am.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Thing Resumed
« Reply #4 on: February 23, 2012, 11:12:06 pm »

I wouldn't say retard. More like young, untrained and ambitious. Good start, I guess.

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: Programming Thing Resumed
« Reply #5 on: February 24, 2012, 12:05:34 am »

Well, I have hit a slight problem. I cannot see a way to make the bots face the closest object. I'll see if I can have it check the distance of them all against each other, but it'll be really ugly looking and not work to well.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Thing Resumed
« Reply #6 on: February 24, 2012, 12:10:04 am »

What language are you working in, out of interest?

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: Programming Thing Resumed
« Reply #7 on: February 24, 2012, 12:13:51 am »

What language are you working in, out of interest?
Scratch. As stated in the OP, it's rather shit. Which is why I'm having to make an extremely time consuming code to compare the distance of 15 objects to each other. So if x>y and x>z and x>v.... Y>v and Y>x. Any way around that?
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Thing Resumed
« Reply #8 on: February 24, 2012, 12:32:21 am »

I know you shouldn't judge a book by its cover, but the imagery is too good.

Spoiler (click to show/hide)

Anyway, looking at the language features it seems a bit limiting. You might enjoy some more freedom from something a little more professional, but really up to you. Good luck!

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: Programming Thing Resumed
« Reply #9 on: February 28, 2012, 10:36:45 pm »

Little update. Was stuck on how to make it point to and shoot the nearest person. Was offered a way to calculate the distance of all the enemies, and then point to the nearest one. Then I went with pointing to a certain one if they were in range, to allow the bots to have a preference of who they shoot first.
And it has gotten to a point I can't even use a laptop to program anymore. It lags so much.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig