Git Product home page Git Product logo

traditional-roguelike's Introduction

Hi, I’m Gerard 👋

Originally a self-taught programmer, now pursuing a bachelor's degree in Computer Science all while making fun and interesting projects in my spare time. I love working in Python and am adaptable to working with a range of other languages and frameworks. Updated almost daily, I put pretty much all of my projects here.

  • 📚 I'm a current senior at California State University, Northridge
  • 👀 I’m interested in full-stack development with a focus on the back-end, but I like exploring other topics on the side!
  • 🌱 I'm currently:
    • Searching for a Summer 2024 SWE internship based in the US
    • Doing web design work for my university's department webpages
    • Developing for the iOS on the smart clothing app for ARCS
    • Working on a couple side projects, including my roguelike and a social cookbook app
  • 💞️ I’m looking to collaborate on any fun, open-source projects
  • 📫 Want to reach me? Here's my Discord & LinkedIn

A list of every technology I've worked with in the past:

🛠️Languages
📚Frameworks
💾Databases
☁️Hosting

traditional-roguelike's People

Contributors

jgabaut avatar jjszaniszlo avatar vaiterius avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jjszaniszlo

traditional-roguelike's Issues

Color pairs are overfilled

It seems that on my terminal emulator, I'm getting this error when trying to run the game using python 3.11.2 on MacOS. It seems that the loop overfills the pairs array. I'm not a python dev so I don't know much about the language or curses, so I'm not sure if the loop should go from 0-255 including 255. The error says greater than 255, so it's possible that it's looping from 0-256 unintentionally.

Screenshot 2024-01-29 at 2 37 34 PM

Menu key does not bring up main menu dialog

I hope this does not come off as a nitpick, since it's just my honest report on first-hand usage.

What I did:

  • Clone, run
  • Notice I can't open a menu in "exploration" state
  • Go to README
  • Find "main menu" hint
  • Found:
  To go back to main menu:

  - m

Which ATM is not working.

I later realised there's also:

To exit:

- Q

Which asks to go to main menu as promised. I understand why you would not want an immediate-quit key (user may press it by accident when playing), but in my opinion the exit key should close the game altogether (after a "confirm" prompt, I'd prefer) while the menu key should bring you back to main menu.

I would open a separate issue to describe the fact that the exit key brings you to main menu, but that may be intended behaviour.

The SCREEN TOO SMALL error may fail to be printed

At the moment, the error display for too small of a screen is not always drawn correctly.

I think at the moment, the whole thing blows up if the screen's width is less than the error message.

This occurs on main branch whenever a call to ensure_right_terminal_size() finds a weird enough screen:

[... Omitted]
^^^^^^
  File "/repos/Traditional-Roguelike/game/terminal_control.py", line 1199, in display_main_menu
    self.ensure_right_terminal_size()
  File "/repos/Traditional-Roguelike/game/terminal_control.py", line 1535, in ensure_right_terminal_size
    self.screen.addstr((x // 2) + 1, submessage_ypos, submessage)
_curses.error: addwstr() returned ERR

When trying to run from patch #5, this error may occur as soon as the game is launched (given a screen size "small enough").

I guess error handling for the addwstr() call in self.screen.addstr((x // 2) + 1, submessage_ypos, submessage) may alleviate this, maybe falling back to a minimal size that ensures something is drawn and no crash occurs.

I'm mostly positive this was mostly me messing with the resizing, but I wonder what's the actual condition needed to make the drawing fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.