Golden Sun Hacking Community
May 24, 2019, 01:12:39 PM *
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 3145 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: 2445

« 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: 544

« 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: 2445

« 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
May 22, 2019, 09:32:43 PM
radzo73: is there a patch that skips dialogue? Interested in making a TAS...
May 12, 2019, 12:15:01 PM
raijinken: Hey there guys. Been a long time. But has anyone found out how to make a hard mode of Dark Dawn?
April 18, 2019, 01:18:08 AM
Fox: Thinking.... meme topics.....    Isaac: Stop calling me a sack! Also, don't call me sick either!
April 03, 2019, 08:24:45 PM
Fox: Really don't see the point in the Crystal or even the crown conversation, but whatever... (I mean, if you want to do it, then just do it. - Doesn't need to be at GSHC, because there are no longer clan leaders at GSHC.)
April 03, 2019, 03:59:33 AM
squizzy44: We all need to band together to take down Crystal.
April 02, 2019, 12:00:09 AM
Fox: Your clan?  You can't edit it manually, so you have to tell an admin so they can do it. There's actually a topic for when you pick a clan... but uhh... I've no idea if an admin will see it via that, though. (Kain will certainly see id you ping him on GSHC Discord.)
April 01, 2019, 05:28:42 PM
squizzy44: How do I change my position on my profile? I haven't used the site in nearly 10 years...
March 31, 2019, 10:10:15 PM
Fox: I still wonder if a Tret glitch for speedrunning exists... I don't think I looked into if the PC was on one of the other layers. (Which basically the second layer edits @-0x200 instead of @-0x100... in the event you are going up (y-axis) out of bounds.) Hm.
March 31, 2019, 06:18:43 PM
Fox: Not me.
March 31, 2019, 02:59:38 PM
Salanewt: I don't know of any, although if there were then we'd have to send it as a patch file. I think someone is working on it at least!
March 29, 2019, 07:51:48 PM
MaxiPower: no such thing exists
March 26, 2019, 03:38:42 AM
reeZ931: I would really appreciate it 
March 26, 2019, 02:39:38 AM
reeZ931: Anyone have a golden sun rom where you can play as saturos and menardi properly? 
March 25, 2019, 09:31:15 PM
Fox: It would explain why everyone leaves so quickly after taking our bananas.
March 24, 2019, 10:36:10 PM
Fox: Wouldn't bananas increase agility the more you have? Like... Diddy Kong Racing reference.
March 22, 2019, 11:19:11 PM
Average Wind Seer: Banana: Restores 50PP to user. Restores 40PP to Isaac if Jenna uses this item.
March 22, 2019, 09:57:53 PM
Salanewt: Lol. I mean, I am thinking of adding a banana item to GS so...
March 22, 2019, 09:48:42 PM
Fox: Ooh! Sala's back!  I think he wants a banana.  All this banana talk must have attracted him.
March 22, 2019, 08:56:52 PM
Fox: :O I just notice I have no Coins to buy bananas with! (You know, the coins feature this forum has.)
March 04, 2019, 08:45:44 PM
Fox: Aw.  I kind of want to suggest dressing up in a banana costume.  No wait, that's a bad idea.

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.096 seconds with 22 queries.