Giter Club home page Giter Club logo

fgmk's Introduction

Icon fgmk

Join the chat at https://gitter.im/fgmk/Lobby PyPI Github All Releases PyPI PyPI

Screenshot

This is an editor for making 2D RPG games. Games are composed of plain text files, images and a index.html file containing the engine.

These plain text files are easy to read by software and humans.

Click here to try a demo game (4MB size).

Recommended Install and Run

This software is available under PyPI as fgmk. For installing pip3 in Ubuntu, use sudo apt install python3-pip.

pip3 install fgmk

After install, just open a terminal and type:

fgmk

Windows install and run

Installation on Windows with pip

In Windows, install Python 3 from www.python.org, and then open cmd.exe and type (press enter after):

python -m pip install fgmk

To run, you can type the following in cmd.exe or the run... prompt

python -m fgmk

Alternative Installation and Running methods

From Source Installation

Clone this repository, meet the dependencies and install this with pip3.

git clone https://github.com/ericoporto/fgmk.git
cd fgmk
pip3 install .

Running from source

Clone this repository, meet the dependencies and type python3 -m fgmk

git clone https://github.com/ericoporto/fgmk.git
cd fgmk
python3 -m fgmk

Dependencies

This tool is written using Python 3. Needs pillow, numpy and PyQt5 - you can apt install python3-pyqt5 and similar (in Ubuntu) or use pip.

If you satisfy all dependencies you don't need to install, and can run from source.

Experimental compatibility to python2 (2.7 and on) is added to versions above 0.3.0 .

Documentation

The docs are available in the website: ericoporto.github.io/fgmk/.

You can also browse the docs after opening the interface, by clicking in Help.

This is the Quickstart.

If you wish to edit the docs, they are here as markdown files.

Contributing

Please take a look to the CONTRIBUTING.md file.

Author

Made by Érico Vieira Porto

License

Distributed under GPLv2 license. See LICENSE for more information

Known Issues with PyQt5 in Ubuntu

Application has no keyboard shortcuts

If instead of using pip3 you are installing dependencies using apt install, the menu will be nicely integrated. Unfortunately, keyboard shortcuts won't work.

Details in the bug here

fgmk's People

Contributors

ericoporto avatar gitter-badger avatar radarhere 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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fgmk's Issues

Game speed settings?

The demo game feels too fast for me. It's like playing a NES game on 2x speed. Any way to change that in-browser?

Google Chrome Version 53.0.2785.116 (64-bit)
macOS Sierra

Turn Based Battle vs Zelda / IoG vs Other

When I started I had played Dear Esther and was more into the storytelling process. I then decided to include battles so that your exploring would need to manage resources, and selected turn based because I am very bad at gaming on touch screen. By going the Earthbound style I save drawing too much and needing to invest time in perfecting the timing of the engine. Also makes easier to plan dungeons.

I am leaving this here so people can post their thoughts on which type of battles they would be more satisfied developing. I left Zelda and Illusion of Gaia as games that have other way of solving the battle, but the question is open for discussion.

not sure but i do i have pyqt5 installed

xanth@xanths-box:$ fgmk
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
File "/home/xanth/.local/bin/fgmk", line 8, in
sys.exit(main())
File "/home/xanth/.local/lib/python3.10/site-packages/fgmk/main.py", line 86, in main
mw = Editor.MainWindow(mw_arg)
File "/home/xanth/.local/lib/python3.10/site-packages/fgmk/Editor.py", line 354, in init
self.FancyWindow(self)
File "/home/xanth/.local/lib/python3.10/site-packages/fgmk/Editor.py", line 490, in FancyWindow
self.myPaletteWidget = tile_palette_wdgt.PaletteWidget(self, self.myTileSet)
File "/home/xanth/.local/lib/python3.10/site-packages/fgmk/dock/tile_palette_wdgt.py", line 33, in init
self.drawPalette(tileSetInstance)
File "/home/xanth/.local/lib/python3.10/site-packages/fgmk/dock/tile_palette_wdgt.py", line 57, in drawPalette
self.Grid.addWidget(self.PaletteTileList[-1], i / 6, i % 6)
TypeError: arguments did not match any overloaded call:
addWidget(self, QWidget): too many arguments
addWidget(self, QWidget, int, int, alignment: Union[Qt.Alignment, Qt.AlignmentFlag] = Qt.Alignment()): argument 2 has unexpected type 'float'
addWidget(self, QWidget, int, int, int, int, alignment: Union[Qt.Alignment, Qt.AlignmentFlag] = Qt.Alignment()): argument 2 has unexpected type 'float'
xanth@xanths-box:
$

