Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PWA assets and Fix bugs add Touch support (dark-reign.net distro) #3

Open
wants to merge 76 commits into
base: master
Choose a base branch
from

Conversation

hthetiot
Copy link

@hthetiot hthetiot commented Jun 15, 2024

Build available on https://dark-reign.net

Announcement and public credit to @qmegas
https://x.com/hthetiot/status/1802080071630663970?t=srFIZInbRTC-OYUgjIoT8Q&s=19

Of course I can do separately multiple push request for more easy review, this is one is a mean 600 lines of minor fixes and assets.

This main PR is a way to share changes made from my stable master to be visible and credits the project as your work initilaly and primarily and dark-net.net is a small contribution compare to your work, like ubuntu is to debian ;)

Partial Change logs (see commits msg for details):

  • Add video skip
  • Add game menu restart game
  • Add game menu pause game
  • Add game menu quit game
  • Add game menu pause music
  • Add game menu toggle full-screen
  • update jquery and howler
  • Add touch event support
  • Fix video autoplay error on menu intro
  • fix text rendering
  • fix layerX/Y vs offsetX/Y
  • Add PWA manifest.json
  • Add music to mp3 format and off support detection
  • Add mp4 video support
  • Add scaling of UI on all screen using new game-shell wrapper
  • Update imperial level 1 to have more units demoed
  • fix toggle state action
  • partially fix bridge missing "clr" resource
  • fix hotpoint tools

hthetiot added 30 commits June 15, 2024 03:26
…ng getImageData are faster with the willReadFrequently attribute set to true.
@qmegas
Copy link
Owner

qmegas commented Jun 16, 2024

Not sure if it's a right way to keep both ogg and mp3 files. Imo it should be only one format.

@hthetiot hthetiot changed the title Add PWA assets and Fix Touch support Add PWA assets and Fix Touch support (dark-reign.net distro) Jun 16, 2024
@hthetiot
Copy link
Author

hthetiot commented Jun 16, 2024

Gor this error during play today:

mouse.js:347 Uncaught TypeError: game.objects[game.selected_objects[i]].orderHarvest is not a function
at Object.selectionStop (mouse.js:347:50)
at HTMLCanvasElement. (interface.js:280:18)
at HTMLCanvasElement.dispatch (jquery.min.js:2:40035)
at v.handle (jquery.min.js:2:38006)

@hthetiot
Copy link
Author

hthetiot commented Jun 16, 2024

Not sure if it's a right way to keep both ogg and mp3 files. Imo it should be only one format.

Hello @qmegas Nice to meet you.
I agree but Safari does not like ogg and webm.

Thank you for replying, Sorry doe spam cause doing lost of stuff now ahah.
I'm doing an hackathon that why.
Thank you for your work and making it open source.

Have you played on dark-reign.net your creation yet ?

@hthetiot
Copy link
Author

Capture of UI updates in this PR for Review
Screenshot_20240616_210717_Chrome
Screenshot_20240616_210722_Chrome
Screenshot_20240616_210725_Chrome

@qmegas
Copy link
Owner

qmegas commented Jun 16, 2024

@hthetiot

I agree but Safari does not like ogg and webm

Imo, cross-browsing support is the last thing which should be done.

Have you played on dark-reign.net your creation yet ?

Yep, played a little. But it's not really playable yet, my last commit 10 years ago left the project in unfinished state. Had no time to implement AI and other important things (and still have no time).

@siredmar
Copy link

siredmar commented Jun 17, 2024

@hthetiot thanks for putting effort in this! Do you plan to pick up the great work of @qmegas
and continue it?

@hthetiot hthetiot changed the title Add PWA assets and Fix Touch support (dark-reign.net distro) Add PWA assets and Fix bugs add Touch support (dark-reign.net distro) Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants