Code Monkey home page Code Monkey logo

phasereditor's Introduction

banner

Phaser Editor 2D v2

There is a newer major version of Phaser Editor 2D. Visit its repository PhaserEditor2D-v3.

A friendly IDE to develop HTML5 games based on the popular Phaser framework.

Based on Eclipse, this IDE provides lot of functionalities made just to develop Phaser games:

Read more...

Phaser editor scheernshot

Links:

Known issues

Please use the issues of this repo to report bugs or request features. In addition you can use any of our social channels or write an email to developers at phasereditor2d.com.

Author

Phaser Editor is developed by Arian Fornaris.

You can checkout the source code and modify it (EPL License).

phasereditor's People

Contributors

morabaraba avatar omarshehata avatar phasereditor2d 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

phasereditor's Issues

Open games in the internal browser

(from Steve)

Is there a way to "Run Phaser Project" so that it automatically opens an internal browser in the eclipse window environment?

Elevated rights to run on Mint [Linux]

From Glenn Gartner via email:

...On Linux Mint (17.3 Cinnamon), elevated rights are required to run the editor. After a few attempts to run the SetExecPermission.sh script, I can now open the editor as a non-su, but the chains crash with:

pe_error_linux_mint_su_permissions

and javascript tooling crashes with:

pe_error_linux_mint_su_permissions_2

Any thoughts on getting this to work on Linux, as a non-su? I don't like running programs as su.

Thanks, and great work so far.

Check box when create canvas that called "Load on PreloadState"

(from user An Tn)

I have more suggest feature that: sometime I want to load all assets in one State called PreloadState, then I just need load once.
You can think about one check box when create canvas that called "Load on PreloadState" then "load.pack" assets will move to PreloadState.

Internal state of assets is not updated after an atlas texture change

Phaser Editor build an internal model of the assets textures and information.

When the texture atlas is changed, the assets internal state is not updated, so you can get wrong textures on the Assets explorer or Canvas scenes. Actually, the texture is updated but not the frame bounds in the atlas, so you will see the sprites with weird images.

A work around is to force a build when you add or remove images from the atlas:

  1. Change the atlas.
  2. In main menu, select Project > Clean... It opens a dialog like this:
    cleanprojects
  3. Press OK to clean (re-build) all the projects, or select the project you are working with.

With the above steps the internal model of the assets is updated so the sprites in the Assets view and the Canvas scenes of your project will be updated as well.

A shortcut to open the Clean dialog quickly is to type Ctrl+3 and clean, then ENTER. It uses the Quick Access field. Or you can open the preferences Main menu > Window > Preferences > General > Keys and look for the Clean command and assign a new key shortcut, like Ctrl+0, then when you want to clean the project just press Ctrl+0.

FeatureRequest: Change sprite name for sprite prefab instance.

here is what i'm doing

  1. Create new Sprite Prefab mySprite.canvas
  2. Create new Group Prefab myGroup
  3. Add 2 instances of mySprite to the canvas.
  4. I'd like to change sprite for 2d instance (command+T hot key which Change Sprite Texture)
  5. in popup window select another sprite.
  6. getting the error the texture of the prefab instance 'instance name' is read-only

@SeneEditor: Sprite > tint > hex color

Hello again,

just as I use it now. It would be practical if one could just paste in a hex value. Now it opens a system color window and I have to put in single rgb values.
Also, there is not option to just remove the tint again. Once you set it, it's impossible to remove it again.

Keep up the god work and nice sunday still.

Wrong sprites based on textures with the stripped whitespace

The scene editor is creating sprites with a wrong size if it is based on a texture atlas with frames with the white space stripped.

To reproduce the error, try with this texture with no whitespaces and create a tilemap with it:

texture-no-whitespaces.zip (generates wrong sprites)

elems

A workaround is to disable Strip Whitespace parameter in the atlas generator file elems.atlas.

texture-whitespaces.zip (generates good sprites)

elems

Note that maybe you have enabled to strip the white spaces but if your images do not have white spaces it will work.

field for name (in addition to variable name)

In the scene editor you can assign names to groups and sprites. But these are the variable names. If I loop through a group and want to check against a specific element and other cases, it would be helpful to have an assigned name.

So I'd find either an additional field helpful or the (var) name field would also act as a field for the (string) name.

And thanks for your reply to my other suggestions. It's great to see that you're already planing on implementing lots in the next release.

It's not possible to install new software

