Coder Social home page Coder Social logo

Comments (3)

matiwinnetou avatar matiwinnetou commented on August 19, 2024

I would have even more general question that I would like to add.

I think we have to be careful, WorldBounds probably makes sense in certain apps (where there is a territory different than game's window). I can imagine a class of very simple games that do not need any WorldBounds are exactly the same as engi.Width() and engi.Height(). Therefore in my humble opinion these things should always be pluggable but not on by default. Camera falls into the same category. Most simple game I am writing - Galaxian doesn't care about camera. Pong needs no camera, etc.

When there is a complexity even for most simple games it is harder for people to use the engine because they have to learn more than they should.

Now there may be a difference in thinking between us or I am simply terribly missing the point, which I am happy to know your opinions.

@paked @EtienneBruines

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

I do get your point, @matiwinnetou. It might even be related to #65, in a way.

I think I know how I can make this work. The current HUDGround PriorityLevel uses a Shader which ignores the Camera completely.

The user could set the default either to what we use now, or to "handle everything as HUDGround", which would ignore all Camera settings. It would still use the PriorityLevel to set the order in which to draw things, though.

Thoughts on how we should name this 'setting'? Or if we should do this at all? @paked @matiwinnetou

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

I have given this some thought.

With new patches coming up, that allow for 'hovering' events, there should be no difference between HUDGround and any other PriorityLevel. Default zoom level is 1, which changes nothing. And default location of the camera, is also set to center the window. So nothing to change there.

Furthermore, with recent changes, this 'issue' even got addressed (unnoticed); WorldBounds.Max is now set after Preload, but before New(*World)

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.