Archive | Coding RSS for this section

2D Roguelike Unity 3D Tutorial

I followed this tutorial to the letter : https://unity3d.com/learn/tutorials/projects/2d-roguelike-tutorial

And it worked. I was wondering about some of the teacher choices, but it became clearer towards the end.

I discovered some new tools of Unity 5 with this.

And I tried to build it on a lot of platforms.

So while in the Unity Editor, it looks like that:

In the Android version it looks like that:

Yeah…. The camera is not adapted. Also I ran in a lot of issues while trying to compile for Android. If you download the Android SDK with Android Studio, you must download the tools separately and replace the tools folder in the Android SDK. And be sure to change the publishing name in the Player Settings like being told to, because Unity won’t compile otherwise.

I tried the web browser version… and:

Yeah… I don’t know what happened here. You can try the game yourself here.

The game only usually works with the arrow keys, or slides on Android, but here, nothing is recognized.

Finally on a “normal” Windows build, we have:

There is a weird line in the middle of screen.

So as you can see, I’m up to some tweaking ! After that I’ll try to add some new features !

Advertisements

Making WkHTMLtoPDF work on Linux

wkHTMLtoPDF is a converter of HTML documents into PDF ones.

It’s really easy and simple to use. It works well on Windows operating systems.

But currently, the linux downloadable available on the website in missing a lot of needed libraries.

Here are the ones needed if you want to install it on a RedHat/CentOS/Amazon AWS instance:

– fontconfig-32bit-2.11.1-4.1.x86_64.rpm

– libjpeg62-32bit-62.1.0-35.1.x86_64.rpm

– libpng12-0-32bit-1.2.52-2.1.x86_64.rpm

– libstdc++6-32bit-4.7.2_20130108-2.1.6.x86_64.rpm

– libXext6-32bit-1.3.3-3.1.x86_64.rpm

– wkhtmltox-0.12.2.1_linux-centos6-i386.rpm

– xorg-x11-libXrender-32bit-7.6_0.9.6-9.1.2.x86_64.rpm

 

To install each of them, just type :

sudo yum install <nameOfTheLibrary>

in the terminal

If you need other versions (like 64 bits one) of some libraries you can find them all on http://www.rpmfind.net . Just take into account that you have better chances to find them thanks to Google than with the search engine of their website.

 

I wrote this post because I took an awful lot of time figuring that out, and I thought it would be useful.

 

Follow me on Facebook : RockMarc

Or on Twitter : @DebuggingWorld

 

Share if you like the content of this blog.

The artificial intelligence of Mario

Using sprites from Super Mario World (SNES) and Super Mario All Stars, students at the University of Tübingen in Germany, reproduced behaviours of the quoted games in a program.

They added some artificial intelligence to Mario so he behave by himself in this world. For example, sometimes when he is hungry, he will go to a “?” Block, make a mushroom appear and go grab it.

Follow me on Facebook : RockMarc

Or on Twitter : @DebuggingWorld

Share if you like the content of this blog.

Paper Shooter

Paper Shooter is a version of Shootius with new graphics made by one of my friends.

You can download it here.

 

Everything else is the same than here :

https://debuggingworld.wordpress.com/2014/11/22/its-alive-aaa-llive-shootius-0-25/

Except I fixed the Wood Satellite weapon! 🙂

 

Follow me on Facebook : RockMarc

Or on Twitter : @DebuggingWorld

 

Share if you like the content of this blog.

It’s alive ! AAA-LLIVE ! Shootius 0.25 !

After many months spent with a buggy version of Shootius, I finally took the time to debug it.

Thanks to Visual Studio’s cryptic error messages, it took me a while to figure out that in C++ when to do that in your .hpp :

static std::vector<Player*> playerList;

 

You have to declare it also in your cpp:

std::vector<Player*> GameState::playerList;

Because it is static.Coming from Java and C#, I didn’t find that very intuitive.

 

New release of my game !
Download Shootius 0.25 for Windows

Release Notes:

– Changed resolution

– Working on 4 players mode

– Changed Life bars display

– Made the code cleaner and more dynamic as always.

 

 

Known Issues:

– I screwed up the Wood Satellite weapon

– The score now displays in the Enemy Selected Life Bar

 

Controls:
Arrow Keys – Move
Spacebar – Fire Shot
X – Elec Spark
C – Wood Satellite
P – Pause
Esc – Quit the game

 

Follow me on Facebook : RockMarc

Or on Twitter : @DebuggingWorld

 

Share if you like the content of this blog.

The Story of Aaron Swartz

This time, you can see an entire movie about a great injustice.

 

 

RockMarc

@DebuggingWorld

14h42 #6 : sondages et autres manipulations

Un post en français !! Parce que j’ai du contenu en français.

Dans cette émission 14h42 dérivée de la version web d’Arrêts sur Images, les journalistes reviennent sur le hack du sondage du site de France 3.

Ce qui fait tellement plaisir dans cette émission, c’est la grande connaissance du sujet par le présentateur.

 

 

 

 

RockMarc

@DebuggingWorld