In a normal eclipse build it's possible to install new software from Help > Install New Software.
For example I would like to install EGit, but I can't.
This is an enhancement more than an issue.

Activation product fail !

I had purchase a lifetime license key for v1.3.0, but the license info losted after updated to v1.4.2.
"UnknownHostException: api.gumroad.com" error occurred when I reuse the key to activate.
please help !

tips: I'm in china,maybe the api.gumroad.com is blocked...How can I activate v1.4.2, waiting on line .

Enhancement: Dragging objects along an axis

At the moment I have to rearrange my scene (a river) and have to arrange everything tightly. So I basically have to drag everything along the x axis.

In Photoshop and Illustrator you can drag elements along an axis or scale proportionally when using the shift key along. Something similar in PhaserEditor could be helpful.

I again broke the canvas... could need some help

Well, I just pasted my atlas file over the existing and now I have this:

org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/Stoer/WebContent/assets/scenes/Scene1.canvas'.

Last time it was just a wrong name in the atlas xml file. But now I have no clue, how to recover that.

I also have no clue how to setup a backup strategy routine for phasereditor as well. By now I was copying my folder to another location and putting a date on it. But when I try to use one backed up folder. I get the same message.

[Linux] Editor doesn't start

Hello,

I have already tried to boot the editor with clearPersistedState and persistState=false but it won't start.
I've got this error on PhaserEditor 1.3.0:

Built-in Phaser version: 2.6.2
Build Phaser JSDoc 262
Building chains 619ms
Loaded org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor@45635ae1 2042
Attempt to unlock mutex that was not locked

and I've got this error on PhaseEditor 1.4.0 preview

Plugin.start phasereditor.lic...
Starting JavaFX runtime...done
Attempt to unlock mutex that was not locked

I'm using elementary OS Freya based on Ubuntu 14.04

@SceneEditor: arcade body bug or maybe only misconception?

I was using the arcade body on a sprite that has an edited anchor point. When editing the arcade body (to center it and make it smaller) that seems to not get into account.

I was wondering why there was a gap when colliding. By debugging the body I realized it is not layout like I've seen it in the SceneEditor. It surely is a phaser thing that you will have to take the changed anchor points into account. But it is irritating, when you don't see it like that in the editor.

I hope it was understandable. I was adjusting it now by trial and error. Which was okay but I was testing several other coding things before it dawned to me..

Add the user code part for the 'import/export' section

A user request via email:

Can you add the user code part for the 'import' section.
In other words, user code part for the first line of the canvas generated class.
I need to add import some files to the canvas class.

And I have one more request.
Please add 'export' option for the class definition.

Animation editor Feature

Hi.
Are you planning to build timeline visual animator tool for quick and easy tween or other sprite animations?
Thank you.

Checkbox on new Canvas file wizard to generate onLoad method

(from user An Tn)

I suggest feature that you can add when create new canvas file is have a check box (called "onLoad") that whether generate onLoad function at the end of create function or not,
something like this:

function Dice(aGame, aX, aY, aKey, aFrame) {
	....
	Phaser.Sprite.call(this, aGame, aX, aY, pKey, pFrame);
	....
	this.onLoad();
	
}

/* --- end generated code --- */
// -- user code here --
Dice.prototype.onLoad = function(){
	
};

This will be useful.

Fatal error (gdk_display_open)

In a GNOME3 environment (Arch + Ubuntu) a fatal error occurs in the bundled java runtime:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffa182812b7, pid=4443, tid=0x00007ffaa81b1700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x4e2b7]  gdk_display_open+0x57
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/cookiengineer/Downloads/PhaserEditor/hs_err_pid4443.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Any hints on what might cause the problem?

Move objects with keys

@ponderboy

Another thing very much appreciated, would be to move elements by arrow keys. Similar to Photoshop or others, it would be great to move them by pixels and Shift+Arrow for ten pixel steps.

Cannot add texture Atlas to Asset Pack file.

Selecting the Atlas alternative on "Add Asset" does nothing.

Manually adding an Atlas to the .json file adds it to the Asset Pack but it doesn't work adding another via the editor interface. Browse button doesn't work either for the atlasURL.

All other options seem to work just fine.

Current editor version is v1.4.2 running the included Phaser version v2.6.2

Autocomplete across scripts

Hello, @boniatillo-com! So far I'm loving Phaser Editor and it really is helping me in learning html5 game development. I don't know what I'd do without it. I am definitely considering purchasing it~

One problem I'm having though is the autocomplete won't work across other scripts in my projects.
Example:
a.js:

