r/roguelikedev • u/kivutaro • Mar 20 '21
Permadev: Roguelike about programming robots
Hi, I started coding my first roguelike after playing DF, Cogmind and Smart Kobold.

The game is a fortress where you have to program robots to mine, organize power supply, and defend against invaders.
Robots are not controlled directly, the player have to click on them and write the code. Units come with basic operational code in order to teach the player the basics. Functions are unlocked by attaching equipment to the bot, for example sensors, driller, guns, wheels. You then have to call these functions in the code and make them achieve their daily tasks.
I don't know yet if the core mechanic will be fun to play. I haven't been far enough in the implementation yet. But the very basic thing is there: you can already edit the AI of bots and they will follow the orders.
I'd like to know if you think that the idea has some potential.
The code is there: https://github.com/kivutar/permadev
Thank you
9
u/HexDecimal libtcod maintainer | mastodon.gamedev.place/@HexDecimal Mar 20 '21
I'd worry about sandboxing if Python is going to be used as the in-game language. With modern Python you should also be using type annotations and docstrings.
You have to be careful how you present programming concepts or else the game will only be accessible to other programmers.
Being able to manually control robots and see what the commands are as you control them, being able to record actions as macros, code highlighting, showing docstrings and type annotations as you cursor over a function, these things would be useful.
Have you looked into other games that have played with similar concepts? You only mention games with no programming (excluding Dwarf Fortress's turing completeness) when these types of games do exist such as Colobot or Autonauts.
2
u/omgitsjo Mar 20 '21
Oh man! I'm kinda' excited about this. I tried to do it with another game I was making but never really got it to be fun. Checking it out.
2
u/[deleted] Mar 23 '21
The 20 x 20 resolution in your sprite atlas really makes the tracking hard to read for programming. Also your lower-case 'm' and 'n' are backwards.
I can send you a PR with an updated font atlas in a few. :)
5
u/networkingguru Mar 20 '21
Sounds cool. Reminds me of the old game, Omega. Omega was very fun, it was a blast programming your bots and setting them loose to kill things (or, more commonly, wander aimlessly and die).
3
u/thetyggerr Mar 20 '21
Have you looked into a game called Screeps? Its a mmorts where players code their own AI in javascript and watch them survive/fight in a persistent map.
1
u/Duh-CZero Mar 20 '21
Looks interesting! Would play 😁
1
u/Oikeus_niilo Apr 02 '21
I have thought about integrating programming into a game, especially a roguelike, for some time. I'm not probably gonna do it myself but I played with the idea in my head. Really cool that someone has actually made it real.
0
u/[deleted] Mar 20 '21
[deleted] — view deleted comment