Golden Sun Hacking Community
December 06, 2019, 01:34:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: GS HTML 5  (Read 7481 times)
0 Members and 1 Guest are viewing this topic.
jjppof
Modafoca

Regular Member
**

Coins: 0
Offline Offline

Gender: Male
Posts: 107

« on: September 23, 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
Demo: https://jjppof.github.io/goldensun_html5/index
Logged

View Profile WWW
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 0
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2453

« Reply #1 on: September 25, 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.)
« Last Edit: September 25, 2018, 03:52:31 AM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
Luna_blade
The last member of the Luna clan
Luna Clan

Great Member
*

Coins: 0
Offline Offline

I am: Timeless. As in, i don't have much free time.
Posts: 543

« Reply #2 on: September 25, 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.
Logged

"Hear the sounds and melodies
Of rilets flowing down
They're the verlasting songs
Whispering all the time
As a warning that behind some rocks
There's a rigid grap even
Oreads fear the tread"
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 0
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2453

« Reply #3 on: September 25, 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?
« Last Edit: September 25, 2018, 08:00:27 PM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
jjppof
Modafoca

Regular Member
**

Coins: 0
Offline Offline

Gender: Male
Posts: 107

« Reply #4 on: September 25, 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.
Logged

View Profile WWW
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
December 04, 2019, 11:48:57 AM
Fox: (Uh... Ignore "Love" at the beginning... I think I started to say it in a different way, then changed my mind.)
December 04, 2019, 11:47:50 AM
Fox: Love gsiconcompressor has been updated... Mainly an attempt to make icon editing a bit more straight-forward than ever before. Although, the coding wasn't exactly that straight-forward.
November 14, 2019, 01:50:02 PM
Fox: So like... a layers offset might normally be located at +0xC, but in Tennis, it is at +0x10)
November 14, 2019, 01:48:51 PM
Fox: (Talking about the data in map header thingy.)
November 14, 2019, 01:48:10 PM
Fox: So took a look at Tennis.... Seems Atrius's editor displays all maps incorrectly because he forgot that some stuff was offsetted by 4 (You know with everything from layer offsets and files/etc.)  Fix that, and it seems to display properly. Hm.
November 14, 2019, 06:18:29 AM
Fox: That is a quote I found somewhere. How amusing. xD
November 14, 2019, 06:18:06 AM
Fox: only canadians give up dont be a canadian
November 11, 2019, 03:27:02 AM
Salanewt: Especially since there might be a v0.5.1.1 in the near future, if any bugs are found by people playing the demo.
November 11, 2019, 03:26:38 AM
Salanewt: Oh yeah, so for people who aren't aware; v0.5.1 of the AI Overhaul is available on the Discord, but I'm delaying the creation of a downloads page + topic until I finish the demo.
November 02, 2019, 12:05:31 PM
Fox: And yeah, there's a topic for the Discord. in News & Announcements (http://forum.goldensunhacking.net/index.php?topic=2831.0)
November 02, 2019, 11:55:00 AM
Fox: Went to go study some German a little earlier. (Using duolingo to give it a try.) ... And. Huh. German capitalizes all nouns? (Not necessarily pronouns, though.)
November 01, 2019, 07:49:25 AM
thenightsshadow: Didn't realize there was a Discord at all.
October 31, 2019, 07:22:02 AM
Fox: (Which I guess not having Special badges in inventory was by purpose.... So I'll ifnore that bit. Just whats with the dup Halloween badge in inv?)
October 31, 2019, 07:18:26 AM
Fox: Question about badges = Why do I have two of the same Halloween badge in my inventory... but not on my profile? And by two, I mean the Honk badge is not there.
October 31, 2019, 06:56:26 AM
Fox: Does tns want to join the most active part of GSHC? - Its Discord? :D  And welcome back!
October 31, 2019, 06:52:17 AM
Fox: (Ofcourse it would be capitalized if it were the name of a system, and anytime that system would be referenced... but I'm more going with why we *never* see Psynergy and Djinni not capitalized.)
October 31, 2019, 06:49:58 AM
thenightsshadow: Yeah, just kinda got an email out of nowhere and it reminded me.
October 31, 2019, 06:42:40 AM
Fox: and main reason I said "not intended to become part of English" ... was because I thought of words like "animals"... and they can technically still be lowercase at times.
October 31, 2019, 06:41:17 AM
Fox: group/type/thing/whatever
October 31, 2019, 06:38:54 AM
Fox: Not saying it is exacly that... but it is a thought, at least.

Affiliates
Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 22 queries.