Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Games made with RBB Sticky

A topic by chr15m created Aug 19, 2020 Views: 628 Replies: 10
Viewing posts 1 to 4
Developer

If you've made a game with RBB go ahead and list it here!

Developer

This is a game made in 48 hours for the Kenney Jam 2020.

Central Park Nanotech Warlex

Central Park Nanotech Warlex
Deleted 2 years ago
Developer

Hey that’s awesome! Let me know if you need help with the monster arrays.

Deleted 2 years ago
Developer(+1)

You should be able to use code like this to add a new monster during gameplay:

const m = makeMonster(x + "," + y);
Game.monsters.push(m)
Game.scheduler.add(m, true)

The variables x and y should be set to the position in the level where you want the monster to start.

Deleted 2 years ago
Developer(+1)

Putting it in a function is a good idea.

You should open the browser console and see what the error was. That will help you fix it. Really take care and time to read and understand whatever the error is. Pasting the error into a search engine will help. You can find the developer console in the developer tools menu in your browser.

The freeCells array is only available inside the generateMap function. You will need to make it available outside if you want to use it outside, e.g. Game.freeCells = freeCells.

You could then pick a random cell like this: ROT.RNG.getItem(Game.freeCells).

Good luck!

Deleted 2 years ago
Developer

If you do console.log(Game.alienfort) immediately after creating it, you will see the position printed. Note that the position is a string like “5x7” not an object like {x: 5, y: 7}.

So in your code where you say makeMonster(Game.alienfort.x + "," + Game.alienfort.y) you probably want to change it to this: makeMonster(Game.alienfort) because the variable is already in the correct x,y string format.

Deleted 2 years ago
Deleted 2 years ago
Deleted 2 years ago
Developer

Hey do you want to send me your code and I’ll see if I can debug what is going on. Basically what I’ll do is sprinkle console.log statements throughout the code to check that each variable holds the values I’m expecting them to hold. For example I’ll put some log statements inside monsterAct so I can check why the monster is hitting you but not getting drawn. I suspect it is to do with an undefined/null value somewhere, so I’ll be trying to track that down.

Developer(+1)

By the way, everyone is a charlatan programmer. I’ve been coding for 30 years and I still have to Google function names and stuff. So you don’t need to call yourself a “charlatan programmer” you can just call yourself a programmer. :)

Deleted 2 years ago

I wanted to give an update on Galaxy Wreck. It has come a long way and I'm very proud of what it's become. Thank you for all your help! https://misteratompunk.itch.io/galaxywreck

Developer

Great job!