I usually write the close last because it bothers me when there's something AFTER the cursor.
I tend to progress breadth-first rather than depth-first when dealing with complicated control flow.
[editline]8th August 2012[/editline]
I think I accidentally obfuscated my answer
I'm done with text!
It generates the frontsheet from .*otf or *.ttf files, then loads it as a texture in my engine.
I can align to Left/Right/Center horizontally and Top/Bottom/Center/Baseline vertically.
[img]http://img209.imageshack.us/img209/9764/872012textalignmentandf.png[/img]
I finally have a on-screen FPS counter.
Also I managed to make it save the state of all game entities when locking/unlocking the screen.
I had to do this because the whole app gets restarted when the lock-screen isn't the same orientation as the game.
I'm happy with the progress. Not too much longer and I can actually start putting games together!
[QUOTE=chimitos;37130879]I'm done with text!
It generates the frontsheet from .*otf or *.ttf files, then loads it as a texture in my engine.
I can align to Left/Right/Center horizontally and Top/Bottom/Center/Baseline vertically.
[img]http://img209.imageshack.us/img209/9764/872012textalignmentandf.png[/img]
I finally have a on-screen FPS counter.
Also I managed to make it save the state of all game entities when locking/unlocking the screen.
I had to do this because the whole app gets restarted when the lock-screen isn't the same orientation as the game.
I'm happy with the progress. Not too much longer and I can actually start putting games together![/QUOTE]
Does it support other languages?
[QUOTE=Naelstrom;37130939]Does it support other languages?[/QUOTE]
No. Not currently.
I would need to re-work the whole sheet generator.
Right now it only generates the basic ASCII characters.
ie: [B]A-Z a-z[/B] and [B],./;'[]\`1234567890~!@#$%^&*()_{}|:"<>?[/B]
Here take this: [url]http://www.blackpawn.com/texts/lightmaps/[/url]
You'll need it.
[URL="http://www.khronos.org/news/press/khronos-releases-opengl-4.3-specification-with-major-enhancements"]OpenGL 4.3 is coming![/URL]
Hey, when I use PHP's readfile() to load an external HTML into my website, it works but it doesn't load čćžšđ properly. I get those question mark things.
Is there a way to fix that?
[QUOTE=Darwin226;37133437]Hey, when I use PHP's readfile() to load an external HTML into my website, it works but it doesn't load čćžšđ properly. I get those question mark things.
Is there a way to fix that?[/QUOTE]
header("Content-Type: text/html; charset=utf-8");
[editline]8th August 2012[/editline]
many web frameworks for other languages will do this automatically. php doesn't though, so browsers typically treat the response as iso-8859
Those videos at the top of the page need snipping, it's killing this laptop and probably a few others
Thats pretty sick but why are there not collisions on those ships, The ships went right through each other No explosions and also Im pretty sure the pathfinding code doesn't take into account the postions of the other ships and it didn't seem to update the pathfinding after another ship stayed still in the middle of the path.
Edit:I need a licence for my game.
The code will be available publicly.
People can use the code in there projects as long as they credit me,Its non commercial and they release the code to the public under the same licence as the original code.
Pretty much something like this [url]http://creativecommons.org/licenses/by-nc-sa/3.0/au/deed.en_US[/url]
Except not creative commons as I am pretty sure it does not cover Software and Code.
"Work" means the material (including any work or other subject matter) protected by copyright which is offered under the terms of this Licence. This may include (without limitation) a literary, dramatic, musical or artistic work; a sound recording or cinematograph film; a published edition of a literary, dramatic, musical or artistic work; or a television or sound broadcast.
[QUOTE=Sartek;37135264]"Work" means the material (including any work or other subject matter) protected by copyright which is offered under the terms of this Licence. This may include (without limitation) a literary, dramatic, musical or artistic work; a sound recording or cinematograph film; a published edition of a literary, dramatic, musical or artistic work; or a television or sound broadcast.[/QUOTE]
'the material offered' means whatever you're licensing. 'without limitation [to]' means it can be anything.
Ok I will just go with that,Not like anyones actually going to use my code in there project in the first place anyway haha
[QUOTE=Sartek;37135264]Thats pretty sick but why are there not collisions on those ships, The ships went right through each other No explosions and also Im pretty sure the pathfinding code doesn't take into account the postions of the other ships and it didn't seem to update the pathfinding after another ship stayed still in the middle of the path.
Edit:I need a licence for my game.
The code will be available publicly.
People can use the code in there projects as long as they credit me,Its non commercial and they release the code to the public under the same licence as the original code.
Pretty much something like this [url]http://creativecommons.org/licenses/by-nc-sa/3.0/au/deed.en_US[/url]
Except not creative commons as I am pretty sure it does not cover Software and Code.
"Work" means the material (including any work or other subject matter) protected by copyright which is offered under the terms of this Licence. This may include (without limitation) a literary, dramatic, musical or artistic work; a sound recording or cinematograph film; a published edition of a literary, dramatic, musical or artistic work; or a television or sound broadcast.[/QUOTE]
[url]http://www.tldrlegal.com/[/url]
Hmm...maybe some of you clever programmer guys can help me out here?
I'm making a game and I want to make a couple of features developer-only, how should I do that?
I obviously can't just makes it a password
[CODE]if (inputString == "magicpassword") developerMode = true;[/CODE]
because the code is prone to decompiling and pretty much everyone could just find of what the password string is.
Does anyone have any suggestions on where I should start looking for a solution?
[QUOTE=Jack Trades;37136048]Hmm...maybe some of you clever programmer guys can help me out here?
I'm making a game and I want to make a couple of features developer-only, how should I do that?
I obviously can't just makes it a password
[CODE]if (inputString == "magicpassword") developerMode = true;[/CODE]
because the code is prone to decompiling and pretty much everyone could just find of what the password string is.
Does anyone have any suggestions on where I should start looking for a solution?[/QUOTE]
Depending on what language you're using, can't you make a separate "Developer" build, and use preprocessor directives to mark blocks as "Developer-only"?
How about you use a preprocessor to only compile the features in a development version?
[editline]8th August 2012[/editline]
:ninja:
[QUOTE=Jack Trades;37136048]Hmm...maybe some of you clever programmer guys can help me out here?
I'm making a game and I want to make a couple of features developer-only, how should I do that?
I obviously can't just makes it a password
[CODE]if (inputString == "magicpassword") developerMode = true;[/CODE]
because the code is prone to decompiling and pretty much everyone could just find of what the password string is.
Does anyone have any suggestions on where I should start looking for a solution?[/QUOTE]
Either don't compile developer features into end-user builds, or just deal with end-users figuring out how to use the developer features. A lot of games don't really care if they leave in the developer features, leading to "cheats".
I can't 2D cameras
[IMG]http://i.imgur.com/o8Dp9.gif[/IMG]
[QUOTE=Sartek;37135264]Thats pretty sick but why are there not collisions on those ships, The ships went right through each other No explosions and also Im pretty sure the pathfinding code doesn't take into account the postions of the other ships and it didn't seem to update the pathfinding after another ship stayed still in the middle of the path.
[/QUOTE]
Thats true, I could add ship collision but I am sure it'd bother the more ships exist.
It will actually be a turn-based player vs player (or with 3 or 4 players) game, destroy the other players ships or collect
money by docking on islands and buy new ships.I want to keep it simple, but also a bit tricky.
@Thread
Decorating, rough draft of an Island.
Afterwards battle system.
[img]http://img138.imageshack.us/img138/596/updateb.png[/img]
[QUOTE=Sebixxx;37136341]Thats true, I could add ship collision but I am sure it'd bother the more ships exist.
It will actually be a turn-based player vs player (or with 3 or 4 players) game, destroy the other players ships or collect
money by docking on islands and buy new ships.I want to keep it simple, but also a bit tricky.
@Thread
Decorating, rough draft of an Island.
Afterwards battle system.
[/QUOTE]
-ignore me, didn't look carefully-
[editline]8th August 2012[/editline]
[QUOTE=swift and shift;37133793]header("Content-Type: text/html; charset=utf-8");
[editline]8th August 2012[/editline]
many web frameworks for other languages will do this automatically. php doesn't though, so browsers typically treat the response as iso-8859[/QUOTE]
That didn't change anything but I might have done something wrong. I just pasted that call before the readfile.
I don't know if it makes a difference but the code is in mod_php modules Joomla.
[QUOTE=Sebixxx;37136341]Thats true, I could add ship collision but I am sure it'd bother the more ships exist.
It will actually be a turn-based player vs player (or with 3 or 4 players) game, destroy the other players ships or collect
money by docking on islands and buy new ships.I want to keep it simple, but also a bit tricky.
@Thread
Decorating, rough draft of an Island.
Afterwards battle system.
[t]http://img138.imageshack.us/img138/596/updateb.png[/t][/QUOTE]
I really like this for some reason.
Threw out all my shitty art and started over with assemblee stuff.
[img]http://i.imgur.com/YLNk6.gif[/img]
[editline]8th August 2012[/editline]
Ignore the flashing on the castle, virtualdub herped.
[IMG]http://puu.sh/PN3M[/IMG]
Finished off my little python and Windows dll's experiment.
I always just have a dev_mode Boolean.
[QUOTE=chimitos;37138358]I always just have a dev_mode Boolean.[/QUOTE]
cheat engine. find value. change to true. cheat.
I gave my keyboard a literal bath today. First I cleaned it with canned air and some Clorox Bleach-free wipes, and that did a p. good job, but it wasn't enough. So I disassembled it, took the top half and washed it down like a dirty pet that played in the mud.
It was pretty rewarding. Now I'm going to vacuum my room before getting back to working on a VSP I've been writing for a while.
I can't disclose much, but to present a hybrid of web dev and programming, a while back I noticed an "exploitable" bug with Chromium inside of Source-based games.
The web panel we use for things like MOTDs in games like CS:S, DoD:S, and TF2 has an issue with rendering text input. That is, the background of this element is never actually read like the rest of the elements in the DOM. When the panel's RGBA is read and moved into a texture, you arrive with a texture which has an alpha of 0 in the text rendered areas.
While this is technically a bug, it allows me to do things like this:
[img]http://img43.imageshack.us/img43/5465/counterstrikesourcen.png[/img]
some html5 canvas related projects:
my first try on [URL="http://rndm.de/lab/iso/"]randomly generated worlds[/URL] (works in ff, chrome & opera):
[IMG]http://i.imgur.com/OPRLM.png[/IMG]
created with perlin noise and is layer separated. (try to change the value of the input field [ff has no input=range :(])
another one is a [URL="http://rndm.de/lab/p/"]tile based game[/URL](works in ff, chrome & opera), you can walk around and lift (space) objects, like the crates or green grass. Tried to implement some sort of light, but wasn't satisfied with the result.
[IMG]http://i.imgur.com/j4iEv.png[/IMG]
[QUOTE=amcfaggot;37138842]I gave my keyboard a literal bath today. First I cleaned it with canned air and some Clorox Bleach-free wipes, and that did a p. good job, but it wasn't enough. So I disassembled it, took the top half and washed it down like a dirty pet that played in the mud.[/QUOTE]
Mine is some £8 logitech keyboard. When it gets overly unhygienic I just buy a new one.
Sorry, you need to Log In to post a reply to this thread.