Golden Sun Hacking Community
03, June, 2020, 12:23:43 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The last working version of the classic TLA Editor is Teawater's unofficial "mapeditor" draft.
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: GS HTML 5  (Read 9741 times)
0 Members and 1 Guest are viewing this topic.
jjppof
Modafoca

Regular Member
**

Coins: 0
Offline Offline

Gender: Male
Posts: 107

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

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

Prodigy
*

Coins: 1002
Offline Offline

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

« Reply #1 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.)
« Last Edit: 25, September, 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...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?
View Profile
Luna_blade
The last member of the Luna clan
Luna Clan

Great Member
*

Coins: 28
Offline Offline

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

« Reply #2 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.
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
Daddy Poi
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

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

« Reply #3 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?
« Last Edit: 25, September, 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...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?
View Profile
jjppof
Modafoca

Regular Member
**

Coins: 0
Offline Offline

Gender: Male
Posts: 107

« Reply #4 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.
Logged

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

Chatbox
27, April, 2020, 07:54:10 PM
Daddy Poi: I'm having a thought. So I know Atrius's editor is slow at saving sprites.... So I've been thinking.   I am considering another console program.  This time, for importing and exporting sprites/animations. Image files (for sprites), binary files (for animation data), and maybe binary or text files for Settings. Would certainly be cool if it works out. - Console programs are fun, when you can (at least temporarily) cheat out making a full interface editor for them. =P
25, April, 2020, 10:42:07 PM
Daddy Poi: Tried to list those in order of importance, but anyway....
25, April, 2020, 10:37:59 PM
Daddy Poi: GSHC, GS Speedrunning, /r/Golden Sun, GS United Nations, ToK.  Sixth one is border-line I'm not sure.
25, April, 2020, 08:00:21 PM
Daddy Poi: (low as in <100)
25, April, 2020, 08:00:04 PM
Daddy Poi: So while there are quite a few GS Communities out there. There are only up to maybe ~6 Discords worth even the consideration of joining, I think. Most of the rest of them have a fairly low member count. (Of which I can tell?)
14, April, 2020, 10:49:35 AM
Daddy Poi: The Essential Age could be what it stands for?
13, April, 2020, 05:23:32 PM
Misery: Tea editor... that's a cute name for it
01, April, 2020, 02:42:50 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:48 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:09 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
01, April, 2020, 02:42:06 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
31, March, 2020, 07:18:29 PM
Salanewt: Sure thing!
31, March, 2020, 03:38:30 PM
JupiterDjinn: Can I have a question answered?
31, March, 2020, 03:38:27 PM
JupiterDjinn: Can I have a question answered?
28, March, 2020, 12:50:15 AM
Salanewt: I want to shrink it down in size later, but yup!
28, March, 2020, 12:50:13 AM
Salanewt: I want to shrink it down in size later, but yup!
26, March, 2020, 03:24:45 PM
Daddy Poi: The news box is back? :D
19, March, 2020, 05:59:16 PM
Salanewt: Nice work hiding the searchbots Atrius!
19, March, 2020, 04:23:34 PM
Salanewt: I was wondering when I said that stuff! May need to work it out with Kain.
19, March, 2020, 07:03:05 AM
Daddy Poi: (The simplest being to not accept char IDs pass 255, I think.)
19, March, 2020, 05:33:15 AM
Daddy Poi: Heheh.... I'm just testing. You pretty much gave it away. Hahah. It seems to look fairly convincing, but I'm sure there's an easy solution to preventing it.
19, March, 2020, 05:28:50 AM
Atrius: Whelp, there it goes... Just what I didn't want.  Have fun with that I guess...   
19, March, 2020, 05:20:25 AM
Daddy Poi: So like. Replace the "e" with another "e"? Alright. Gotcha.
19, March, 2020, 05:04:41 AM
Daddy Poi: Good work.
19, March, 2020, 04:44:10 AM
Atrius: Nah, any member could change their name to what I did, there's a trick to it.  I just fixed it so that now the Cbox will use your new name if you change it though, so... That part of the problem is fixed.
19, March, 2020, 04:41:53 AM
Daddy Poi: For which? It may be that normal users can't change their names to used names, but admins can?
19, March, 2020, 04:39:57 AM
Atrius: Sorry if the Cbox keeps breaking, I'm trying to make that be less of a thing.
19, March, 2020, 04:02:04 AM
Daddy Poi: Looks like ID Fraud. You're under arrest. :D  Oh wait.
19, March, 2020, 03:57:56 AM
Atrius: Yup, that's a thing.
19, March, 2020, 03:57:08 AM
Atrius: Just testing something, for science.

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