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

2d mode #86

Open
juliangruber opened this issue Jul 29, 2013 · 8 comments
Open

2d mode #86

juliangruber opened this issue Jul 29, 2013 · 8 comments

Comments

@juliangruber
Copy link

would it be a smart thing to code a 2d mode plugin for voxel and use that to create a 2d game while still using the awesome voxel ecosystem?

Or is that a huge waste of cpu and browser compatibility and causes unnecessary complexity?

@max-mapper
Copy link
Owner

YES DEFINITELY! I think http://hughsk.github.io/topdown-physics/ by @hughsk
can be adapted

one use case is for non-webgl clients to be able to view + edit simple
voxel.js worlds, another is for webgl clients to have a small minimap in
the corner that shows them a larger area of the map and their position as
they walk around

On Mon, Jul 29, 2013 at 5:48 AM, Julian Gruber [email protected]:

would it be a smart thing to code a 2d mode plugin for voxel and use that
to create a 2d game while still using the awesome voxel ecosystem?

Or is that a huge waste of cpu and browser compatibility and causes
unnecessary complexity?


Reply to this email directly or view it on GitHubhttps://github.com//issues/86
.

@shama
Copy link
Contributor

shama commented Jul 30, 2013

Also would be rad for multiplayer where a 2d game can interact with a 3d game. Like a commander dropping resources for players in the 3d game. :D

@juliangruber
Copy link
Author

yeah, topdown-physics will work for one game I'm thinking about, another games needs gravity (maybe that could be added?).

So how would I start about that? Would I write a wrapper around topdown physics and canvas three.js that had the same API as voxel-js?

@juliangruber
Copy link
Author

Or is it more like the 2d part is an extra thing that should be easy to integrate into an existing voxel project?

@juliangruber
Copy link
Author

Just trying to figure out the best way to write 2d games leveraging as much modules as possible

@max-mapper
Copy link
Owner

I think http://crtrdg.github.io/ is a good start in terms of organization

@hughsk
Copy link
Contributor

hughsk commented Aug 4, 2013

@juliangruber you should start out trying to write either a topdown or isometric 2D renderer - firstly, that'd be sweet :) You'll also get a better idea of how to plug into voxel before diving straight into making a game!

Using voxel for 2D stuff would work for certain types of games - definitely try it, but if you're struggling maybe look into crtrdg? It's also worth noting that there's a bunch of really useful modules related to the project that aren't voxel-specific, e.g. ndarray/aabb-2d/spatial-events/kb-controls. So there's ways to use/contribute to the project without using the engine directly.

I'm working on a wiki of general-purpose game modules, if you're looking for stuff you can use :)

@zachio
Copy link

zachio commented Jan 31, 2015

I was wanting to use it to generate 2d maps with infinite worlds

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

No branches or pull requests

5 participants