Merlin's Profile
When nightfall comes...
aerea@cox.net
http://dink.sourceforge.net
Private Message
280911002
ginnux
Uh... yeah... I would've thought any one following Dink development for more than a month or so would see how bug-ridden the engine is
Believe me, we've noticed. That's why we're writing it from scratch. The original code contains 39 instances of the word 'shoot', 21 instances of the word 'seth', and, get ready:
610 instances of the word 'crap'!
The new DinkC will have a parser similar to that of gcc. Multiple spaces are allowed, more than one operation is allowed per line, variables like &dinkc, &dinkd, &dink all are different. Also, variable declaration is optional. I will assure you that it WILL support modulus.
. I also find it disturbing that Seth did / instead of the correct /=.
Here are some snippets of code (I deleted some of the comments to save space):
/SNIP/
int DResourceServer::LoadResource(RESOURCE_TYPE eType, char* szFile)
{
for (ResourceList_It it = m_aResources.begin(); it != m_aResources.end(); ++it) {
if ((*it)->eType == eType && !_stricmp((*it)->szFile, szFile)) // types and files match
return (*it)->id;
}
DBaseResource* pRes;
switch (eType)
{
case RES_TEXTURE: {
pRes = new DTextureResource;
((DTextureResource*)pRes)->texID = DClientModule::Get()->LoadTexture(szFile);
if (((DTextureResource*)pRes)->texID == 0) {
delete pRes;
return 0;
/SNIP/
---
/SNIP/
#include <iostream>
#include <string>
#include <GL/GL.h>
#include <GL/GLU.h>
#include <cstdlib> // } For varargs
#include <cstdarg> // } For varargs
#include <list> // For std::list
#include "../libs/fmod.h"
#if !defined(WIN32) || defined(__MINGW32__) // Linux or MinGW
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#else // Welcome to Microsoft, can I take your order?
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#endif // Would you like fries with that?
/SNIP/
---
/SNIP/
int DKernel::log(char* type, char* fmt, ...)
{
std::string firstout = "Windemere:";
std::string format = fmt;
va_list marker;
va_start(marker, fmt);
firstout.append(type);
firstout.append(": ");
for(int i = 0; i < format.size(); i++)
{
if(format.at(i) == '%') // 0x25 is %
{
if(format.at(i + 1) == 's') // %s detected
{
firstout.append(va_arg(marker, char*));
}
/SNIP/
---
And the main loop:
---
/SNIP/
int DKernel::MainLoop()
{
DClientModule::Get()->PreFrame();
if (!Events())
return 0;
DResourceServer::Get()->Frame();
DClientModule::Get()->RenderSprite(0, 0, 640, 480, 0, ((DTextureResource*)DResourceServer::Get()->GetResource(iTex))->texID); // Hell yeah.
DClientModule::Get()->PostFrame();
/SNIP/
Believe me, we've noticed. That's why we're writing it from scratch. The original code contains 39 instances of the word 'shoot', 21 instances of the word 'seth', and, get ready:
610 instances of the word 'crap'!
The new DinkC will have a parser similar to that of gcc. Multiple spaces are allowed, more than one operation is allowed per line, variables like &dinkc, &dinkd, &dink all are different. Also, variable declaration is optional. I will assure you that it WILL support modulus.
Here are some snippets of code (I deleted some of the comments to save space):
/SNIP/
int DResourceServer::LoadResource(RESOURCE_TYPE eType, char* szFile)
{
for (ResourceList_It it = m_aResources.begin(); it != m_aResources.end(); ++it) {
if ((*it)->eType == eType && !_stricmp((*it)->szFile, szFile)) // types and files match
return (*it)->id;
}
DBaseResource* pRes;
switch (eType)
{
case RES_TEXTURE: {
pRes = new DTextureResource;
((DTextureResource*)pRes)->texID = DClientModule::Get()->LoadTexture(szFile);
if (((DTextureResource*)pRes)->texID == 0) {
delete pRes;
return 0;
/SNIP/
---
/SNIP/
#include <iostream>
#include <string>
#include <GL/GL.h>
#include <GL/GLU.h>
#include <cstdlib> // } For varargs
#include <cstdarg> // } For varargs
#include <list> // For std::list
#include "../libs/fmod.h"
#if !defined(WIN32) || defined(__MINGW32__) // Linux or MinGW
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_ttf.h>
#else // Welcome to Microsoft, can I take your order?
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#endif // Would you like fries with that?
/SNIP/
---
/SNIP/
int DKernel::log(char* type, char* fmt, ...)
{
std::string firstout = "Windemere:";
std::string format = fmt;
va_list marker;
va_start(marker, fmt);
firstout.append(type);
firstout.append(": ");
for(int i = 0; i < format.size(); i++)
{
if(format.at(i) == '%') // 0x25 is %
{
if(format.at(i + 1) == 's') // %s detected
{
firstout.append(va_arg(marker, char*));
}
/SNIP/
---
And the main loop:
---
/SNIP/
int DKernel::MainLoop()
{
DClientModule::Get()->PreFrame();
if (!Events())
return 0;
DResourceServer::Get()->Frame();
DClientModule::Get()->RenderSprite(0, 0, 640, 480, 0, ((DTextureResource*)DResourceServer::Get()->GetResource(iTex))->texID); // Hell yeah.
DClientModule::Get()->PostFrame();
/SNIP/
Merlin has released 4 files
| Title | Category | Avg | Updated |
|---|---|---|---|
| Dink Smallwood 1.08 Source Code | Development, Source, Official, Dink.exe | 9.9 | March 10th, 2006 |
| Windemere Source | Development, Miscellaneous, Source, Dink.exe | 6.8 | January 4th, 2006 |
| DFArc | Miscellaneous | 9.4 | December 11th, 2004 |
| Dink Sheet Music | Miscellaneous | 9.0 | October 16th, 2003 |
Merlin has written 4 reviews
| Title | File | Type | Score | Date |
|---|---|---|---|---|
| Well | Dink & Libby | Normal | 5.0 | November 7th, 2003 |
| Well | Cycles of Evil | Featured | 9.0 | July 28th, 2003 |
| Okay | Victim of Life | Normal | 2.9 | July 17th, 2003 |
| Now | Ghosts of the Cast (The) | Normal | 0.1 | July 9th, 2003 |

9.9
6.8
2.9