//Load b.js

game = new Phaser.Game()

b.js:
game. //no autocomplete shows :(

Is there a way to fix this?
If not please make this is a feature!

Thanks in advance

[Linux] After a second run it stops loading

Sometimes the editor stops loading in Linux.

We don't know the reason yet but the problem is related to restore the previous workbench state. When you close the editor it saves the state to the workspace. This state contains some information like the opened editors and views.

To get the editor to open, you should make it to load without restore this state, so you have two options:

  • Execute the editor with the -clearPersistedState option, to clear the state and start with a fresh workbench.
./PhaserEditor -clearPersistedState
  • Execute the editor with the -persistState false option. In this way the editor will not save the state when it is closed:
./PhaserEditor -persistState false

If you want to make this options by default, edit the PhaserEditor.ini file and add the following at the end:

persistState=false
clearPersistedState=true

We recommend to do both things, clear the state at the startup and disable the state saving at the closing.

Thanks to @samsstuff for report and try to fix this issue.

References: How can I prevent my workbench model from being saved on exit? https://wiki.eclipse.org/Eclipse4/RCP/FAQ

Offer alternative builds to zip (due to chmod)

On GNU/Linux systems the zip file will lead to users having trouble running Phaser.

Necessary steps:

  1. Build a README.txt that shows what VM exit code 13 means
  2. chmod +x ./PhaserEditor
  3. chmod +x ./jre/bin/java

