Golden Sun Hacking Community

General Hacking => Project List => Topic started by: jjppof on 23, September, 2018, 02:59:33 PM



Title: GS HTML 5
Post by: jjppof on 23, September, 2018, 02:59:33 PM
Almost two years ago, I started building an engine in HTML5. I'm sharing here the source of what is done.
These last days, I tried to refactor the code to make it somewhat readable.
The project is on github, feel free to fork and test things. A demo is available.

Repo: https://github.com/jjppof/goldensun_html5 (https://github.com/jjppof/goldensun_html5)
Demo: https://jjppof.github.io/goldensun_html5/index (https://jjppof.github.io/goldensun_html5/index)


Title: Re: GS HTML 5
Post by: Daddy Poi's Oily Gorillas on 25, September, 2018, 02:50:13 AM
Oh!! Good job.
One problem I see is that if you press "2" or "3", and then click for full screen... when you exit full screen things look bad.
(I am using Chrome.)

I could probably look at your code and fix that, though.
Not sure how.
By game testing, it looks like it is assuming "1" layout for map resolution and size, but then 2/3 for everything else (Including screen_x/screen_y positions of map.... but readjusted to fit for 1's resolution.)
Maybe setScale again after exiting full screen?



I have one suggestion = That you could add a scale that fills the browser. (Might be more difficult, not sure.)


Title: Re: GS HTML 5
Post by: Luna_blade on 25, September, 2018, 12:09:56 PM
 :happy: This is really nice.
And here I was thinking every engine project died.
You were also the person that created the RPGMaker engine back then right?

The demo works well for me and this looks very promising.
Really good that you finished the walking and battle screen first. I hope you start making the overworld interactables (pillars and crates etc)
next. The only concrete feedback I have right now would be about the walking and collision. Walking seems just a bit too slow and the collision is still janky, likely because you started of with non-square collision detection as a start.

I also look forward to contributing on this project. I have very little free time, but I should be able to refactor things here and there.
If you like I can eventually help you make the project very maintainable.


Title: Re: GS HTML 5
Post by: Daddy Poi's Oily Gorillas on 25, September, 2018, 07:55:53 PM
Yeah. Collision map doesn't have to be complicated. = I can see one 32-bit per tile. (Basically four bytes for tile type and the three heights.)
GS does a list of those, and then 8 bits a tile as indexes to the 32-bit data, but I'm saying if you went this way, you can do my suggestion instead, and skip the extra table. We don't need to worry with compressing things down. (Unless you want to.)
I would also like to contribute as well.


I wonder if Luna can make gsmagic "very maintainable?" Hm?


Title: Re: GS HTML 5
Post by: jjppof on 25, September, 2018, 11:51:04 PM
You can contribute to the repository freely. Just give your profiles, then I can add you as collaborators.
I really want to make it public, so anyone can help and give ideas to improve.