Professional Documents
Culture Documents
MarkUp
A GMking.org Publication
June, 2007
Exclusive
Preview:
Streets of Pavilion City
Plus:
Don’t Forget!
MarkUp is written completely by YOUR donations of content, without people like you
donating content, MarkUp would be a very sorrowful sight. Donate today by emailing robin
@ gmking . org with your articles and proposals!
http://markup.gmking.org Page | 3
Design & Development Tutorials TUTORIALS
other_variable;
variable=5;
NEW TECH
My game and User Account Control (UAC)
Many of you might be afraid that control dialogues that appear in problem you will have is the original
Windows Vista’s new feature: User Windows Visa, and this is the type you UAC dialogue appearing.
Account Control might limit your game. see when running some Game Maker
And I’m here to break the myths and games. My only annoyance to Game Maker
destroy the FUD. executables is the “unidentified
First, why is this dialogue appearing? publisher” appearing when the UAC
Well, because the GM executable is dialogue appears. Curiously, Mark
requesting administrative privileges. added a publisher and developer
Once the “allow” button is pressed, not metadata to the created executables,
only will the executable be able to run but apparently, that’s not what Vista
with administrative privileges, but also reads! So you will always see
run other programs with administrative unidentified publisher for your game.
privileges without another UAC
dialogue. On the upside, most programs also
return “Unidentified Publisher”, so
This means that if your game executes that really doesn’t mean your game
background tasks, which themselves would look unprofessional.
Here’s a screenshot of the User account
control, courtesy of Paul Thurrott. This require administrative privileges, there
should be no problem. The only Eyas Sharaiha
is one of many types of User Account
4|P a ge http://markup.gmking.org
Design & Development Tutorials TUTORIALS
TUNTIS’ RANT
How to make a good FPS This piece of code declares 4 global
Probably everybody has played Quake, doesn't work. variables: var1, var2, var3 and
Unreal Tournament, Half-Life or some other_var.
other top-selling first person shooter. Graphics. Graphics are becoming a new
They can be really "cool", but nowadays "quality filter" for all games, and some Personally, I don’t think globalvar has
the quality's just dropping underground FPS'es are actually just concentrating on many advantages. Although there is
and I shall list the reasons why: the graphics rather than gameplay or one: you don’t need to type global. in
story! front of the variable’s name anymore.
Nothing new. Deathmatch is still fun, but And of course there is also the
it's starting to lose it's value (especially if Gameplay. See also "1. Nothing new". You
resemblance with GM’s built-in global
the game only consists of that). Bullet- could add real weapons that are
commonly used in games, but that won't
variables.
time is starting to be in every game, which
is however bad. It's being overused. just cut it. You'll have to invent something
Voilà, that’s all for now. I hope this
that'll make the game more exciting.
tutorial has shown you the differences
No story. Most of the new FPS shooters
I could list more, but I hope that you got between globalvar and var and the
don't concentrate on a story you could
the point already. advantages of using them.
actually call "worth playing". Any kind of a
story would be nice, but just plain "Oh Veeti Paananen Bart Teunis
noes, there are evil space aliens. Kill all."
http://markup.gmking.org Page | 5
This article powered by:
Design & Development Tutorials http://GMLscripts.com/
TUTORIALS
Use
Explode String If you want to see an example on the use of the explode_string
/* function, then you should read the “CSV: Extreme Data
** Usage:
Storage” article, in this issue of MarkUp magazine.
** size = explode_string(array,sep,data);
**
** Arguments:
** array name of a local array, Going further
** string
There are some additional scripts you can use to handle CSV
** sep seperator character, string
** data array data, string content available from GMLscripts.com, here are some
** examples:
** Returns:
** size size of the array of data
explode_string_global
**
** Notes: Creates a global array of strings from data in a given string
** Converts a string of data with elements using a given separator as a delimiter.
** separated by a delimiter into an array http://www.gmlscripts.com/script/explode_string_global
** of strings.
** explode_real
** GMLscripts.com
Creates a local array of reals from data in a given string using a
*/
var arr,sep,dat,len,ind,pos; given separator as a delimiter.
arr = argument0; http://www.gmlscripts.com/script/explode_real
sep = argument1;
dat = argument2 + sep; explode_real_global
len = string_length(sep); Creates a global array of reals from data in a given string using
ind = 0;
a given seperator as a delimiter.
repeat (string_count(sep,dat)) {
pos = string_pos(sep,dat)-1;
http://www.gmlscripts.com/script/explode_real_global
variable_local_array_set(arr,ind,
string_copy(dat,1,pos));
dat = string_delete(dat,1,pos+len) Eyas Sharaiha
ind += 1;
}
return ind;
6|P a ge http://markup.gmking.org
Design & Development Tutorials TUTORIALS
of data storage for many things – but
doesn’t traditionally support it!
http://markup.gmking.org Page | 7
Design & Development Tutorials TUTORIALS
8|P a ge http://markup.gmking.org
Design & Development Tutorials TUTORIALS
QUICK TIPS
Effective Screenshots
You may feel that taking a screenshot is Taking screenshots of the first level or downloading any additional software or
easy, and indeed it is, but a lot of the first stage of game won't be produce a any extra work on your behalf. Instead
screenshots I see promoting games at the good preview either. Often many of the of pressing just the [Prt Scr] key press
GMC and on sites devoted to Game Maker features offered in a game won't be [Prt Scr] along with [Alt]. This takes a
games fail to follow even the simplest of available at this early point so any screenshot of just the active window.
rules to make your screenshot effective. screenshots taken here won't be Open up your graphics program and
exciting or showcase many of the paste, no more cropping away of your
There are a number of factors determining programs features. desktop!
the effectiveness of a screenshot, of which
the contents of the picture is just one. Once you've found the right time and The power of an effective screenshot is
place to take a screenshot you also unbelievable and should not be
I have seen countless games advertised need to consider how you are going to underestimated, although of course a
with a screenshot of the game's menu. The take it. There are lots of freeware good screenshot cannot make up for a
game's menu for heaven’s sake. These programs out there which offer poorly scripted and spirited game.
'Game Maker teams', as they are often screenshot features however you don't
called are meant to be encouraging you to Phil Gamble,
need any of them!
download their game, not a freaking menu. http://gamemakerblog.com
Taking a basic screenshot is simple, just
press the [Prt Scr] key on your keyboard
(above [Insert]) and paste into any Links
graphics editor or even other software
such as Word. However this probably gmb article: What format
should I save my screenshot as?
isn't the best choice for taking your
Screenshot tutorial
screenshots unless your game runs in
full screen and at a decent resolution as
otherwise you will have to crop your
screenshot down so only the active
game window is visible.
An example of a pointless
Fortunately there is a very simple
screenshot found on the GMC
solution at hand which doesn't involve
http://markup.gmking.org Page | 9
Game Reviews REVIEWS
10 | P a g e http://markup.gmking.org
Game Reviews REVIEWS
http://markup.gmking.org Page | 11
Game Reviews REVIEWS
12 | P a g e http://markup.gmking.org
Game Reviews REVIEWS
http://markup.gmking.org Page | 13
Game Reviews REVIEWS
Anonymous Contributor
http://markup.gmking.org Page | 15
Game Reviews REVIEWS
Forted
Streets of Pavilion City EXCLUSIVE PREVIEW
It’s not often that I come across ‘decent’ Lover Proction’s trailer for Senseless fighters and helicopters from above.
games at the GMC. There are a lot of War (xrl.us/senselesswar) to, but the You have to work out how to best
good efforts, but most releases leaving concept was good and Micco manage your resources which include
me wanting more - in a bad way. The (xrl.us/micco), the creator of Forted when to reload, when to nuke and
number of games where the focus has certainly hasn’t produced a rip-off of which upgrade option to choose after
all been on one aspect of the game is defend your castle. you have killed the next 100 soldiers.
high. For example games with amazing
unique graphics which are wasted on
appalling gameplay.
Phil Gamble,
gamemakerblog.com
Get it now:
yoyogames.com/games/show/1151
http://markup.gmking.org Page | 17
Game Reviews REVIEWS
1. Humans
2. Demons
3. Elves
4. Wizards
5. Dark Elves judged by the same criteria, it would get
Graphics
6. Necromancers all 10s, no question.
The graphics have come a long way
In Heroes of Might and Magic V every A game is judged by the resources its since its start of the series in 1995; they
player can hire heroes to control their creator could have. So a commercial were enhanced, became 3D and
armies. They can also protect their game by huge company and numerous textures became more real. But the
castles and build buildings to be able to employees has much higher – and, problem is that it is not realistic, sizes
hire creatures to build up his armies to tougher – criteria to be judged upon. are not rational and some are
conquer other nations whether cartoonish (see screenshot above).
controlled by the computer in single
The graphics get 8 out of 10.
player mode or other players in
Multiplayer mode.
Game play
Game play is one of the aspects that
Judging the game
depend on the audience, if you are into
Many non-commercial games are
fantasy / strategy games this game is a
reviewed, and they often get many 10s
must have, if you’re not then you
and 9s when they are judged. If such a
probably shouldn’t get it.
commercial game, with millions of
dollars of investments, and dozens of It is an addictive game, even after
dedicated programmers, modelers, beating every campaign and every
designers, and composers was to be scenario. You still have the feeling that
18 | P a g e http://markup.gmking.org
Game Reviews REVIEWS
Music
The music in the game is calm outside
the battle but exciting and stimulating
inside the battle, not the best game
music so far but it does fit in with the
game.
Overall
So finally the overall rating of the game
is 8.8/10!
Happy Gaming!
Michael Sharaiha
http://markup.gmking.org Page | 19
Advanced Tutorials TUTORIALS
20 | P a g e http://markup.gmking.org
Advanced Tutorials TUTORIALS
acos asin
#define acos #define asin
////////////////////////////////////////// //////////////////////////////////////////
// acos by Leif902 // asin by Leif902
// Calculates the arccosine of argument1 // Calculates the arcsine of argument1
// for the argument0'th repetition. // for the argument0'th repetition.
// //
// eg. acos(0,sqrt(2)/2) = pi / 4 // eg. asin(0,sqrt(2)/2) = pi / 4
// acos(1,sqrt(2)/2) = (7 * pi) / 4 // asin(1,sqrt(2)/2) = (3 * pi) / 4
// ... etc. // ... etc.
// All results are in radians // All results are in radians
///////////////////////////////////////// /////////////////////////////////////////
http://markup.gmking.org Page | 21
Development Tutorials TUTORIALS
TUNTIS’ RANTS
GMKing.org & Markup
Tutorials and examples, some forum get members to join their community. and register at the GMKing.org site.
threads, all this could be a huge pile of I myself feel that GMKing has
promoted itself sufficiently, but for Come on out and support the
useful material (not to mention community that spends their time
GMPedia.org, the wiki). The wiki is fairly some reason nobody joins. I want this
fixed. Being part of this small keeping you informed with great
new, but has almost 400 articles, some of resources like markup; join the
them being very "in-depth". I'm an active community hasn't been a waste of
time for me though: I've had lots of forums, get on IRC and be a member
contributor in it myself. It's been inactive of GMKing!
for a small amount of time now again, fun moments.
mainly due to lack of contributors (and Veeti Paananen
even users). Be sure to join us in the irc server at
irc.gamemaking.org, make at least a
Online promotion is a painful business,
and an hard one: One just can't magically few contributions to GMPedia.org,
http://markup.gmking.org Page | 23
gmpedia.org
forums.gmking.org
openload.info
ircbloopers.com
gmking.org
irc://irc.gamemaking.org/#gmking
24 | P a g e http://markup.gmking.org