Search found 19 matches

by SMartin
Fri Mar 27, 2009 4:14 pm
Forum: Coding Questions
Topic: How does Circle() work? (make areas of image transparent)
Replies: 7
Views: 1902

C translation

In case you're interested.
Here's a PB translation of the c code linked to by Freak



Procedure RasterCircle(x0.i,y0.i,Radius.i)

;{ Original C source code

; void rasterCircle(int x0, int y0, int radius)
; {
; int f = 1 - radius;
; int ddF_x = 1;
; int ddF_y = -2 * radius;
; int x = 0 ...
by SMartin
Sat May 17, 2008 2:34 am
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

Wow

Rook,

Thanks for the link. There's lots of great little diamond shaped pictures of stuff there, as I'm sure you know.
If I had one tenth the talent of that guy, I'd be doing good.
He also had a few links to freeware programs that draw trees and bushes and such.
The first thing I'm going to do is ...
by SMartin
Thu May 15, 2008 2:54 am
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

animated tiles

Rook,

I haven't even thought about animated tiles and collision detection yet. I've been knee deep in drawing cell overylays for roads and rails. The problem is, I'm half color-blind, and a lousy artist...and the work is really slow...all of this because I want to code a window that allows you to ...
by SMartin
Wed May 14, 2008 4:20 am
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

More Pointless-ness

Well, I have continued working on my 'project without a cause'
So, for those of you that have time to waste...here's what's new.

Added heightmap import. 256 grayscale works the best, but any jpeg or bmp will load. It resizes the image (200x200 right now) and averages the RGB values and divides by ...
by SMartin
Wed Apr 02, 2008 9:57 pm
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

Kaeru,

I used 2D line and fill commands on four sprites to draw every possible configuration of the tiles (79 of them if I remember right) The four sprites were for the four different colored tiles. They get redrawn when the zoom (cell size) changes.

Then I just clipped those four 'template ...
by SMartin
Wed Apr 02, 2008 1:38 am
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

what is the base of your algorithm?
on the screenshot it looks a bit squary, like the mountains in "lokomotion", not that fine like in "sim city 3000"...

Yeah, you're right. They are squares. I think Transport Tycoon/Locomotion uses something other than a 1 to 1 ratio, but I'm not sure...also I ...
by SMartin
Tue Apr 01, 2008 3:19 am
Forum: General Discussion
Topic: Not quite sure why I wrote this program.
Replies: 13
Views: 2957

Not quite sure why I wrote this program.

I decided one day to write a program that creates isometric tile landscapes (for no good reason, really) in the vain of games like Transport Tycoon.

The idea was to have it create and save a bitmap of an iso-tile landscape to be used for....well....I guess I should have thought that one out a ...
by SMartin
Mon Mar 24, 2008 5:10 pm
Forum: Coding Questions
Topic: CPU Usage Multi-core
Replies: 21
Views: 8605

English Version

Here's an English versions of Helle's code.

;- CPU extent of utilization determination with the PDH.DLL, also for Multi core CPU's
;- Win2k, WinXP, Vista(?)
;- "Helle" Klaus Helbing, 22.03.2008, PB4.10
;- Simply intended to show the feasibility

Global hQuery.l
Global RetVal.l
Global Core.l ...
by SMartin
Sun Dec 09, 2007 5:59 am
Forum: Game Programming
Topic: Minesweeper clone, getting my feet wet with PureBasic
Replies: 26
Views: 10963

Thanks

Tipperton,

Thanks for the tip. I hadn't come across that yet, and it's very useful.

Steve Martin
by SMartin
Sun Dec 02, 2007 1:10 am
Forum: Announcement
Topic: Breaker Panel Circuit Directories
Replies: 8
Views: 4042

Thanks.

Well, I'm glad to hear that someone else has found this useful, and thanks for the tip on SQLite. I think I'll look into that.
I got a new laptop recently thats got Vista on it, and I think I remember that this program had some problems with it....or maybe it was with the new version of PureBasic ...
by SMartin
Tue Oct 16, 2007 11:01 pm
Forum: Announcement
Topic: Breaker Panel Circuit Directories
Replies: 8
Views: 4042

Report designer

Byo, I coded the report in Purebasic. At first I was tempted to use the report designer in Access, after all I already had it created, but I got lazy and just ported the .net code I wrote to do the report.

Sorry I can't help you with that. I do agree, easy access to a good report making software ...
by SMartin
Tue Oct 16, 2007 2:32 am
Forum: Announcement
Topic: Breaker Panel Circuit Directories
Replies: 8
Views: 4042

Breaker Panel Circuit Directories

Do you have a burning desire to create new index cards for your forty-two slot electrical breaker panel? :wink:

If so, this program may help.

Here's a little PureBasic front end for a Microsoft Access database for storing and searching breaker and breaker box data, and most importantly, printing ...
by SMartin
Thu Oct 04, 2007 2:11 am
Forum: Game Programming
Topic: Minesweeper clone, getting my feet wet with PureBasic
Replies: 26
Views: 10963

Thanks

Thanks for the replies. It's interesting reading.

I program strictly for the pleasure of it, so the doing, and the methodology is often more interesting to me than the product.

The truth is, I don't even play minesweeper that often, (I just wanted a way to cheat a little so I could win once in a ...
by SMartin
Tue Oct 02, 2007 4:42 am
Forum: Game Programming
Topic: Minesweeper clone, getting my feet wet with PureBasic
Replies: 26
Views: 10963

Thanks.

RZ, Thanks, I appreciate it.

It's probably me that needs to lighten up a bit :) and you have my apologies for that.

It's always a little weird moving to a new platform because you don't always know what the conventions and standards are, and peer review is very helpful, in my humble opinion. So I ...
by SMartin
Mon Oct 01, 2007 5:26 am
Forum: Game Programming
Topic: Minesweeper clone, getting my feet wet with PureBasic
Replies: 26
Views: 10963

Ohh...

Oh, It was the posted code....
Now that makes more sense, without the code tags it's a bit of a mess.

I didn't post that message but I could see how someone might think I did.

Maybe I'm not completely insane...but then again...maybe just a little. :D

Steve.