Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Cant find the docs for gaming

HI all,

Just started with code combat, and playing around with the game making in the first game tutorial, I can’t seem to find a full list of all possible eventshandlers or just a list of things you can do. only the few command the level provide at the moment.
Is there a full list somehwere?

2 Likes

Hi @Mazhdulin and welcome to the forum! :partying_face:

I think that you talk about the methods. There are all of the actions that your hero can make. It is on the left side of the coding space. Do you see it?

Andrei

1 Like

Here is a picture for you to understand better what I mean. (PS sorry for the blue line but I am not quite an artist :smile:)

Andrei

1 Like

Hi yes that is what i mean, but not everything you can do is in there.
For example in the last level of gaming1 there are no events in that window, while you can do them, or you can spawn a maze, which is not in this window.
So is there a full list somewhere. there must be some documentation right?

I was looking to see if there is an event if you collect a chest for example to run a piece of code to make the player stronger
like with this:

function onVictory(event) {
    db.add("defeated", game.defeated);
}

1 Like

You will have all of them after you do some levels with all of them.

Andrei

1 Like

This is actually intentional. Because CoCo is tailored for all levels of coding experience, the designer’s intent is not overload those who are just starting out. Therefore, one (or maybe a couple) concepts are covered in a level; as you progress through the levels, your Methods list will continue to grow.

In the campaign levels, if you already know a concept (method), you can usually use it…I think the same is true in the game devs, but not 100% certain.

I think that what you are looking for comes in the Game Dev 2 levels:

1 Like