xenonlab-studio / the_dungeon_of_sin Goto Github PK
View Code? Open in Web Editor NEWA fantasy roguelike game similar to Angband and Dwarf Fortress.
License: GNU General Public License v3.0
A fantasy roguelike game similar to Angband and Dwarf Fortress.
License: GNU General Public License v3.0
Now that we can move our little "@" symbol, which represents the player, I have to give him something to move.
At this time, the player with the symbol '@' and its x and y coordinates is simply represented. Should I not tie these things together in an object, along with other data and functions that refer to it?
I create a generic class to represent not only the player, but practically everything in the game world. Enemies, objects and any other foreign entity I can dream of will be part of this class, which I will call Entity.
The Dungeon of Sin seems more and more playable and complete, but before going on with the gameplay, I have to take a moment to focus on how the project looks.
Despite what traditional roguelike gamer might say, a good user interface is a good thing.
I solve the part about HP. With little code, I can add a small security bar, which tells the player how much health remains before death.
I added some necessary variables in engine.py.
Now we have a dungeon and we can move freely. But are we really exploring the dungeon if we can see it all from the beginning?
Most roguelikes (not all!) Only allow you to see within a certain range of your character, and The Dungeon of Sin will not be different. I have to implement a way to calculate the "field of view" for the player and, fortunately, libtcod makes it so easy!
The next step is very important towards a real and working game: create a procedurally generated dungeon!
So far, The dungeon of Sin includes movements, exploration of the underground, combat and artificial intelligence.
The next step is the implementation of the items!
Start by putting a type of object, the healing potion in this case, and then I'll work on implementing the inventory. Later, I will add different types of objects, but for now the healing potion will suffice.
What good is a dungeon without monsters to defeat? This commit will focus on placing enemies across the dungeon and setting them to be attacked (the actual attacking side will be saved for the next time). I create a function to place enemies in the dungeon; I call it "place_entities" and place it in the GameMap class.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.