Coder Social home page Coder Social logo

JavaScript Backend about engo HOT 9 CLOSED

paked avatar paked commented on August 19, 2024
JavaScript Backend

from engo.

Comments (9)

EtienneBruines avatar EtienneBruines commented on August 19, 2024

Giving it a shot now.

from engo.

paked avatar paked commented on August 19, 2024

:+1;

On Tue, 5 Jan 2016 2:18 am Etienne Bruines [email protected] wrote:

Giving it a shot now.


Reply to this email directly or view it on GitHub
#71 (comment).

from engo.

pyrossh avatar pyrossh commented on August 19, 2024

Yeah +1. I was wondering would this run as good as phaserjs? I was looking into using phaserjs but then not much of a javascript fan and prefer go instead so I thought of writing a wrapper for phaserjs for gopherjs.

from engo.

paked avatar paked commented on August 19, 2024

@pyros2097 you definitely could. However, in the past we have just used raw WebGL to make the backend work.

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

At a stage where I got most of the stuff to work at the browser. Currently wrestling with the shaders (versions, webgl, that kinda stuff).

Audio is disabled in the browser (same reason as Windows), will be fixable though.

AddFromDir is also not available, because we need to use direct URLs, and that's kinda hard to do with AddFromDir.

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

Everything I have right now is at the gopherjs branch.

Current state:

  • Compiles
  • AddFromDir not supported
  • AudioSystem not supported
  • CameraSystem not supported
  • Does not visually do anything (so headless pong should work, but real pong will show a blank screen)

Probably something wrong with the shaders or something - I'm not sure what the problem is, and I haven't been able to pin-point it.

I might start working on this again in a few weeks, but until then, feel free to pick it up where I left. (anyone)

from engo.

pyrossh avatar pyrossh commented on August 19, 2024

I also did some refactoring to make the gopherjs backend work initially then dropped it. My plan was to remove using glfw directly and use this https://github.com/goxjs/gl and this https://github.com/goxjs/glfw instead. I did most of of it and got the code compiling but got lost in shaders and some openGL calls not being present in webGL.

from engo.

paked avatar paked commented on August 19, 2024

@EtienneBruines I thought about how we could do AddFromDir: go generate. Basically we have a go generate script which is ran and builds an index of all the files in the "assets" directory (it would be configurable, obviously).

Then when AddFromDir is ran it loops through the file index as opposed to the actual "file system".

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

Closing because we have #256 and #260, and @otraore fixed the core part.

from engo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.