New Projects - Fresh from the Labs
Something that's been making a buzz at SourceForge, X-Moto appears to be a remake of an old DOS game I used to play, Action Supercross, along with its earlier Windows remake, Elastomania. Some tweaks have been made to the the physics engine, new community levels have been added, and it's now about ten times harder! This game is a physics engine gone mad, allowing for some truly hilarious moves and addictive gameplay. The actual premise of the game and its controls are simple, yet the dynamics and gameplay are complex. The result is that despite its simplistic look, this actually is one of the hardest games I've ever played.
If you look on the Web site, lots of installation methods are available, and installing X-Moto is easy. Packages are provided for various distros in deb, rpm and Slackware form, and X-Moto is provided in a number of repositories, so it's well worth having a look in your package manager first. And, for those who like to do things the hard(er) way, a source tarball also is provided.
In terms of requirements, you'll need: aclocal, SDL_mixer, liblua, libode0, build-essential, sqlite3, zlib, libjpeg, libpng, libbz2, glu, SDL_ttf, liblualib50 and libcurl. For the source, download the latest tarball, extract it, open a terminal in the new folder and enter:
$ ./configure $ make $ sudo make install
To run the game, look in your system's game menu, or enter:
When the game first starts, it prompts you to connect to the Net. I recommend saying yes, because there's a whole swag of things you can do when connected, such as rate levels, get new ones and so on. If you don't like being connected, you can turn it off with F8 anyway. Let's get playing. Click Levels, and in the menu below in the Level Packs tab, look under All Levels and choose a level. I recommend working your way through the “aeRo's Training” levels first and going onto harder levels from there.
Once you're in the game itself, the bike is controlled purely with the arrow keys and the spacebar—that's it. The up key controls the bike's throttle, and the down key controls the brakes. The right key rotates/pitches the bike clockwise, and the left key, anti-clockwise. The spacebar flips the direction of the bike between left and right, and this can be performed anywhere, at any time. When you need to restart the level, press Enter (you'll be doing this a lot). You'll probably notice that each level has a timer, and each level has a high score Internet-wide. If you're an X-Moto fanatic, I'm sure you'll wanna take someone down!
Although this game may look simple at first glance, beginners will have trouble just keeping the bike upright. Full throttle starts generally result in a wheelie, and if you don't “feel” the physics engine and its inertia, you'll quickly flip the bike over and land on your head. The main things to grasp are what the active objects are in this game, how everything is controlled and what this will allow you to do.
First, there's the rider's head. Don't hit it on anything, or the level ends, and you have to restart. However, things also can go through the rider's body. Now this might sound strange, but it allows for some truly hilarious possibilities, such as hanging upside down on a rail with the wheels on top. The suspension reacts in real time and is a big part of the physics engine. The tires will react in time with the suspension also, so pay constant attention to your terrain. Remember that like most motorbikes, this is rear-wheel drive only, so if you try to feed on power when you're only on the front wheel, it won't do any good. Braking, however, works on both wheels.
Braking is very important in some often unexpected ways, because many puzzles require you to lock your wheels and actually flip the bike over. Don't forget that the body of the rider itself also will flip forward under braking inertia, not just the bike, so if you pull up too hard and too late before a wall, the rider might hit his head, even though the bike is still okay.
Learning to feel the actual game is really important—get to grips with the physics engine, especially on tricky hills where the bike can tip over and you lose all of your momentum—you want your reactions to come naturally. Learn to use opposing power, flipping the bike around and applying power in the reverse direction, as braking isn't always the answer. Don't glue down the accelerator. Some puzzles require quick dabs on the keyboard, and just about every level requires a lot of delicacy. Finally, remember that when the bike is riding upside down hanging on a ledge (yes, it's crazy, but it's what the game is all about), the wheel will be turning in the opposite direction to when the bike is upright. This is counter-intuitive at first, but you'll get used to it.
I've covered only basic single-player stuff here, but this game has many more features and some very clever adaptations, especially in the scripted levels, which really show off what this crazy engine can do. If you check the Web site, you'll notice it has a very extensive community and, most important, a level editor. Try making your own levels, and explore the dynamics of this game intimately.
John Knight is the New Projects columnist for Linux Journal.
Practical Task Scheduling Deployment
July 20, 2016 12:00 pm CDT
One of the best things about the UNIX environment (aside from being stable and efficient) is the vast array of software tools available to help you do your job. Traditionally, a UNIX tool does only one thing, but does that one thing very well. For example, grep is very easy to use and can search vast amounts of data quickly. The find tool can find a particular file or files based on all kinds of criteria. It's pretty easy to string these tools together to build even more powerful tools, such as a tool that finds all of the .log files in the /home directory and searches each one for a particular entry. This erector-set mentality allows UNIX system administrators to seem to always have the right tool for the job.
Cron traditionally has been considered another such a tool for job scheduling, but is it enough? This webinar considers that very question. The first part builds on a previous Geek Guide, Beyond Cron, and briefly describes how to know when it might be time to consider upgrading your job scheduling infrastructure. The second part presents an actual planning and implementation framework.
Join Linux Journal's Mike Diehl and Pat Cameron of Help Systems.
Free to Linux Journal readers.Register Now!
- Stunnel Security for Oracle
- Murat Yener and Onur Dundar's Expert Android Studio (Wrox)
- SourceClear Open
- SUSE LLC's SUSE Manager
- My +1 Sword of Productivity
- Managing Linux Using Puppet
- Google's SwiftShader Released
- Non-Linux FOSS: Caffeine!
- Parsing an RSS News Feed with a Bash Script
- SuperTuxKart 0.9.2 Released
With all the industry talk about the benefits of Linux on Power and all the performance advantages offered by its open architecture, you may be considering a move in that direction. If you are thinking about analytics, big data and cloud computing, you would be right to evaluate Power. The idea of using commodity x86 hardware and replacing it every three years is an outdated cost model. It doesn’t consider the total cost of ownership, and it doesn’t consider the advantage of real processing power, high-availability and multithreading like a demon.
This ebook takes a look at some of the practical applications of the Linux on Power platform and ways you might bring all the performance power of this open architecture to bear for your organization. There are no smoke and mirrors here—just hard, cold, empirical evidence provided by independent sources. I also consider some innovative ways Linux on Power will be used in the future.Get the Guide