Then people can execute the PhaserEditor by manually entering the command dump (having to modify all \n before, so it's pain to do). Afterwards another error occurs, will open a separate issue.

edit:// issue is fatal error in gdk_display_open: #6

Crash at startup when missing phaser bundle

Phaser Editor shows lot of errors if it is linked to a Phaser bundle that was deleted or renamed.

As a workaround, you have different options:

  • Put back the phaser bundle.
  • Start a new workspace and import the projects.
  • Delete the .metedata folder of the workspace (as is suggested in the below comment of @samstuff)
  • Fix the bundle preference yourself: in your workspace, open the file .metadata/.plugins/org.eclipse.core.runtime/.settings/phasereditor.inspect.core.prefs. And change the value of the property phasereditor.inspect.core.builtInPhaserVersion=false to true. Is simple.

Suggest other Color picker

Current color picker is cannot paste color style like this: "#ebedea". Please improve color picker to us can paste color code easier, may be use JFX color picker?

Ease of use to translate, rotate & scale

(from http://www.bluesaltgames.com developers email)

Ease of use to translate, rotate & scale. Right now if I want to scale an image I have to right click on it, go to object, then transform, then select it. Yes there’s keyboard shortcuts but these operations are incredibly common in building games with editors. Unity & Unreal have convenient to use buttons that are big and easy to click for developers & designers to use for those purposes on the top right of the editor. I recommend you do the same

suggest support text

if editor could add a text ,that will let me save a lot of time.
the text founction could could be less, could hava postion, size, anchor property.

I can't download phaser editor even after purchasing????

Hi I bought phaser editor because it looked great ,
wonderful features and all that but for some reason
I am forbidden to download it off your server what the heck?.

Id like a download link please for my purchase or a refund if their is no way
for me to get the software for a year, I can show you my license key if you like too.

I've seen the github link but not able to download anything that is useful
like an exe or application binary.

Automatic update to MacOS v1.4.2 bug

The automatic update to v1.4.2 is not working properly in MacOS, after the update the editor will restart repeatedly and will never open.

It seems to be a problem with the upgrade from Eclipse Neon to Eclipse Oxygen and a plugin registry cache cleaning is required.

This is the workaround: when the update is installed it asks for a restart, please, do not restart it, just close the editor and open it again manually, everything should work.

However, we recommend you to download a fresh version of the editor.

Duplicate sprites

@ponderboy

It'd be very helpful to be able to just duplicate sprites. And have them appear within the same group. At the moment I copy paste. But then I have to manually drag the sprite into the group. Or maybe Shift+V for pasting in the same group or something.

Linux starting issue still there

Hello Arian just thought I'd let you know the loading issue still is there where it hangs and never loads.
No big deal for me I just create my own script to load it but I still have to use -clearPersistedState to get it to load properly.
It's late so I didn't have time to fool around with it yet I just installed the dark theme into it (I use a dark theme in linux)and fooled around with creating a new project.
So far it is great and a ton of new toys to play with :)
Just thought I would let you know about the launch issue

To help out any linux users having the same issue here is a little bash script I wrote so you won't have this same issue.
Create a text file I named mine: loadNewPhaser.sh

in that file paste this:
#/bin/bash
/home/samstoy/PhaserEditor14preview/PhaserEditor -clearPersistedState
save it into the same folder where you put the editor
where the link is: /home/samstoy/PhaserEditor14preview/
change this to your folder where you put the phaser editor at in your directory.
right click on the file and go to preferences and then permissions and click the checkbox to make it executable.
You can then either load it through the terminal orrrrr the easy way, create a launcher on your panel in the command section add a link to the loadNewPhaser.sh file add a name if you want and add an icon if you want, I made my own.
It'll load from your panel this way, or create a desktop file in your .local/share/applications folder if you want it to show up in the normal menu
Something like this:
create another text file call it something like PhaserEditor.desktop
in it add something like this:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
GenericName=Phaser Editor
Exec=/home/samstoy/PhaserEditor14preview/loadNewPhaser.sh %f
Icon=/home/samstoy/phasereditor.png
Name=Phaser
Comment=Link to load the editor
Categories=Development;
StartupNotify=true
TryExec=Phaser

of course change it again to where you put the loadNewPhaser.sh file and change the icon localtion and whatever esle you need to, then save it, it should show up in your menu under the development.

I just create a launcher on the panel it is easier and I use the panel for most stuff.

Hope it helps some folks out.
Remember I use manjaro arch based with xfce so distros and de's might differ, but most work pretty much the same in linux.

Once I get some sleep and get some more time to play with it more I'll let you know of any more bugs that arise.
But so far that is the only one.
Take care Arian your doing a great job.
Sam

Enhancements for SceneEditor

I don't know exactly where to leave my considerations.

I'm happy I found Phaser Editor, because it'll help me creating scenes more intuitive than it would have been with just code. Mighty Editor is not continued and Tiled is still not able to work with just pictures or at least Phaser does not integrate with it.

Anyway, while now using it I found a few things more then necessary. My Canvas Scene broke totally when changing an atlas file outside. It seems the whole atlas update progress and changing files after already adding them to a scene is still very beta.
I would love to be able to change sprites later on. Select a sprite and be able to change its texture or image via the right mouse button menu for example or by just selecting a different one in the asset window. This way, if something went wrong or a file is missing or a texture was deleted in an atlas file, you could just exchange it, while keeping all it's properties. By now I have to manually delete the sprite drag a new one on the canvas and lay it out etc.

Another thing very much appreciated, would be to move elements by arrow keys. Similar to Photoshop or others, it would be great to move them by pixels and Shift+Arrow for ten pixel steps.

It'd be very helpful to be able to just duplicate sprites. And have them appear within the same group. At the moment I copy paste. But then I have to manually drag the sprite into the group. Or maybe Shift+V for pasting in the same group or something.

Not being able to lock layers or sprites is also a bit frustrating.

It'd be awesome if there would also be a field to change the alpha of sprites. (I need to create transparent boundaries for physics.)

Selecting more then one sprite and being able to scale and rotate them would be very helpful as well.

That's a lot of things I know and I'm not expecting to have everything within the next update. But I'm sure it would gracefully improve the overall usability of the scene editor.

Change the Highlightcolor in Chains-Window

I've been looking for hours...
Is there a solution to change the syntax highlight color in the chains-window?
All settings under "Window->Preferences" seem to have no influence on this window:
Also the windows 10 - colorsettings have no influence.

image

Your help would be great.

Scene Editor and Groups

Hello again, @boniatillo-com , you'll probably be seeing me here a lot now! 😀

So far, the scene editor has proved to be very valuable as I'm creating large worlds with lots of objects, and this could easily result in 300+ lines of code. I couldn't imagine doing this manually. (I could also make some level editor but I'm too lazy) So far I've been having to use regex to make the generated code cleaner and fit to my tastes.

One problem I'm having is copying & pasting multiple sprite selections. They do not save the group they were in before. Without this feature, this leaves very tedious work.

Thank you~

Couldn't activate v1.3.0

I always get the error "ConnectException: Connection timed out: connect" when I am trying to activate Phaser Editor 1.3.0, while my internet connection is good.

Run configurations

(from @samsstuff)

...alright if you try and use the run menu there is nothing to choose to run it with (I never use that anyhow) but the globe still works fine which is what I always use anyhow, just in case anyone ask about that, it pops up external tools with nothing but you can config it to load anything you want in case anyone wants to pick a different browser or anything else.

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.