[plugin] 3D using Copperlicht

0 favourites
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Update 3/31/12 I created a new, more complete game using this plugin:

    http://mathbattlegame.appspot.com/static/PhyFPS/index.html

    I submitted it to the HB Games contest:

    http://www.hbgames.org/forums/viewtopic.php?f=293&t=76413

    Update: Now you can shoot "bullets" by pressing 'Q'.

    I also added the download to both the plugin and the demo at:

    https://sites.google.com/site/jptarqu/downloads

    The name of the download is copperlicht-c2-plugin-v-0.9.zip.

    Please note that to run the sample capx, you will need to export it to your web server (either local server like IIS express, apache, etc. or to a external server). The reason behind this, is that copperlicht will try to load the external file containing the level made in Coppercube. I could not find a way of embedding that files and the texture files needed by that file in C2's debug server. I personally use IIS express to test the demo in my computer.

    Another thing to note is that there is a lot of trial and error trying to match the coordinates between copperlicht and C2. For example, for the walls, I used coppercube to design the 3D level and "measured" the units there and put the objects in the same place in C2's layout.

    --------

    I am working on a plugin that would allow you to present your C2 levels as 3D levels in copperlicht. Here is a demo so far:

    http://mathbattlegame.appspot.com/static/copperlicht/tutorial2/index.html

    I synchronize the positions and rotations between C2 and copperlicht, so copperlicht is just a "screen" for C2's logic. In the demo you see that you actually move and rotate the C2 sprite, and copperlicht is just being told to imitate the pos and rotation. This will allow you to use all the nice things from C2 and show them in 3D.

    I will work on the plugin more and put a link to a capx and the plugin files.

    Note: this plugin and the demo require WebGL because of Copperlicht(tested in Chrome).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • o_O

    Wow!!! Awesome!! :D

  • It is... probably awesome, even though I can't see the effect in Chrome, Firefox or IE and I'm sure I have all of them updated (probably my graphics card is too old.)

    But for non webgl-enabled browsers, would you have to consider having the game be playable in 2d as well?

  • copperlicht is just a "screen" for C2's logic

    Nice idea!

  • O_o

  • Amazing! I presume you could easily have collisions aswell right?

    because the 2D demonstration thing, you could make the player a sprite and have the walls a solid acting as collision, am I being dumb or smart? <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Yes, you could have collision. My problem with the demo is that i am using the c2 "move foward" action to move the sprite and it is not stopping at the wall even though the wall is set as "solid". I am sure i am missing something very obvious amd easy to fix, i just have not figure it out, maybe you can help me?

    I basically want the sprite to rotate with left and right key and move back or forward with up and down. Right now i am using "set angle" and "mive forward" (none of the built in movements).

  • Might try 8 direction.

  • Thank you for your suggestion, but Is there a specific setting for 8 direction to allow rotations with the left and right key? I tried 8 directions before, but when i press left, it just moves left. I need the sprite to rotate only when left is pressed.

  • Nope, you would have to event that.

    On key right arrow pressed set angle to angle+ blah, blah, blah.

  • ok, I tried set angle when left or right is pressed. I also added set speed(from the 8directions behaviour) when the up key is pressed. However, when i press Up, the sprite is resetting the angle to zero and then moves to the right.

  • I dont get what your asking, explain what you want more.

    do you want the player to face the right angle depending on what key is pressed? or do you want it to rotate smoothly depending on the arrow keys?

  • This reminds me a lot of the Irrlich Engine plugin for MMF when it was announced a long time ago. Nostalgic feelings. :)

  • Very fascinatig, it would be splendid to see more of the progress :D

  • Very awesome, it'd be cool to see what comes of this!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)