Author Topic: Rogmind - 7drl2016 - finished  (Read 902 times)

Hi

  • Bishop
  • ***
  • Posts: 153
    • View Profile
    • Email
Rogmind - 7drl2016 - finished
« on: March 05, 2016, 07:52:25 PM »
You program a golem and it plays the game for you.

May be too ambitious.

Declaration of pre-existing material:
built off the bones of my previous 7drl Hexxus-Quest
« Last Edit: March 13, 2016, 10:11:39 PM by Hi »

Hi

  • Bishop
  • ***
  • Posts: 153
    • View Profile
    • Email
Re: anima
« Reply #1 on: March 07, 2016, 12:25:26 AM »
the scripting language to control the golem with is half implemented

this is a visualization of the output of "distance walkable"
which for each walkable location outputs the distance from you.

Hi

  • Bishop
  • ***
  • Posts: 153
    • View Profile
    • Email
Re: anima
« Reply #2 on: March 08, 2016, 03:28:37 AM »
The command language for defining actions is structured like this

increase <action> by <expression> <quantifiers>
the quantifiers restrict the expression so it only operates on the specified inputs

for example to make the golem follow walls you could enter this program.
At each step the golem performs the action with the most weight

Code: [Select]
increase forward by 10
increase right by 5
increase left by 15 wall behindLeft

left is only given a weight of 15 when the tile behind and to the left of the golem is a wall. Otherwise it is left unchanged

Hi

  • Bishop
  • ***
  • Posts: 153
    • View Profile
    • Email
Re: Rogmind
« Reply #3 on: March 13, 2016, 08:56:49 PM »

Xecutor

  • High Priest
  • ****
  • Posts: 258
    • View Profile
Re: Rogmind - 7drl2016 - finished
« Reply #4 on: March 27, 2016, 01:38:45 PM »
If you want someone to even try your game, you better post more information about this language.
All directions, all conditions, more information about how this even works.
I tried it and have no clue what's going on.
I tried to edit my program, but all of sudden it changed to this:
Code: [Select]
notWalkable is not walkable
to wallFollow
increase moveRight by 5
increase moveLeft by 5
increase moveForward by 10
increase moveRight by 10 ( notWalkable back ) or ( notWalkable forward ) right
increase moveLeft by 10 ( notWalkable back ) or ( notWalkable forward ) left
increase moveForward by 5 ( notWalkable left ) or ( notWalkable right ) forward

I changed the program to this:
Code: [Select]
to walk
increase moveforward by 10
but golem still wanders around randomly, while supposed to move straight forward.