Archive for the ‘Featured’ Category

Revisiting Duke Nukem 3D with EDuke32

Click here to read Revisiting Duke Nukem 3D with EDuke32

While we wait for Duke Nukem Forever to be released (hopefully next year), now it is a good time to (re)play the first 3D game of the franchise. However, even if you find your old CD-ROM, the game won’t work on current PCs. A DOS emulator could be used to play the game, but let’s take a different approach and use a software that runs natively on today’s operational systems.

That’s why EDuke32 was created. The best definition for what EDuke32 is, can be found at EDuke32’s website:

Eduke32 is an awesome, free homebrew game engine and source port of the classic PC first person shooter Duke Nukem 3D— Duke3D for short—to Windows, Linux, Mac OS X, FreeBSD, several handhelds, and to your family toaster.

And they are right; it is awesome. First off, installation is very simple just unzip and copy some game files to the same folder (more detailed instructions can be found here.)

Using Eduke32, we can play Duke Nukem 3D again on your current PC without resorting to an emulator, and better, do it at FULL HD (1920x1080px) resolution or even higher ones. Eduke32 creators have added a new renderer called Polymer which makes graphical improvements in the game, such as hardware lights, filtering, nicer perspective corrections, etc.

Continue reading: “Revisiting Duke Nukem 3D with EDuke32”

Access Activity class from View

Click here to read Access Activity class from View

So, it begins! This is the first on this blog!

Let’s start with a Android Programming tip: how to access the Activity from an instantiated View object.

The first thing to do is consider if you really need to call an Activity from a View. Take some time to analyze your classes and their relationships. Probably, the variable/method you need to access doesn’t have to be a member of the Activity class. In that case, think about placing that variable/method inside the View or create a new class that has variables/methods which can be accessed by both Activity and View. Unless an Activity variable or method (e.g. Activity.finish() ) needs to be called from the View, there is no need to try to access the Activity from the current View.

But if you need to access a method/variable of the calling Activity from the View, here is how it’s done:

Continue reading: “Access Activity class from View”