Blog Home

Xibalba – A WebGL First Person Shooter

More than a year ago I started to work on a project that was supposed to be released for 7DFPS – a game dev competition about making a First Person Shooter in 7 Days. I didn't meet the deadline, but the game I started back then is now finally finished.

Please Enjoy:

Xibalba Xibalba – A WebGL First Person Shooter

Xibalba is also available in the iOS AppStore

The game was build on top of my HTML5 Game Engine Impact and is entirely written in JavaScript. While Impact is intended for 2D games, this first person shooter fit very naturally with the engine.

Xibalba, at its heart, is just a 2D game with a 3D viewport. So all the necessary elements for the gameplay were already provided by the game engine: collision detection and response, entity management, sound playback a versatile level editor and much more. The only thing missing was a 3D view.

I created a 10 minute Making Of screencast that explains the ideas and the design behind the game a bit closer.

The Making Of Xibalba on Youtube

The iPhone and iPad version of the game was made with Ejecta. The game also runs just fine in Mobile Safari on the current iOS 8 beta, but the browser's UI, especially in landscape mode, unfortunately hinder the gameplay quite a bit. It's much more playable in Chrome for Android.

I also published the 3D Viewport part of Xibalba, along with another tiny demo game, under the name TwoPointFive – a tribute to the excellent ThreeJS library.

The TwoPointFive Plugin is available on Github:

Monday, July 28th 2014
— Dominic Szablewski, @phoboslab


#1TerryDiF – Tuesday, July 29th 2014, 03:44

Awesome work! Great artwork and atmosphere. Sound design was top-notch for such a simple game, and the boss fight was really creative.

#2Wolkenschauer – Tuesday, July 29th 2014, 09:31

awesome and quite inspiring :) btw you could reduce the size of your level jsons by using bitmasks and merge your the data layers ;) @see

#3 – Lonestarcarper – Monday, August 4th 2014, 03:13

I really enjoyed it, thank you for your effort.

#4Gort – Thursday, August 7th 2014, 16:52

Awesome! I have actually been deterred from making 3D games because of ThreeJS, and now that ImpactJS can do it, I am so exited!

#5 – Andrew – Monday, August 11th 2014, 21:53

I enjoyed this game so much, thank you!

#6 – Givizub – Tuesday, August 12th 2014, 19:11

Awesome work, thank you! c:

#7 – EmJay – Thursday, August 14th 2014, 03:36

I was too stupid to figure out what to do with the end? boss, the two-fisted stone guy. Great game actually, I rarely enjoy indie/small games and this was one of those. Good atmosphere with little means.

#8 – Jet – Sunday, August 17th 2014, 05:07

Amazing game. Played it on iPad and loved it. The dense atmosphere, the smooth gameplay, the immersive soundtrack makes this game a must play. Thanks for taking your time and effort into making this happen. It's sad that you didn't make it to the contest's deadline, but you still made a ridiculously excellent job. Definitely worth playing it. Congratulations. I expect more in the future. Keep up the excellent work!


#9 – pilt – Wednesday, September 3rd 2014, 23:09

Improve iOS version controls please! Especially aiming. When I shoot and move my finger across the screen sight should move and stop but not continue moving. And make the static stick for the moving please. Give players a choice: add some controls settings, left-handers support. Thanks a lot! Forgive me my horrible English) And may the Force be with you.

#10 – jake – Wednesday, September 24th 2014, 14:53

awsome make more

#11 – sam – Friday, October 31st 2014, 02:14

i came here to check out impactJS and stayed for the whole game. very fun and just the right length. thansk!

#12 – Brandon – Friday, November 7th 2014, 00:05

I played it and I thought it was very interesting, man, I wish it were longer, I would play it all day.

#13 – Corey – Friday, November 14th 2014, 00:24

This game is awesome

#14 – Gabe – Tuesday, November 18th 2014, 17:51

like the soundtrack the game was great!

#15 – leon – Wednesday, November 26th 2014, 00:32

