Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Program Box  (Read 1683 times)

NUKE9.13

  • Bay Watcher
    • View Profile
Program Box
« on: April 22, 2009, 02:23:48 pm »

Spoiler (click to show/hide)
That didn't go to well.
Spoiler (click to show/hide)
Hive mind god figures! Spoooky!
Spoiler (click to show/hide)
:
:

So yeah. Program Box. We'll see were we go from there.
This idea is basically a rip-off of squeegy's robot adventure.
But I blether on whilst there is programming to do*
Get to work! Two lines which may be filled either with an action or an If (thingy) Then action!


*Not actual computer programming. That would be dumb

Logged
Long Live United Forenia!

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Program Box
« Reply #1 on: April 22, 2009, 02:44:59 pm »

If (Box.think == true)
{
     Box.Is = true;
}
Logged

NUKE9.13

  • Bay Watcher
    • View Profile
Re: Program Box
« Reply #2 on: April 22, 2009, 02:58:06 pm »

If (Box.think == true)
{
     Box.Is = true;
}
Spoiler (click to show/hide)
I have the strangest feeling of deja vu.
Spoiler (click to show/hide)
Wait, we get points?
Anyway, try again. Also, the programming that box uses is currently pretty basic.
Basic as anything, you might say.
So not whatever superior object orientated programming language you are using there.
Logged
Long Live United Forenia!

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Program Box
« Reply #3 on: April 22, 2009, 03:01:04 pm »

string const AXIS_X "the axis perpendicular to plane of view";
string const ROTSPEED_C "such speed that the corners of the box travel at speed of light";

> Box.Spin(AXIS_X, ROTSPEED_C)
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

NUKE9.13

  • Bay Watcher
    • View Profile
Re: Program Box
« Reply #4 on: April 22, 2009, 03:55:11 pm »

:Spin real fast
:
Spoiler (click to show/hide)
So, to cut a long story short, we died. Again.
Once again, no points.
Logged
Long Live United Forenia!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Program Box
« Reply #5 on: April 22, 2009, 04:01:53 pm »

Code: [Select]
[s]
if(box.isgoingToBeHitByFlyingObject())move(getSafestDirection());
else wander();[/s]
Code: [Select]
if(isGoingToBeHitByFlyingObject(&box))move(&box,getSafestDirection());
else wander(&box);

Go C with "undefined"(we'll pretend they do what they should do, at least until the box can have more programming space) functions!

Edit: Forgot that C doesn't have object methods, or really even objects.

Note that this would actually work, with the unseen definitions
Spoiler (click to show/hide)
« Last Edit: April 25, 2009, 07:51:18 am by qwertyuiopas »
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Program Box
« Reply #6 on: April 24, 2009, 04:29:47 pm »

:(
Why does everything die after I post in it?
Logged
Eh?
Eh!

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: Program Box
« Reply #7 on: April 24, 2009, 04:33:43 pm »

I wonder if the box has buildt-in arms and/or legs it can deploy?
Logged

Vanigo

  • Bay Watcher
    • View Profile
Re: Program Box
« Reply #8 on: April 24, 2009, 04:44:19 pm »

I think I'll actually pay attention to the whole "no OOP" thing...

:set tangible = false
:
Logged

a1s

  • Bay Watcher
  • Torchlight Venturer
    • View Profile
Re: Program Box
« Reply #9 on: April 24, 2009, 07:56:10 pm »

there's no OOP? ???

anyway
10 if(box.dangerlevel(self)>0) then (box.move(random(),random()))
20 score++
Logged
I tried to play chess but two of my opponents were playing competitive checkers as a third person walked in with Game of Thrones in hand confused cause they thought this was the book club.

Archangel

  • Bay Watcher
    • View Profile
Re: Program Box
« Reply #10 on: April 25, 2009, 11:29:35 pm »

I don't know if this is code but

1st code:
If code_lines=1
code=ture

2nd code:
If code_lines=2
code=true

3rd code:
If code_lines=3
code=true
Logged
There's about 25 of the fuckers and the three sarge killed were at point blank range - it's got to be zombies or a bunch of really dumb terrorists with knives.
My full sig