Niels
  • Member for 5 years, 11 months
  • Last seen more than a month ago
Random number in a range, biased toward the low end of the range
10 votes

Why not use a system similar to advantage/disadvantage as used in DnD 5e? It boils down to: disadvantage: roll 2 (or any number of) dice and keep the lowest. advantage: roll 2 (or any number of) dice ...

View answer
Tilemap Object Placement
2 votes

When you have your mouse-picking working all you need to do is overlap your map with the object you wish to place. This problem would be the same for an isometric grid as for a rectangular grid. Take ...

View answer
Increasing chance of good loot after multiple tries
1 votes

You could go for a rolling scale, give each item a minimum roll of X and each time you roll for an item roll = (random) + Y, where Y is your bonus (increasing a certain amount with each roll. Then ...

View answer
CCD in C++ Console application
0 votes

For a school assignment we made a class to wrap up the characters in, essentially creating bitmaps where instead of coloured pixels we used characters. This greatly simplified things such as drawing ...

View answer
How can I represent a tile-based map and related properties on disk?
0 votes

What you are trying to do is storing a grid of numbers into an array, there is unlikely to be one, best solution. We've used Paolo's example for some projects. For others we've used something as ...

View answer
How to lock the mouse cursor in the middle in a first person camera?
0 votes

You could use your framework to hide either hide the mouse cursor or set it to use a default, invisible cursor. You can then just draw your crosshairs in the middle of the screen and rotate your ...

View answer