|
Post by wonder on Apr 4, 2016 7:20:28 GMT 1
Currently working on a platform game engine (B4A / LibGDX / C++):
|
|
|
Post by melonzgz on Apr 4, 2016 17:49:44 GMT 1
Currently working in too many things. Here is my next project, also a platformer: I love pixel art! The idea is that in every level you have to open a chest and get the treasure inside. This way the door opens and you can leave the level with the treasure. So there will be some kind of puzzles, doors, temporized mechanisms, moving platforms... It's done using Box2d + LibGDX. Box2D is great 4 collision detection, but for a platformer... there are many many hacks, not the best kind of game to learn Box2D... I'm making the maps with tiled. But my main project at this time is this one: Hope to have it finished this month so I can focus on another ones. And also a car game... And also a Zombie game, a flappy clone, a lunar lander, an endless runner and a pool game. And here is my advice: don't do what I'm doing better focus in one project or you'll never finish it...
|
|
|
Post by wonder on Apr 4, 2016 18:14:56 GMT 1
Congratulations, it looks really, really cool! I love the Indiana Jones theme! How are you moving the camera, by the way?
For my collision detection I'm using my own code. B4A for the character vs. blocks, C++ for character vs. character.
|
|
|
Post by melonzgz on Apr 4, 2016 18:31:00 GMT 1
For the camera, something like what they say here but I also limit the max speed of the camera. It works well, I have it in all my games and gives a smooth camera movement. If you want all my code: Public Sub updateCamera Dim fuerzaX As Float = 0.06 Dim fuerzaY As Float = 0.04 posX = camera.Position.x posY = camera.Position.y Dim difX, difY As Float difY = (player.character.Position.Y+0.7 - posY)*fuerzaY If player.direccion = 1 Then difX = (player.character.Position.x+0.5 - posX)*fuerzaX Else difX = (player.character.Position.x-0.5 - posX)*fuerzaX End If If difX > 0.2 Then difX = 0.2 If difX < -0.2 Then difX = -0.2
posX = posX + difX posY = posY + difY 'Level limits Dim limX, limY As Float limX = anchoCamara/2 limY = altoCamara/2 If posX > (nivel.Properties.Get("width") * TILE_WIDTH) - limX Then posX = (nivel.Properties.Get("width") * TILE_WIDTH) - limX End If If posX< limX Then posX = limX End If If posY > (nivel.Properties.Get("height") * TILE_WIDTH) - limY Then posY = (nivel.Properties.Get("height") * TILE_WIDTH) - limY End If If posY< limY Then posY = limY End If camera.Position.set (posX, posY, 0) camera.update End Sub There are also max and minimum values.
|
|
|
Post by wonder on Apr 4, 2016 18:38:34 GMT 1
Thanks a lot, I can't directly implement it, but it does give me some ideas...
|
|
|
Post by ilan on Apr 4, 2016 18:49:51 GMT 1
melonzgz you are now my favorite game maker in b4x.com! congratulations to your projects, you make first class games! really amazing
|
|
|
Post by melonzgz on Apr 4, 2016 19:08:08 GMT 1
And the last one...
its done with gameview and I wrote all the physics... Its an abandoned project, now I would use Box2D and LibGDX for such a game
|
|
|
Post by ilan on Apr 4, 2016 19:16:20 GMT 1
Moped Climb (LibGdx+Box2D)
|
|
|
Post by wonder on Apr 5, 2016 20:45:33 GMT 1
One of these days I'll finish The Beast:
Project Ryu:
|
|
|
Post by andymc on Apr 7, 2016 13:13:38 GMT 1
One day I'll get round to turning this into a full game:
|
|
|
Post by andymc on Apr 14, 2016 7:28:22 GMT 1
I've also made this:
and this:
|
|