[QUOTE=Vampired;17552874]What an earth were you doing for four hours?[/QUOTE]
Fixing map triggers :/ All progammers slowly learn that anything you think will be simple won't be.
[QUOTE=Bang Train;17552906]what language are you binding it to?[/QUOTE]
Huh, what?
[QUOTE=Bang Train;17552906]and how are you storing the triggers inside the map file?[/QUOTE]
like this:
[code]
#MapTrigger# x, y, ents, map, entrance x, entrace y,
[/code]
I am still trying to think of a good map format. What I currently have:
[code]
# V1.0.25 # V0.0.8 #
1 1 1 1 1 1 1
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 0 0 0 0 0 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 1
#Player# 1 3
#MapTrigger# 7 3 all levelone\two.txt 1 3
[/code]
But without the commas.
[QUOTE=Robber;17567150]That's the only GMan game I know. What game/app/whatever do you mean?[/QUOTE]
[url]http://www.facepunch.com/showthread.php?t=690891[/url]
[QUOTE=lazyV;17565253]Learning java at uni now[/QUOTE]
me too :o
[QUOTE=Diaklu;17567591][url]http://www.facepunch.com/showthread.php?t=690891[/url][/QUOTE]
Oh... not bad either. :smile:
[QUOTE=iPope;17567494]Fixing map triggers :/ All progammers slowly learn that anything you think will be simple won't be.
Huh, what?
like this:
[code]
#MapTrigger# x, y, ents, map, entrance x, entrace y,
[/code]
I am still trying to think of a good map format. What I currently have:
[code]
# V1.0.25 # V0.0.8 #
1 1 1 1 1 1 1
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 0 0 0 0 0 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 1
#Player# 1 3
#MapTrigger# 7 3 all levelone\two.txt 1 3
[/code]
But without the commas.[/QUOTE]
ahh
this is what i am using atm
[code]<map tileset="test.png" tilewidth="32" tileheight="32" numlayers="3" numrows="30" numcols="30">
<tile x="0" y="0" z="0" num="1"/>
<tile x="1" y="0" z="0" num="1"/>
<tile x="2" y="0" z="0" num="1"/>
<tile x="0" y="1" z="0" num="1"/>
<tile x="1" y="1" z="0" num="1"/>
<tile x="2" y="1" z="0" num="1"/>
<tile x="0" y="2" z="0" num="1"/>
<tile x="1" y="2" z="0" num="1"/>
<tile x="2" y="2" z="0" num="1"/>
<tile x="1" y="1" z="1" num="18"/>
</map>[/code]
but i haven't found a good way to do triggers...id love to be able to do lua but no idea how to
[php]<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){
if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}
// end hide -->
</script>
<?php
$expire=time()+60*60*24*30;
if ($_GET["koek"]=="new")
setcookie("theme", "new", $expire);
if ($_GET["koek"]=="oud")
setcookie("theme", "oud", $expire);
else {
setcookie("theme", "oud", $expire);
header('Location: http://www.fuckyou.nl/index2.php?page=home');
}
$theme=$_COOKIE["theme"];
include("thema/".$theme."/scripts.php");
include("thema/".$theme."/header.php");
$page=$_GET["page"];
include($page.".html");
include("thema/".$theme."/footer.php");
?>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<OPTION value="index2.php?koek=oud&page=home">Klassiek (Standaard)</option>
<OPTION value="index2.php?koek=new&page=home">Modern</option>
</select>
</form>[/php]
Working on a cookie based skin system, fucked beyond repair. Like users having a blank page for not having cookies, and header errors :emo:.
[QUOTE=Baldr;17567903][php]<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){
if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}
// end hide -->
</script>
<?php
$expire=time()+60*60*24*30;
if ($_GET["koek"]=="new")
setcookie("theme", "new", $expire);
if ($_GET["koek"]=="oud")
setcookie("theme", "oud", $expire);
else {
setcookie("theme", "oud", $expire);
header('Location: http://www.fuckyou.nl/index2.php?page=home');
}
$theme=$_COOKIE["theme"];
include("thema/".$theme."/scripts.php");
include("thema/".$theme."/header.php");
$page=$_GET["page"];
include($page.".html");
include("thema/".$theme."/footer.php");
?>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<OPTION value="index2.php?koek=oud&page=home">Klassiek (Standaard)</option>
<OPTION value="index2.php?koek=new&page=home">Modern</option>
</select>
</form>[/php]
Working on a cookie based skin system, fucked beyond repair. Like users having a blank page for not having cookies, and header errors :emo:.[/QUOTE]
:barf:
You get header errors if you outputting something before the header... which you are.
[QUOTE=Bang Train;17567882]ahh
this is what i am using atm
[code]<map tileset="test.png" tilewidth="32" tileheight="32" numlayers="3" numrows="30" numcols="30">
<tile x="0" y="0" z="0" num="1"/>
<tile x="1" y="0" z="0" num="1"/>
<tile x="2" y="0" z="0" num="1"/>
<tile x="0" y="1" z="0" num="1"/>
<tile x="1" y="1" z="0" num="1"/>
<tile x="2" y="1" z="0" num="1"/>
<tile x="0" y="2" z="0" num="1"/>
<tile x="1" y="2" z="0" num="1"/>
<tile x="2" y="2" z="0" num="1"/>
<tile x="1" y="1" z="1" num="18"/>
</map>[/code]
but i haven't found a good way to do triggers...id love to be able to do lua but no idea how to[/QUOTE]
I don't know quite how your format works but would:
[code]<trigger x="1" y="0" z="0" condition="pressure"/>
<action etc.../>
<action etc.../>
</trigger>[/code]
work?
[QUOTE=Baldr;17567903][php]<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){
if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}
// end hide -->
</script>
<?php
$expire=time()+60*60*24*30;
if ($_GET["koek"]=="new")
setcookie("theme", "new", $expire);
if ($_GET["koek"]=="oud")
setcookie("theme", "oud", $expire);
else {
setcookie("theme", "oud", $expire);
header('Location: http://www.fuckyou.nl/index2.php?page=home');
}
$theme=$_COOKIE["theme"];
include("thema/".$theme."/scripts.php");
include("thema/".$theme."/header.php");
$page=$_GET["page"];
include($page.".html");
include("thema/".$theme."/footer.php");
?>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<OPTION value="index2.php?koek=oud&page=home">Klassiek (Standaard)</option>
<OPTION value="index2.php?koek=new&page=home">Modern</option>
</select>
</form>[/php]
Working on a cookie based skin system, fucked beyond repair. Like users having a blank page for not having cookies, and header errors :emo:.[/QUOTE]
I haz tip.
ob_start();
On the very top of your script.
But better way would be putting everything header related to the top of your script (Means also before print, echo & co)
[QUOTE=SteveUK;17567925]:barf:
You get header errors if you outputting something before the header... which you are.[/QUOTE]
Fixed that shit.
[php]<?php
$expire=time()+60*60*24*30;
$theme=$_COOKIE["theme"];
$page=$_GET["page"];
$reset= header('Location: http://nopenotshowing.nl/index2.php?page=home');
if ($_GET["koek"]=="new") {
setcookie("theme", "new", $expire);
$reset;
}
if ($_GET["koek"]=="oud") {
setcookie("theme", "oud", $expire);
$reset;
}
if (!isset($_COOKIE["theme"])){
setcookie("theme", "oud", $expire);
$reset;
}
include("thema/".$theme."/scripts.php");
include("thema/".$theme."/header.php");
include($page.".html");
include("thema/".$theme."/footer.php");
?>
<form name="form1">
<select style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;" name="menu" onChange="location=document.form1.menu.options[document.form1.menu.selectedIndex].value;">
<option value=''>Slecteer thema</option>
<option value="index2.php?koek=oud&page=home">Klassiek (Standaard)</option>
<option value="index2.php?koek=new&page=home">Modern</option>
</select>
</form>
[/php]
Heh should leave it alone now as it works now :).
I lost my project with my first sfml project in it, it was a gravity simulator between planets. I guess I'l start working on a tile based game ...
[QUOTE=tjl;17562354]I downloaded it but when I tried to extract it, it said "archive type not supported". what did you use to compress it?[/QUOTE]
Winrar, but maybe it's corrupted, I dunno. I'll check it out later.
Just released my rougelike to a friend, and it works! Success!
I had the great idea of making a screensaver out of the Love Alpha.
Editing the client was no problem, with some edits and a single code cave I could simulate a screensaver very well, but Windows XP won't let it execute as a screensaver.
While writing a simple screensaver to start the game from I found out that scrnsave.h or scrnsave.lib
uses a function only for vista in VC2008.
Could anyone that still uses VC2005 be so kind and upload these files for me?
[QUOTE=iPope;17569076]Just released my rougelike to a friend, and it works! Success![/QUOTE]
Download link for us to try?
[QUOTE=-<PsY>-;17569141]I had the great idea of making a screensaver out of the Love Alpha.
Editing the client was no problem, with some edits and a single code cave I could simulate a screensaver very well, but Windows XP won't let it execute as a screensaver.
While writing a simple screensaver to start the game from I found out that scrnsave.h or scrnsave.lib
uses a function only for vista in VC2008.
Could anyone that still uses VC2005 be so kind and upload these files for me?[/QUOTE]
Isn't a screensaver just a fancy exe with a scr extension?
[QUOTE=arienh4;17571260]Isn't a screensaver just a fancy exe with a scr extension?[/QUOTE]
It basically is.
[QUOTE=Not_Yet;17567112][img]http://filesmelt.com/downloader/Sheep_rapid.png[/img]
rabid sheep v1[/QUOTE]
They're supposed to foam at the mouth, not bleed. :S
[editline]05:08PM[/editline]
Well I guess if they were attacking people they would have blood on their mouths. :downs:
yeah
hes a blood thirsty sheep i have yet to do rabid sheep yet
thats just the name of my game ok
[IMG]http://i33.tinypic.com/rbyzv4.jpg[/IMG]
What I'am working on...
[QUOTE=.:Opselda:.;17574405]http://i33.tinypic.com/rbyzv4.jpg
What I'am working on...[/QUOTE]
Did the sun burn out or is the Moon sending light waves to Earth? :downs:
[QUOTE=Archive;17568022]I don't know quite how your format works but would:
[code]<trigger x="1" y="0" z="0" condition="pressure"/>
<action etc.../>
<action etc.../>
</trigger>[/code]
work?[/QUOTE]
No, the '/' at the end of the line before the close is an abbreviation of '/trigger'
This is the long version of what you wrote:
[code]
<trigger x="1" y="0" z="0" condition="pressure"></trigger>
<action etc...></action>
<action etc...></action>
</trigger>[/code]
Which would give an error.
What IDE does everyone else use when programming PHP?
[QUOTE=NovembrDobby;17567642]me too :o[/QUOTE]
me three :omg:
What university are you guys going to? UMass Amherst here.
[QUOTE=bl4h;17579220]Hey Fizzadar, what IDE do you use when programming PHP?[/QUOTE]
I'm using Geany atm (linux), but usually just something like Context or Sublime; as long as it has coloured syntaxing I'm happy.
Anyone ever experimented with GWT (Google Web Toolkit)? If so, please share your experience with it, I'm trying to decide if I want to spend the time to learn it.
Making a gallery script for someone. Fun coding + lots of money = win.
[QUOTE=bl4h;17579220]Hey Fizzadar, what IDE do you use when programming PHP?[/QUOTE]
notepad ftw?
[QUOTE=Wipmuck;17579976]notepad ftw?[/QUOTE]
I disagree.
Notepad++
I'm just starting to learn C++. I feel silly for saying this but "C++ For Dummies" makes C++ make sense to me. :v:
Sorry, you need to Log In to post a reply to this thread.