roguelike | A procedurally-generated roguelike personal learning | Game Engine library
kandi X-RAY | roguelike Summary
kandi X-RAY | roguelike Summary
This is an experiment to familiarize myself with game mechanics, TypeScript, and Pixi.js. It is a procedurally generated rogulike-esque game with armor, a gui, monsters, and fake "lighting". The game "engine" is written entirely from scratch, with the exception of a pathfinder (for resolving paths) and Pixi for drawing images and shapes to the screen.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of roguelike
roguelike Key Features
roguelike Examples and Code Snippets
Community Discussions
Trending Discussions on roguelike
QUESTION
I am coding a roguelike, and am drawing each individual frame if the "coordinates" of the map are a certain number. Note: the indentation is correct in my project, it's just that stackoverflow is confusing. I made this code:
...ANSWER
Answered 2021-May-23 at 04:23It's not a glitch -- the code is doing exactly what you told it to do.
x and y both start at 0. If the user enters "s", y is increased to 1.
Your if/else block does not have any case that matches x == 0 and y == 1, so the print('\n\n\n\n\n\n\n...')
line runs forever.
Yes, I know the code has these lines:
QUESTION
I'm working on a roguelike game, and I tried printing the frames:
...ANSWER
Answered 2021-May-22 at 09:20i = 0
def lv1():
## check here , wrong indentation
while i == 0:
x = 0
y = 0
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
if x == 0:
if y == 0:
print("@ - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - []")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
move = input("")
if move == "d":
x = 1
elif x == 1:
if y == 0:
print("- @ - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - []")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
print("- - - - - - - - - - -")
lv1() #invoke the function
QUESTION
New to Unity C# coding. I'm writing a script to achieve procedural generation in a 2D roguelike game. My idea is to use enum to represent 4 directions (up, down, left, right), then pick a random direction to produce a room from Prefab. Then next room will be generated by the same method. Here are my codes:
...ANSWER
Answered 2021-Jan-05 at 10:57You are missing variable name in your for-loop:
QUESTION
I've only started playing with xamarin recently but I'm making a roguelike using xamarin and I had the idea of using a grid for the player map (each X Y position in the grid would be representing the randomly generated map) I've hit a snag though in that putting things any thing over the 55th column seems to push them off the screen (See image below)
Here's my code so far:
...ANSWER
Answered 2020-Oct-08 at 06:02You should warp the content into a ScrollView and set Content = scrollView
, then you can scroll to see all the elements:
QUESTION
I'm trying to follow a Lua roguelike course to learn the language and by line 17 when I had attempted to run the program to see the title it came up with the error
...ANSWER
Answered 2020-Aug-27 at 14:18So I tried gideros and it worked properly, while it depends on lua it has it's own commands native to it's IDE framework.
QUESTION
I'll try to be both brief and thorough.
I am following the tcod Rouguelike tutorial at the following link:
http://rogueliketutorials.com/tutorials/tcod/
I am using PyCharm Community Edition, though I don't think that much matters. All was going well until the end of Part 4, where we implemented an FOV for the player. When I try to run the main engine using the following code (given in tutorial):
...ANSWER
Answered 2020-Jul-14 at 18:47I was just having this same problem and found that putting
QUESTION
I would like to detect the previous movement of the character to display an animation in relation of the previous mouvement. For example, if the previous mouvement is 'move_right', when the character stopped, I would like to display an image turned to the right. And the same way for the left. Can you help me ?
EDIT
I'll put you a portion of the concerned code, hope it will help you.
...ANSWER
Answered 2020-Mar-09 at 23:29My understanding of your question is that you wish the Player sprite to "face" the direction of the most-previous movement. For example, if the player last moved left, the sprite should display as facing left.
This sort of thing is quite easily achieved by setting the Sprite image
value to the correct bitmap. There's no explanation for it, so I don't quite understand what a "HeatBox" represents, so I will ignore that. Both image
and rect
are special within a PyGame Sprite Class. They are used by the sprite library code to draw, and detect collisions for the sprite. It would be better to use another variable name for some other purpose.
QUESTION
I am making a roguelike game, but I am beginner when it comes to coding. I already have my character moving, my wall and floor sprites, but there is some error in my code that allows the character to move through walls.
I used the block_path
to choose between the floor and wall tile and I tried to use it then to recognize the wall but it didn't really work.
Next, you can see my code:
...ANSWER
Answered 2020-Feb-18 at 11:34Changing your createmap()
function to something like this will create a 5 pixel buffer on the boreder of your map. The reason I made it 5 pixels is because that's what your character movement is.
I would suggest putting in some actual character collision to test whether you're out of bounds regardless of speed though.
EDIT: I've included the full code since the changes I've made are easier to understand if I show them.
I've changed your image lists to a dict of list since they're easier to call that way. The grid you asked for is 30x30. Since you showed a 32x32 cell width I changed the map to 960 x 960.
I've extended your move method to check for collision to see if it can move before it does. I've also removed your redraw()
function since it was easier to just move your redraw down. If you wish, you can add it back in but for this example, I removed it.
QUESTION
I've a pandas DataFrame (list of video games) with a column "classification". In that column, we can find:
- simple classification: "RPG" or "Action"
- multiple classifications: "Action Adventure RPG Roguelike", "Action Shoot'em Up Wargame"
You have noticed? There is no separator...
Of course, I need to split this in a new column, WITH separator (Or other structure with each separate element).
So
...ANSWER
Answered 2020-Feb-04 at 08:37here's an idea..using str.findall
QUESTION
First question here.
I'm new to Python, trying to make a text-based game using appJar for a UI - problem is, recently my GUI crashes my code when I exit out of it. Whether I close the window or use an Exit button that stops the GUI, I get this error and it prevents me from running any code after closing the UI.
Error:
...ANSWER
Answered 2020-Jan-17 at 21:32invalid command name "."
is telling you that the root window has been destroyed. "." is the internal name for the root window.
You didn't show enough code to pinpoint the problem, but the bottom line is you're executing some tkinter code after the root window has been destroyed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install roguelike
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page