[Linux Bugs] v0.7.3 : Items Bug

Sorry I can't explain more in text because my English not perfect. But I make a video.This is the video:
https://youtu.be/qP2gPd1SJpc

Item properties : equipable
Item category : whatever you want

My System Specs:
OS: Linux Ubuntu 16.04 LTS 64-bit (On Asus Laptop)
Memory: 1,9 GiB
Processor: Intel® Core™ i3-2330M CPU @ 2.20GHz × 4
Graphics: Intel® Sandybridge Mobile

[Linux Bugs] v0.7.4 : Items Bug (Reset to Default Items)

Today I upgrade my fgmk. Then open my game project and open "Edit Items...", my Items I created from previous version (v0.7.3) such as money, armor, axe, etc, is disappear and back to default items (sword and potion). I try open other project and same result. Try open items.json and the file only have sword and potion. I'm not lucky, because I not backup my game.

No Error Message.

This is the picture:

v0.7.3 (Before upgrade):
fgmk-0 7 3-linux-items-bugs

v0.7.4 (After upgrade):
fgmk-0 7 4-linux-items-bugs

My System Specs:
OS: Linux Ubuntu 16.04 LTS 64-bit (On Asus Laptop)
Memory: 1,9 GiB
Processor: Intel® Core™ i3-2330M CPU @ 2.20GHz × 4
Graphics: Intel® Sandybridge Mobile

[Linux Bugs] v0.7.4 Have 3 More Bugs

Hello @ericoporto , this is bugs I found on linux version of fgmk. I think you have found this bugs first before me because I late to upload the video. I'm sorry, but I hope this video useful.
Video:
https://youtu.be/6RED3Cp3mic

