Giter Site home page Giter Site logo

jjppof / goldensun_html5 Goto Github PK

View Code? Open in Web Editor NEW
164.0 8.0 37.0 53.2 MB

An online Golden Sun Engine entirely built in HTML5 with Phaser 2. Check https://gshtml5.org/

Home Page: https://gshtml5.org/

License: MIT License

JavaScript 63.14% HTML 0.17% CSS 0.16% TypeScript 36.50% Shell 0.01% Python 0.03%
game game-2d golden-sun phaserjs game-engine gshtml5 hacktoberfest

goldensun_html5's People

Contributors

abhishek7997 avatar bearda59 avatar bfcferreira avatar bsinky avatar dependabot[bot] avatar dyrati avatar fla-t avatar gocario avatar immortaleeb avatar jjppof avatar milesbhuff avatar mrbushidobrownn avatar samuelphang avatar sdtv9507 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

goldensun_html5's Issues

Keep avatar open while in dialog.

While using the DialogManager, the avatar keeps opening and closing between dialog windows. In the game, this avatar keeps open throughout the dialog.

Create a Summon class and a summon_list to avoid using summon_db.

Every time we need summon data, we access it directly from GoldenSun.dbs.summons_db. Even though it's working, would be nice to have a Summon class where its instances would be listed inside GoldenSun.info. In the future, when adding summons dynamically, this new Summon class will be helpful.

Growth

the E key only casts growth if Isaac has the psynergy

Screenshots in the README?

I think people will be more interested in testing this neat re-implementation and maybe collaborate with some code if you show the current state of this reimplementation in the README.

Hi, jippof, please take a look

hi, jjppof, ( I do not know if you can see this message, if you could, please reply to me when you have a chance)

first, I would like to appreciate people like you to make this GS engine, although based on our Demo, there still plenty that we could do. A bit about me, I was one of the fan of our GS, and after played the GS Generation 3, I felt the story leftover so much to tell us. And personally, I enjoyed play gen 1st and 2nd much more then gen 3nd.
For me, the most fancinating part of GS is the mechanism of PSYCHIC AND DINJIN, I was always look for if there is a game like it, but so far, no luck. So I started to wondering if it is possible that we could do something to rebuild even partially of the GS ( Again, thanks for making the GS engine, it is amazing.)
I was currently working on Computer science degree on a 4-year school ( I did have some prior programming experience for c and c++, but very little for HTML5 and JavaScript)

so I download the HTML5 ( again, not so familiar with it), so I ran it, it gave a web address, when I loaded it in my Chrome, it gave me exactly same web page like the Demo.
With all my respect, Is that all we have currently? ( I know you are not going to make the animation or map, but is it possible for people who interested at this to make it by ourselves by making use of what you provided here? If so, where should we get started? Do we need to have some JavaScript in order to do it? // if so, let me know, I could self-taught some JavaScript during my leisure time.

Some windows not showing in a particular circumstance

Some specific windows are not showing in this circumstance. Shop example:

  • Open the shop and choose Buy.
  • Wait for the Buy menu appear.
  • Press X followed by Z as fast as possible to return and back again to the Buy menu.
  • Wait for the Buy menu appear.
  • The description window won't show.

miss_shop

Something similar happens to Battle Menu:

miss_battle

But before migrating to the new menu/buttons system, it used to work:

battle_ok

Got to this old commit 996957d for reference.

Horizontal Menu squeezing

Shop horizontal menu is squeezing when doing the following:

  • Open the shop and choose Buy.
  • Wait for the Buy menu appear.
  • Press X followed by Z as fast as possible to return and back again to the Buy menu.
  • Wait for the Buy menu appear.
  • Press X to return.

horizontal_shop

(Please note that the description window is also hiding, but it's another issue).

This behavior does not happen on the Main Menu and Battle Menu:

horizontal_main

horizontal_battle

Phaser 3!!!

Hello @jjppof ! I absolutely LOVE this! PLEASE keep up the GREAT work! <3

Second, PLEASE make it Phaser 3!

Some bugs i found.

When battling cant flee or watch stats also when i was in battle it soft locked. (Couldn't skip the text)
When going behind the shop the shadow goes in front of you.
Move soft locked the game. And the fps isn't stable.
I don't know if any of these helped but there you go!

Jitter

It seems to be a subpixel precision problem.

Current configs:

//index.js
game.antialias = false;
game.stage.smoothed = false;
game.camera.roundPx = true; //floor rounding

//initializers/hero_control.js
game.camera.follow(data.hero, Phaser.Camera.FOLLOW_LOCKON, numbers.CAMERA_LERP, numbers.CAMERA_LERP);

follow reference.
roundPx reference.

Jitter still happens when manually updating the camera:

//disabling follow and roundPx
const camera_pos_x = Math.floor(data.hero.body.x - (numbers.GAME_WIDTH >> 1));
const camera_pos_y = Math.floor(data.hero.body.y - (numbers.GAME_HEIGHT >> 1));
game.camera.setPosition(camera_pos_x, camera_pos_y);

Setting game.camera.roundPx and game.renderer.renderSession.roundPixels to false solves the jitter for the hero and map, but adds jitter to the NPCs.

* @method Phaser.Physics.P2.Body#postUpdate and * @method PIXI.WebGLSpriteBatch#render can be edited to set sprite position.

Improve TS types definition.

Typescript migration was done with minimal resources to doesn't make the project crash. Many improvements can be done in order to have better typing like defining types for functions arguments and better protecting attributes ( use of private, protected and public), for instance.

Battle freezing

The battles worked fine for me the first few times I tried, and now it just freezes when it reaches Sheba's turn (she's the first to attack). It says she used whatever it is you tell her to do (I used Attack) but then the game just soft locks and doesn't go anywhere. The idle animations still play for everyone though.

Face direction different from move direction

Somehow... I can be facing down/left while moving downward but not leftward... kinda hard to do.
And you can face left move downward too. (If you use up and down arrows instead of left or right and down arrows.)
In general, whichever key you push first is the direction you go in, and the second key (of other three arrows) affects direction you face.

movementglitch

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.