ATTENTION ALL FANS!!! THIS BLOG HAS MOVED!!!
go to: http://www.taotekaching.com

Showing posts with label YAGOL. Show all posts
Showing posts with label YAGOL. Show all posts

Thursday, January 08, 2009

Conway’s Game of Life, Pong, Screensavers, and Me…

Greetings, all:

Due to the massive increase in my blog traffic (I think I het around 20 / week or so) after I initially offered up my Game of Life screensaver, I now offer, in celebration of the new year, GoLPong!

GoLPong

That’s right, for 2009 you now can have a fancy new Game of Life screensaver.  BUT THIS ONE’S PACKED WITH NEW FEATURES!  Well, what are they?

  • Game of Life does both trails and no trails
  • Flickers between trails and non-trails
  • Pong played live by your computer against itself
  • Alternates randomly between these two!

Oh my god, you say, but how much does it cost?

Free.  Because I love you.

It is a beautifully dumb screensaver.  You can get it here.  The source code (uncommented, of course) is here.

Tell me how you like it.  Also, send me comments for the 2010 version you’d like to see.

~ZagNut

Submit this story to DotNetKicks

Saturday, June 21, 2008

Mazes, SDL, Smoking, and Me...

So, first and foremost, I will (hopefully) be posting daily for the next month.  I've decided to quit smoking.  I feel like ass all the time and have a 4-month old son for whom I've promised to quit.  I will, starting tomorrow, be using the patch, eating excessively, and curling up into a fetal position.  I will also, as a reminder to myself and a small benefit to mankind, provide an entry each day recounting my pain and suffering.  I've "quit" twice before for 2+ years.  If I can make it 30 days, I should be golden.

I have also been playing around with SDL the last week or so, and have re-written my MazeRunner screensaver to use SDL.  Based on my recent OCD on (GDI-based) screensavers, some initial Pros and Cons:

Pros:

  • WAY WAY easy to use; much more so than DirectX or OpenGL
  • Fast and effective

Cons:

  • Screensaver display settings "preview" seems next to impossible
  • SDL_Timer + SDL_Events for rendering = bad idea.  I had the timer send an event message for when to re-render the screen.  Quitting the saver would throw an error big time.  Seems that the saver was "in the process of rendering" when SDL_Quit was called and the saver was trying to free the surfaces.

I've also been having one hell of a time trying to figure out how to remove the "chunkiness" of the animation.  It's not flicker, but rather looks like a screen sync issue.

Although I'm not near to being fully pleased with the final product, and haven't taken the time to clean up my code, I've decided to throw the source (Visual Studio 2005) out here.  The screensaver and necessary dlls are here in a zip file.  I've also decided to throw the Yagol++ screensaver and GDI-based MazeRunner source out in zips.  They are here and here, respectively.

If anyone out there can take a look at the SDL MazeRunner code and provide any tips, changes, etc., I'd be thrilled.  I'd really like to know what I might be able to do to improve the "smoothness" of the animation.  I've only tried it out so far on my laptop here at home, so that may be a major reason, but I'd like it to look good on any system.

Submit this story to DotNetKicks

Friday, June 13, 2008

Screensavers, Mazes, and Me...

Ok, I'm on a major OCD track with screensavers.  I've written a stupid Maze Runner one, which you can download here.

I need to update this and the Yagol one for the Preview dialogs, plus potentially add some settings.  Currently, the preview for the Maze Runner looks like this:

runner

Which doesn't really show the guy running through the maze.  Not sure when I'll get to this as I'm now focused on my next masterpiece!

I'll also throw the sourcecode up for Yagol and this soon, even though I get no love from my (limited) audience.

~simon

Submit this story to DotNetKicks

Thursday, May 29, 2008

Conway's Game of Life REDUX!, Screensavers, and Me...

NOTE as of 06.23.08
The source is now available through this page


I've become obsessed with this stupid Game of Life shite. All my other projects are on hold until I get this out of my system.

So far, I've gotten out a simple, plug-in based .NET version: Yagol.NET.

Now, for your pleasure, it's: The Yagol++ Screensaver!

yagol.screensaver

I added "traces" of where a cell used to be live up to five generations earlier.

The saver can be downloaded here. Now, here's the catch: if you want a link to the source, I'll post it as a comment reply after I've received some comments from you all requesting it. I NEED ATTENTION!

Thanx!

~simon

Submit this story to DotNetKicks

Friday, May 02, 2008

C++, Conway's Game of Life, and Me...

NOTE as of 5.03.08
Update to code. It actually works now. (what do you expect in 30 minutes)

NOTE as of 06.23.08
C++ source is now available through this page

NOTE as of 01.13.2009
ALL NEW C++ Game of Life screensaver, with PONG! Get it (and source) here!

Ok, just trying to get back into C/C++ for work and decided to quick write Conway's Game of Life. I have named it thusly YAGOL (Yet Another Game Of Life).

I so hate C/C++ Win32 programming after working in C#. Been working on it for a few days and nights and had enough. Whipped a YAGOL.NET out in like 30 minutes.

Here's my C# version of YAGOL (Yet Another Game Of Life). I'll be revising it every now and then. It's total shit as of this post, but...

Source included.

Hey, if you decide to make rules or changes, email them here.

Submit this story to DotNetKicks