3rd Bugs Error Message:
Traceback (most recent call last):
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 581, in saveItems
self.saveCurrentItem()
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 529, in saveCurrentItem
self.itemsList.removeByName(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 442, in removeByName
self.itemf.removebyname(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/ff/item_format.py", line 172, in removebyname
del self.jsonTree['Items'][it.getnormalname()]
KeyError: 'None'
Traceback (most recent call last):
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 529, in saveCurrentItem
self.itemsList.removeByName(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 442, in removeByName
self.itemf.removebyname(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/ff/item_format.py", line 172, in removebyname
del self.jsonTree['Items'][it.getnormalname()]
KeyError: 'None'
Traceback (most recent call last):
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 581, in saveItems
self.saveCurrentItem()
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 529, in saveCurrentItem
self.itemsList.removeByName(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 442, in removeByName
self.itemf.removebyname(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/ff/item_format.py", line 172, in removebyname
del self.jsonTree['Items'][it.getnormalname()]
KeyError: 'None'
Traceback (most recent call last):
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 529, in saveCurrentItem
self.itemsList.removeByName(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/item_editor.py", line 442, in removeByName
self.itemf.removebyname(itemname)
File "/home/dito/.local/lib/python3.5/site-packages/fgmk/ff/item_format.py", line 172, in removebyname
del self.jsonTree['Items'][it.getnormalname()]
KeyError: 'None'

My System Specs:
OS: Linux Ubuntu 16.04 LTS 64-bit (On Asus Laptop)
Memory: 1,9 GiB
Processor: Intel® Core™ i3-2330M CPU @ 2.20GHz × 4
Graphics: Intel® Sandybridge Mobile

This needs to work on the Raspberry Pi

Opening this issue since I have a Pi-Top CEED to test, which uses Raspberry Pi 3 and as is, it's a little hard.

Right now you have to install dependencies manually and then use pip3 install --no-dependencies fgmk.

I am hitting two problems:

  • PyQt5 is available through Raspbian, but not through pip3.
    • My solution to this is to create a debian that depends on python3-pyqt5, python3-pil, python3-pil.imagetk and python3-numpy.
    • Need to check if all these packages are available
    • Need to learn how to create deb packages, I am thinking on using stdeb and start from there - I have some work on this here.
    • The only way I know of doing this is building in the Raspberry Pi itself, don't know if there is another, smarter way.
  • Javascript is slow on Pi / I am a bad javascript coder
    • My temporally solution to this is modifying the game_server.py so that, whenever a file is loaded, if the file has a valid gamefolder (the project directory contains a descriptors folder with an init.json file), it will serve the current project directory, and when saving, it will kill and refresh the server.
    • Pressing f5 would only load the browser in this manner.
    • And the solution would be using something else to load the game, like a phone or a tablet, and use the Raspberry Pi just as a development environment.

[bug] dependency problems

getting this at installation:

hn@hn:~$ pip3 install fgmk
Collecting fgmk
  Using cached https://files.pythonhosted.org/packages/31/fc/7a00cc97196a6cb244b4a15e757181c154ba2a99b94bed0a87693c04b9ed/fgmk-0.7.4-py3-none-any.whl
Collecting pyqt5 (from fgmk)
  Using cached https://files.pythonhosted.org/packages/36/66/19983d471c702e551a19a7225a92a7c1efadd961f6c650110ed906dd0ed7/PyQt5-5.15.6-cp36-abi3-manylinux1_x86_64.whl
Collecting numpy (from fgmk)
  Using cached https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip
  Installing build dependencies ... done
Collecting pillow (from fgmk)
  Using cached https://files.pythonhosted.org/packages/43/6e/59853546226ee6200f9ba6e574d11604b60ad0754d2cbd1c8f3246b70418/Pillow-9.1.1.tar.gz
Collecting PyQt5-sip<13,>=12.8 (from pyqt5->fgmk)
  Using cached https://files.pythonhosted.org/packages/38/b3/f30673b85b4e376ff97fd690c5c202abc57814a79a4159540c5e2b4d5aca/PyQt5_sip-12.10.1-cp37-cp37m-manylinux1_x86_64.whl
Collecting PyQt5-Qt5>=5.15.2 (from pyqt5->fgmk)
  Could not find a version that satisfies the requirement PyQt5-Qt5>=5.15.2 (from pyqt5->fgmk) (from versions: )
No matching distribution found for PyQt5-Qt5>=5.15.2 (from pyqt5->fgmk)

distro :

hn@hn:~$ neofetch
        #####           hn@hn 
       #######          ----- 
       ##O#O##          OS: SolydXK10 64-bit x86_64 
       #######          Host: SATELLITE PRO C50-E-109 PYS20E-00307RPL 
     ###########        Kernel: 4.19.0-20-amd64 
    #############       Uptime: 9 hours, 39 mins 
   ###############      Packages: 2674 (dpkg), 12 (flatpak), 4 (snap) 
   ################     Shell: bash 5.0.3 
  #################     Resolution: 1920x1080 
#####################   DE: Xfce 
#####################   WM: Xfwm4 
  #################     WM Theme: Default 
                        Theme: Xfce-dusk [GTK2], Breeze-X [GTK3] 
                        Icons: arcticons [GTK2], evolvere-flat-vivid-sunken [GTK3] 
                        Terminal: xfce4-terminal 
                        Terminal Font: Monospace 12 
                        CPU: Intel i3-8130U (4) @ 3.400GHz 
                        GPU: Intel UHD Graphics 620 
                        Memory: 5864MiB / 7891MiB 

Can't open new charaset.json files

Hi. Great work you made.
To make my own game i wanted to load or to make new charset files but it keeps crashing when i tried loading a new age file. Help please.

Sent from my HUAWEI MHA-L09 using FastHub

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.