GithubHelp home page GithubHelp logo

bfattori / therenderengine Goto Github PK

View Code? Open in Web Editor NEW
162.0 162.0 32.0 7.31 MB

Currently rewriting in ES6 and removing a lot of old polyfills

Home Page: http://bfattori.github.com/TheRenderEngine

License: MIT License

HTML 0.98% JavaScript 98.90% CSS 0.12% Shell 0.01%

therenderengine's People

Contributors

bfattori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

therenderengine's Issues

Porblems with tools

I would like to use the sprite tool, but i can't make it work, the top menu don't load, and when i try to acces it, it dissapear, i need to install anything? i'm running it on an windows 7 OS, and the files are inside Wamp server, i tryed to run the .bat file, but nothing happens... Some clue?

Using R.components.input.Mouse breaks in Firefox (OK in Chrome)

When I use the mouse component in FireFox 4.01 it breaks with the following being logged to the console:
x is undefined
[Break On This Error] if (x.length && x.splice && x.shift) {

At source point2d.js(line 106)

Happens also in the Physics demo.

Using latest 2.0 from git.

Send mouse-events to clicked Object only?

Hi,
I was wondering if it is intentional, that the mouseDown and mouseUp events are sent to all HostObjects in the scenegraph (assuming, there are multiple of them, which contain a MouseInputCompent). I somehow expected, that a HostObject would only receive mouseDown and mouseUp events, if they are happening in the HostObject's bounding box. This way, I wouldn't have to check for the event's position and compare it to my bounding box, every time I receive a mouseDown/Up event.
But maybe there are good reasons to implement it the way you did?

It should be no problem to change this behaviour, as the bounding box is already used to check, whether mouseOver events should be sent.

Mouse event positions are relative to the browser window

Hi,
I noticed, that the event position of mouse events is the same as for the events sent by the browser itself. So they are relative to the browser's window. That leads to problems, when I want to embed the game's render context into an HTML page, and the context is not positioned in the top left corner (f. ex. because it's preceded by other HTML-elements). As the event's position is not relative to the games top left corner, I may get wrong or no behaviour, when clicking on the canvas.
I think it should be possible to transform the position of the browser's event, before propagating it to the HostObject's event handler.

If you agree, I could look into this and send you a pull request, once I'm done. If you want ;-)

Touch Input demo incomplete?

Is the touch input demo incomplete, or am I that overtired and just not seeing where the touch input handlers are implemented?

Any way to crank up the error reporting?

Once I found the typo in the R.Engine.define for Tutorial3, and my attempts to get Tutorial3 working, it made me wonder if I would be able to crank up the error reporting in the console log.

Is this possible?

can

app.version=2.0.0.10
build.version=v2.0.0.10 beta
build.date=7/20/2011
client=Google Chrome 11.0.672.2

cant

app.version=2.0.0.10
build.version=v2.0.0.10 beta
build.date=7/20/2011
client=Google Chrome 11.0.672.2

XMLLoader

I am trying to use the XMLLoader to load XML. I can load the XML, but I am not sure how to iterate through my XML using this object. I notice that the load method for XMLLoader has a third parameter of doc

"[Object] doc - The document that was loaded"

How is this used? Something like this?

this.xmlLoader = XMLLoader.create();

var obj = new Object();
this.xmlLoader.load("NormalXML", this.getFilePath("resources/plist/Normal.xml"), obj);

And should I now be able to access my XML via this.obj? Or do I need to access the XML through the XMLLoader object (ex. this.xmlLoader.getXML('NormalXML'))?

Thanks,
Alex K

Attempts to work with the code tips and the tutorials

I'm working on Mac OS X and switching between Firefox 3.6.16 and Chrome 10.0.648.205.

Whenever I try to run the tutorials I'm getting various errors. Not sure if other browsers are getting these, but here's what I get:

Steps to reproduce:
* go to the base directory and start up jibble with run.bat
* In Chrome, go to http://localhost:8010/tutorials/tutorial2/
* In the console, you should see the following errors:

GET http://localhost:8010/tutorials/tutorial2/game.config 404 (File Not Found)
GET http://localhost:8010/tutorials/tutorial2/game_chrome.config 404 (File Not Found)
GET http://localhost:8010/tutorials/tutorial2/game_chrome_MacIntel.config 404 (File Not Found)
math2d.js:219 Uncaught ReferenceError: Math2 is not defined

I'll dig in and see if I can find why Math2 is not defined, but just an FYI because if I read the commit messages of the tutorials correctly, I believe at least Tutorial2 should work.

report: map can't be dragged after switching tab

app.version=2.0.0.10
build.version=v2.0.0.10 beta
build.date=7/20/2011
client=Google Chrome 11.0.672.2
description=while testing the isometric demo, switching browser tabs will cause losing the mouse control.

Minor typo in Tutorial 3

In general I'll submit a pull request, but this one is pretty straight forward:

game.js in Tutorial three looks like it has a copy-paste error. The third line should probably read:

// Load all required engine components
R.Engine.define({
"class": "Tutorial3",

not Tutorial2.

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.