Code Monkey home page Code Monkey logo

dungeon-cross's Introduction

Dungeon Cross

A Python + Pygame stand-alone, reimplementation of Zachtronic's Dungeons and Diagrams. I love Picross and Dungeons and Diagrams is an amazing twist on classic nonograms. I wanted to have a stand-alone version of this game to have open in the background while I do other things. Hence this project was born.

If you like this game, please checkout the other amazing puzzle games by Zachtronics.


NOTE: All the sprites, music, and sound effects listed in the credits are, to the best of my understanding, licensed as Creative Commons.


Controls:

LMB - Place/remove walls
RMB - Place/remove marks
SpaceBar - Next puzzle
R - Reset puzzle
CTRL-Z - Undo
CTRL-Y (or CTRL+SHIFT+Z) - Redo

Click on the book sprite to open the main menu.

Running

To either run or compile Dungeon Cross, you'll need to have Python 3.7 (or newer) installed along with Pygame. If you've installed Python with the 'Add to path' option selected, you can run the following in a command prompt to install pygame and pygame_menu:

$ pip3 install pygame pygame_menu

To run the program, you can then run this command from the main game directory: $ python3 dungeon_cross.py

Alternatively, you can download the pre-compiled binaries listed under releases.

Building

Included with this repository is a Makefile for Linux and MacOS and a Batch file for Windows. To run either of these, you'll need to have Python 3.7 or newer installed WITH the 'Add to path' option selected. From there, you can build the game to an binary file by doing the following:

Windows

Double click on make.bat. A command prompt window will appear. It will install the required libraries and build to the dist/ folder.

MacOS or Linux

You will need to have the make utility installed. Open a command prompt in the main game folder and execute the following command: $ make It will install the required libraries and build to the dist/ folder.


Credits:

  • HalfBurntToast: All programming in this project.
  • Zachtronics: - Original game design concepts.
  • Shadowcluster: - Raw puzzle frameworks
Sprites:
  • DCSS: - All sprites except for the chest sprite.
  • PIPOYA: - Chest sprite.
  • Big Rigs: Over the Road Racing - Legendary win screen that I jpeg'd the heck out of.
Music:
Sound Effects:
Third-party libraries

Screenshots

Screenshot at 2022-09-15 11-46-37 Screenshot at 2022-09-15 11-47-02

dungeon-cross's People

Contributors

halfburnttoast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

earlyraven

dungeon-cross's Issues

Hit reset, game dies

With this trace:

Traceback (most recent call last):
  File "/home/andreas/Progetti/bbs/Dungeon-Cross/./dungeon_cross.py", line 852, in <module>
    main()
  File "/home/andreas/Progetti/bbs/Dungeon-Cross/./dungeon_cross.py", line 842, in main
    game.update()
  File "/home/andreas/Progetti/bbs/Dungeon-Cross/./dungeon_cross.py", line 179, in update
    self._menu.mainloop(self._screen, bgfun=self._draw_game)
  File "/home/andreas/.local/lib/python3.10/site-packages/pygame_menu/menu.py", line 2908, in mainloop
    self.update(pygame.event.get())
  File "/home/andreas/.local/lib/python3.10/site-packages/pygame_menu/menu.py", line 2437, in update
    selected_widget.update(events):
  File "/home/andreas/.local/lib/python3.10/site-packages/pygame_menu/widgets/widget/button.py", line 229, in update
    self.apply()
  File "/home/andreas/.local/lib/python3.10/site-packages/pygame_menu/widgets/core/widget.py", line 1258, in apply
    return self._onreturn(*args, **self._kwargs)
  File "/home/andreas/Progetti/bbs/Dungeon-Cross/./dungeon_cross.py", line 628, in _menu_reset
    self.open_puzzle(self.current_puzzle_id())
TypeError: 'int' object is not callable

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.