I am stunned ! Insane atmosphere for such a simple game, music and sounds are AWESOME!! and overall great work !

#16 – travis – Friday, December 12th 2014, 21:52

Just thought id drop a compliment on quite possibly the most solid small game ive played in ages.

Very satisfying game.


#17SANTO – Tuesday, March 3rd 2015, 22:53

Hello I'm santo I really love this game you rock!

#18 – #girlgamer – Thursday, March 19th 2015, 09:09

Meet your doom
#lovin it loads. 3-8

#19 – Hasta la vista baby – Thursday, March 19th 2015, 18:22

Gun to that mayan heart

#20 – Dudeladude – Thursday, March 19th 2015, 18:25

The boss is awesome dude, I am looking for mor like it

#21 – Jackson – Saturday, April 11th 2015, 00:14

This game is cool! My friend (emiliono) is dying to play this awesom game!

#22 – Bill – Wednesday, January 20th 2016, 16:34

Soooooo cool beat in like a day

#23 – Max – Thursday, February 4th 2016, 05:48

Thank you, man.
I'm really in love with this little gem.

#24 – markosos – Sunday, February 7th 2016, 21:37

this game is the best 2-d game i ever played.

#25 – David – Thursday, May 26th 2016, 23:02

I LOVE this game, I've already beaten it four times. PLEASE make another one, like a sequel, that would be dope

#26 – David – Thursday, May 26th 2016, 23:05

And I agree with all the other comments... AMAZING game. love it.

#27 – Rhys – Monday, October 24th 2016, 20:01

I love Xibalba!

#28 – Kacy – Monday, December 12th 2016, 16:12

Looks like a fun game

#29 – Wayne – Monday, December 12th 2016, 16:41

This game is perfect

#30 – Wayne – Monday, December 12th 2016, 16:43

I can play this game all day long without playing any other game. Best game in the world

#31 – Lolotrol – Saturday, January 7th 2017, 05:52

Best game ever. The story is what I've been working in for months.

#32 – Ma – Thursday, February 9th 2017, 02:31

I loved the game!! I couldn't get to the end because the game would not let me move. Otherwise it was a great game!!!

#33 – YmYumSteak – Friday, February 24th 2017, 13:19

Hi I played it and can you make those little guys not jump into your face because it is way too hard

#34 – Xibalba maker – Friday, February 24th 2017, 16:55

I will make xibalba 2 in about a week

#35 – Xibalba player – Wednesday, March 15th 2017, 03:11

Nice!!! Stoked for another xibalba. Such a cool game, minimal, thematic, atmospheric. You've a real eye for it.

#36 – DANYRIAH – Wednesday, April 5th 2017, 02:17

It is really fun

#37 – CC.Pineapple – Monday, April 10th 2017, 05:12

Awesome! The only thing about it is that the energy gun keeps charging even when you pause the game...

#38 – zRetro4 – Wednesday, May 24th 2017, 17:57

Come visit the Xibalba Wiki, (just started so don't expect much) with community editing. Considering it's me and my friends who enjoy the game, a community editor or two could really help it blossom.

#39 – Jack – Thursday, May 25th 2017, 20:36

Without a doubt, the most exhilarating browser-based game I've ever played! Wow!

#40 – Anyar – Wednesday, July 19th 2017, 08:03

Really good game! Thanks for making it!

Replaying it right now, months after my first time I played. :P

#41 – Ashton – Tuesday, August 1st 2017, 20:39

My leader did not let me play this game due to the fact that it had pixel blood. Please consider removing the blood so I can play this game. It would be much appreciated. Now I know that it is pixels. But representation of blood is blood. So please. Take that despicable blood of yours.

#42 – Enzo – Monday, December 18th 2017, 18:57

Do another game like this, I like a lot

#43 – Dijon – Tuesday, January 23rd 2018, 16:43

Hey love it mmake a another on please love it

#44 – 44 – Thursday, January 25th 2018, 00:01

Make another one !!!

#45 – Lotfi – Tuesday, January 30th 2018, 14:31

This is really good make another game like this i loved the game thank you