The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: LeadwerksCartography Shop for FREEFebruary NewsletterDGS BonanzaFPS Creator Bonanza;
The Game Creators
Dark GDK / Tile Game Engine

Go to the first page of this board Return to the Forum Menu Post Message
4 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
SunDawg

User


Joined: Tue Dec 21st 2004
Location: Massachusetts
Posted: 16th Dec 2007 17:06           | link | toggle

I've begun work on a game engine, specifically for old-school tile games. I have systems for basic tiles, entities, and gates. Levels are hard coded in a separate levels header file, and this brings me to my question. Were I to adapt it to use CSV map files, would anyone be interested modding this game? The main difficulty, as of now, is that the system uses two arrays, 'stacked' on top of each other. One is for tiles, the second for entities, so the CSV would have to have twice the information for the location of the arrays. I'll attach the source so you can see what I mean...Controls are simple. Arrow keys to move character (the green box), and space key to open gates. You need a pill to open a gate. Examine levels.h and you ought to be able to modify the levels. Feedback, and response to the ideas of a CSV over the header system I'm using now would be appreciated.

My site, for various stuff that I make.
Back to top
Funkentstört Send AIM user a message
Download: tilegameengine.zip Size: 42742 bytesReport this message as abusive
dbGamerX

User


Joined: Fri Nov 23rd 2007
Location: Cyberspace
Posted: 16th Dec 2007 18:14     Edited: 16th Dec 2007 18:17     | link | toggle

Lookin' good so far! Unfortunately, I don't use CSV much, so I dunno lol.

I wanna beta test it once you get further in the game

EDIT: I found a bug: the gates open only if you hold spacebar- not if you press/tap it.

dbPrint ( "Sig" );
Back to top
Report this message as abusive
Google Ad
Back to top
 
SunDawg

User


Joined: Tue Dec 21st 2004
Location: Massachusetts
Posted: 16th Dec 2007 18:56     Edited: 16th Dec 2007 19:01     | link | toggle

I know...in order to save some CPU power, the level and sprites are only refreshed when the arrows keys are pressed, which is at most 10 times a second (there's a time-limiter on the key presses, so you don't fly around the level at uncontrollable speeds).

The check for the spacebar is in the refreshing function, so it's only called when used in conjunction with an arrow key. I'll rework this, I think. But so that is checks which arrow key is pressed (as one must be) and thereby allow you to pick which gate to unlock should there be two right near by. Forward thinking!

EDIT: + Code Snippet
That fixes it up, and it's much smoother. Now you push the key in the direction of the gate, and press space.

By the way, what do you think of the simply amazing menu? I meant for it to be rather simple, because I made it in literally one minute. I kind of like it though.

My site, for various stuff that I make.
Back to top
Funkentstört Send AIM user a message
Report this message as abusive
dbGamerX

User


Joined: Fri Nov 23rd 2007
Location: Cyberspace
Posted: 17th Dec 2007 05:33           | link | toggle

The code works like a charm!

The menu isn't bad, but it could be better. Maybe add some title screen graphics? An options menu to set speed of the character?

That'd be awesome.

dbPrint ( "Sig" );
Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
4 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page