• What are you working on? V4 (HTML ISN'T PROGRAMMING)
    2,003 replies, posted
I started work on a new Wii project, Phosphore. It's an audio visualizer based on marcan's [url=http://www.youtube.com/watch?v=TfVKmBnwlwk]laser[/url] [url=http://www.youtube.com/watch?v=teJAOHFj1E4]stuff[/url]. Oscilloscope: [img]http://ehome.linuxmaniac.net:8080/wii/screenshots/TV2009102803463500.jpg[/img] Circlescope: [img]http://ehome.linuxmaniac.net:8080/wii/screenshots/TV2009102803474800.jpg[/img]
[QUOTE=farmatyr;18057936]I just made some trippy shit. [code] #include <windows.h> #include <math.h> #include <time.h> int main() { srand(time(0)); while(!GetAsyncKeyState(0x23)) { int radius = rand() % 1999 + 1; int xCenter = GetSystemMetrics(SM_CXSCREEN) / 2, yCenter = GetSystemMetrics(SM_CYSCREEN) / 2; double x, y, r2; COLORREF color = RGB(rand() % 254 + 1, rand() % 254 + 1, rand() % 254 + 1); HDC screen = GetDC(0); r2 = (double)radius * (double)radius; for(x = -radius; x <= radius; x++) { y = sqrt(r2 - x * x) + 0.5; SetPixel(screen, xCenter + (int)x, yCenter + (int)y, color); SetPixel(screen, xCenter + (int)x, yCenter - (int)y, color); } } } [/code][/QUOTE] [url]http://imgkk.com/i/539hwK.png[/url] holy shit
A desktop like website. Maybe powered with JavaScript one day, not sure yet.
Torekk, try slavehack, its close enought for now. (Hacking game)
[QUOTE=gngbng;18054990][url]http://www.php.net/manual/en/function.decbin.php[/url][/QUOTE] I was just showing the progression. Rather than a function.
[QUOTE=farmatyr;18057936]I just made some trippy shit. [code] #include <windows.h> #include <math.h> #include <time.h> int main() { srand(time(0)); while(!GetAsyncKeyState(0x23)) { int radius = rand() % 1999 + 1; int xCenter = GetSystemMetrics(SM_CXSCREEN) / 2, yCenter = GetSystemMetrics(SM_CYSCREEN) / 2; double x, y, r2; COLORREF color = RGB(rand() % 254 + 1, rand() % 254 + 1, rand() % 254 + 1); HDC screen = GetDC(0); r2 = (double)radius * (double)radius; for(x = -radius; x <= radius; x++) { y = sqrt(r2 - x * x) + 0.5; SetPixel(screen, xCenter + (int)x, yCenter + (int)y, color); SetPixel(screen, xCenter + (int)x, yCenter - (int)y, color); } } } [/code][/QUOTE] Now with more trippyness: [code]#include <windows.h> #include <math.h> #include <time.h> int main() { srand(time(0)); int xSize = GetSystemMetrics(SM_CXSCREEN); int ySize = GetSystemMetrics(SM_CYSCREEN); int xCenter, yCenter; double x, y, r2; int radius; COLORREF color; HDC screen = GetDC(0); while(!GetAsyncKeyState(VK_ESCAPE)) { radius = rand() % 99 + 1; xCenter = rand() % xSize + 1; yCenter = rand() % ySize + 1; color = RGB(rand() % 254 + 1, rand() % 254 + 1, rand() % 254 + 1); r2 = (double)radius * (double)radius; for(x = -radius; x <= radius; x++) { y = sqrt(r2 - x * x) + 0.5; SetPixel(screen, xCenter + (int)x, yCenter + (int)y, color); SetPixel(screen, xCenter + (int)x, yCenter - (int)y, color); } } }[/code]
[QUOTE=asherkin;18058293]Now with more trippyness: [code]#include <windows.h> #include <math.h> #include <time.h> int main() { srand(time(0)); int xSize = GetSystemMetrics(SM_CXSCREEN); int ySize = GetSystemMetrics(SM_CYSCREEN); int xCenter, yCenter; double x, y, r2; int radius; COLORREF color; HDC screen = GetDC(0); while(!GetAsyncKeyState(VK_ESCAPE)) { radius = rand() % 99 + 1; xCenter = rand() % xSize + 1; yCenter = rand() % ySize + 1; color = RGB(rand() % 254 + 1, rand() % 254 + 1, rand() % 254 + 1); r2 = (double)radius * (double)radius; for(x = -radius; x <= radius; x++) { y = sqrt(r2 - x * x) + 0.5; SetPixel(screen, xCenter + (int)x, yCenter + (int)y, color); SetPixel(screen, xCenter + (int)x, yCenter - (int)y, color); } } }[/code][/QUOTE] That. Was. Awesome. :v:
[QUOTE=Wipmuck;18058146]Torekk, try slavehack, its close enought for now. (Hacking game)[/QUOTE] Guess where I got the idea from. :P Currently just having a problem with toggling an elements style, atleast when I try it in a short form... [code]<div id="home" onClick="this.style.border='1px inset'">[/code] That does work, but when I try to build in a if conclusion like this: [code]<div id="home" onClick="this.style.border=this.style.border=='1px outset' ? '1px inset' : '1px outset'">[/code] Then it doesn't do anything.
[QUOTE=asherkin;18058293]Now with more trippyness: [code]#include <windows.h>[/code][/QUOTE] :c [editline]11:30AM[/editline] [QUOTE=Torekk;18058440]Guess where I got the idea from. :P Currently just having a problem with toggling an elements style, atleast when I try it in a short form...[/QUOTE] Just use jQuery.
This shit is going onto my nuts... [code]<div id="home" onClick="this.style.border=(this.style.border == '1px outset') ? '1px inset' : '1px outset'">[/code] Works in IE, doesn't works in Opera(couldn't try FireFox yet, not installed at the moment, but I assume it's the same as in Opera). [b]Edit:[/b] When I change border into cssText and then in the value add an "border:" infront, it works in Opera, but doesn't in IE. Now let's just make a simple check if the browser is IE and I'm all fine, atleast I think so. [b]Edit2:[/b] Now this is why I hate website programming... It's like gambling. Thanks god that this is only like testing, nothing important. I'd go rage if I'd had a customer in my back always asking "when it's done?". :buddy:
Why not just do it in css insted of onClickie.
There's an pseudo class for click? I only know of hover. [b]Edit:[/b] OH LORD, OF COURSE. :active and :focus. Thanks man.
:active, etc. [editline]10:30PM[/editline] :)
[img]http://filebox.me/files/86i15ikjk_mc.jpg[/img] Added placeholder tyre models. Going to move the front tyres forward a tidgy bit, and about to make the proper tyre track texture for the skid marks.
Oh thats awesome!
[QUOTE=Wipmuck;18059006]Oh thats awesome![/QUOTE] Thanks man :)
[QUOTE=r4nk_;18058994][img]http://filebox.me/files/86i15ikjk_mc.jpg[/img] Added placeholder tyre models. Going to move the front tyres forward a tidgy bit, and about to make the proper tyre track texture for the skid marks.[/QUOTE] Pretty damn awesome. White tires don't make black tire marks though :P I assume they are untextured.
[QUOTE=Jallen;18059162]Pretty damn awesome. White tires don't make black tire marks though :P I assume they are untextured.[/QUOTE] Place holders, place holders :P They are going to end up looking like on my old offroad tyre models: [url]http://ssjjackass.deviantart.com/art/Off-Road-Tyres-60485463[/url] But I can't find the model anywhere (damn my stupid backup to dvd -> lose dvd, system ) so I'll have to remodel them. Even the tyre marks are place holders
What I currently have: [img]http://www.abload.de/img/desktop_test0t0l.jpg[/img] [b]Edit:[/b] I should remove that background from the file title, looks kinda gay as hell. Hm.
Torekk, make sure you have upgradable OS's. Eg; 95; 98; 2000/me; xp; vista; 7; linux. ETC. :D
For a minute there I thought you were making an OS Torek :P Are you making a web desktop or a desktop hacking game like slave-hack? Looks like it's coming along nicely.
Imo slavehack.
Well I don't know yet, just making this to kill boredom. Also, uploaded the current version onto my freespace: [url]http://torekk.110mb.com/[/url], so that anyone interested can check out if it made any progress.
Looking good! You might want to check out [url=http://eyeos.org/]eyeOS[/url] for some ideas.
eyeOS is nice, but I don't like the way they coded a lot of it, which is a shame. Still, it's pretty awesome. Shame the whole idea hasn't taken over, but I guess internet simply isn't good enough to live-sync everything perfectly, as remote desktop shows, because it still lags from time to time.
An IRC bot in C#. [img]http://farm3.static.flickr.com/2708/4052938902_9fb4d58a85_o.png[/img] And here we have me sending the commands from my HTC Touch Diamond. [img]http://farm3.static.flickr.com/2547/4052942734_258c00095f_o.jpg[/img]
Never hurts to look at other people's implementations of what you're trying to code before you begin your journey, helps you foresee the pitfalls they couldn't avoid, I'd say. This is especially true when designing UI facilities; from what I've experienced, when you're still starting out you lack a lot of the concepts of what goes where, and usually end up rewriting lots of your base classes/functions to implement additional functionality that you didn't think you'd need.
[QUOTE=Torekk;18059461]What I currently have: [img]http://www.abload.de/img/desktop_test0t0l.jpg[/img] [b]Edit:[/b] I should remove that background from the file title, looks kinda gay as hell. Hm.[/QUOTE] My hacking game was going to have a desktop like this, I might still do it. Still working on the whole hacking side of the game.
[img]http://i36.tinypic.com/2cwr8lz.jpg[/img] HTML log file thing for my pong game. C++ Works entirely using fstream. And produces fairly nice HTML [code] <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd'> <html> <head> <title>Jallen's Pong - Log file </title> <style> body{ background-color: #000000; } #title{ width: 95%; border: 1px solid #EEEEEE; background-image: url(logimg/titlebg.png); margin-left: auto; margin-right: auto; padding: 3px; font-size: 18px; font-weight: bold; } .goodbox{ width: 95%; border: 1px solid #DDDDDD; background-color: #303030; margin-left: auto; margin-right: auto; padding: 3px; } .badbox{ width: 95%; border: 1px solid #DDDDDD; background-color: #303030; margin-left: auto; margin-right: auto; padding: 3px; } .neutralbox{ width: 95%; border: 1px solid #DDDDDD; background-color: #303030; margin-left: auto; margin-right: auto; padding: 3px; } .spacer{ height: 4px; } #main{ padding: 0px; background-color: #000000; color: #EEEEEE; font-size: 12px; font-family: Calibri, sans-serif; } </style> </head> <body> <div id='main'> <div id='title'>Jallen's Pong - Started 28/10/2009-13:39:26</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Render window successfully created (800x480) with window title 'Pong - By Jallen'</div><div class='spacer'></div> <div class='neutralbox'><img src='logimg/neutral.png' align=top /> <b>[13:39:26] - </b>Menu Initialising...</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/intro.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/bg.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/title.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/play.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/scores.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Image '../media/quit.png' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Font '../media/Vera.ttf' loaded successfully for the menu system.</div><div class='spacer'></div> <div class='goodbox'><img src='logimg/good.png' align=top /> <b>[13:39:26] - </b>Menu successfully initialised.</div><div class='spacer'></div> <div class='neutralbox'><img src='logimg/neutral.png' align=top /> <b>[13:39:31] - </b>Render window closed.</div><div class='spacer'></div> <div class='neutralbox'><img src='logimg/neutral.png' align=top /> <b>[13:39:31] - </b>Menu system shutting down...</div><div class='spacer'></div> <div class='neutralbox'><img src='logimg/neutral.png' align=top /> <b>[13:39:31] - </b>Menu system shut down.</div><div class='spacer'></div> <div class='badbox'><img src='logimg/bad.png' align=top /> <b>[13:39:31] - </b>This is how it looks if something bad happens.</div><div class='spacer'></div> <div class='neutralbox'><img src='logimg/neutral.png' align=top /> <b>[13:39:31] - </b>Application shutting down.</div><div class='spacer'></div> <div id='title'>Jallen's Pong - Ended 28/10/2009-13:39:31</div><div class='spacer'></div> </div> </body> </html> [/code] Example usage: [cpp] #include "Log.h" int main() { Log::Initialise("MyLog.html"); Log::WriteGood("I'm about to eat some rustlers microwave burgers motherfucker."); Log::WriteNeutral("There is paper on my desk."); Log::WriteBad("There's some fucked up gay story in GD at the moment."); Log::Close(); return 0; }[/cpp]
[QUOTE=iPope;18059991]My hacking game was going to have a desktop like this, I might still do it. Still working on the whole hacking side of the game.[/QUOTE] We could group together, speeds up stuff.
Sorry, you need to Log In to post a reply to this thread.