Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Where to start?

 
Goto page Previous  1, 2, 3
   Game Forums (Home) -> Roguelike -> Development RSS
Next:  7drl starting announcement  
Author Message
jice

External


Since: Nov 08, 2007
Posts: 90



(Msg. 31) Posted: Wed Feb 13, 2008 8:13 am
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: rec>games>roguelike>development (more info?)

On 13 fév, 15:49, Gerry Quinn <ger....DeleteThis@indigo.ie> wrote:
> In article <f1f5db3c-6200-4429-8774-a36913a980a0
> @i7g2000prf.googlegroups.com>, jice.nos....DeleteThis@gmail.com says...
>
> > On 12 fév, 18:46, Ray Dillinger <b....DeleteThis@sonic.net> wrote:
> > > jice wrote:
>
> > > > I personally never check for null pointers or out-of-bounds array
> > > > indices for several reasons :
>
> > > It's up to you of course.  But I find C to be quite treacherous
> > > if you don't watch it every minute.  
>
> > > Checking with "assert" is quick and painless, most of the time, and I
> > > recommend it.
>
> > What bothers me with assert is that it only exit the program and tell
> > you :
> > Assertion failed: XXX, file YYY, line ZZZ
>
> > Then, you have to 1/ restart the program, 2/ put breakpoints, 3/
> > reproduce the issue, 4/ watch variable to find its cause...
>
> > With a good old unchecked segmentation violation, you're immediately
> > at step 3.
>
> In MSVC, the ASSERT macro stops the program (in debug mode - in release
> mode it is ignored).  It shows you the region of source where it
> occurred and allows you to inspect variables etc.
>

Ok, I didn't know that. If fact, it may also work like this on Linux.
I spend most of my debug time on mingw32, which is apparently a bad
idea...

--
jice

 >> Stay informed about: Where to start? 
Back to top
Login to vote
Jürgen Lerch

External


Since: Nov 27, 2007
Posts: 26



(Msg. 32) Posted: Wed Feb 13, 2008 12:03 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Saluton!

On Wed, 13 Feb 2008 00:26:05 -0800 (PST), "Ulf_Åström" wrote:
> On 13 Feb, 00:54, "Jürgen Lerch" <jyn....TakeThisOut@gmx.de> wrote:
> > On Tue, 12 Feb 2008 00:22:24 -0800 (PST), "Ulf_Åström" wrote:
[Enums]
> > > I'm not sure if it's a good idea to use them as array indices though;
> > > I do it, but it's probably bad practice.
> > Well, in Pascal/Modula I do it all the time. Why not in C?
> Metadata addiction, meaning it would probably be bad practice in many
> other languages, but C doesn't really care; it just wants to get stuff
> done (just like myself).

Uh?
Metadata addiction?
I actually consider it rather good practice. (There's one
danger, however: When you rearrange or add to the type you
have to make sure that your loops still work as intended.)

> C implements enums like integers and permits normal arithmetic on
> them, so technically it's correct. What bothers me is that they
> shouldn't really be numbers, just *values*.

Yes. That's what they are in the Wirth languages. There you
can't just say a := Red + 1; (you could of course use type
conversion (or INC(a))).

Ad Astra!
JuL

--
jynwyn.TakeThisOut@gmx.de / Reality is a crutch for those who can't
Jürgen ,,JuL'' Lerch / cope with fantasy

 >> Stay informed about: Where to start? 
Back to top
Login to vote
Gerry Quinn

External


Since: Nov 06, 2006
Posts: 853



(Msg. 33) Posted: Wed Feb 13, 2008 2:49 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <f1f5db3c-6200-4429-8774-a36913a980a0
@i7g2000prf.googlegroups.com>, jice.nospam.DeleteThis@gmail.com says...
> On 12 fév, 18:46, Ray Dillinger <b....DeleteThis@sonic.net> wrote:
> > jice wrote:
> >
> > > I personally never check for null pointers or out-of-bounds array
> > > indices for several reasons :
> >
> > It's up to you of course.  But I find C to be quite treacherous
> > if you don't watch it every minute.  
> >
> > Checking with "assert" is quick and painless, most of the time, and I
> > recommend it.
> >
>
> What bothers me with assert is that it only exit the program and tell
> you :
> Assertion failed: XXX, file YYY, line ZZZ
>
> Then, you have to 1/ restart the program, 2/ put breakpoints, 3/
> reproduce the issue, 4/ watch variable to find its cause...
>
> With a good old unchecked segmentation violation, you're immediately
> at step 3.

In MSVC, the ASSERT macro stops the program (in debug mode - in release
mode it is ignored). It shows you the region of source where it
occurred and allows you to inspect variables etc.

- Gerry Quinn
--
Lair of the Demon Ape (a coffee-break roguelike)
<http://indigo.ie/~gerryq/lair/lair.htm>
 >> Stay informed about: Where to start? 
Back to top
Login to vote
coppro

External


Since: Nov 24, 2007
Posts: 21



(Msg. 34) Posted: Wed Feb 13, 2008 3:20 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 13, 9:13 am, jice <jice.nos....TakeThisOut@gmail.com> wrote:
> Ok, I didn't know that. If fact, it may also work like this on Linux.
> I spend most of my debug time on mingw32, which is apparently a bad
> idea...
>
> --
> jice

Assuming that mingw32 uses the headers similar enough to my Linux box:
'break __assert_fail' should do it.

Why it isn't mandatory, I don't know.

coppro
 >> Stay informed about: Where to start? 
Back to top
Login to vote
MrBudgens

External


Since: Dec 20, 2007
Posts: 5



(Msg. 35) Posted: Wed Feb 13, 2008 11:29 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

addcombatinenvy.TakeThisOut@gmail.com wrote:
> I want to get into roguelike development, but I have no idea where to
> start. If anyone can give me a push in the right direction, I'd be
> forever grateful.


My technique so far has been:

1. Play roguelike games

2. Decide what you like about each of them

3. Decide what you hate about each of them

4. Come up with a new theme and a few interesting ideas of your own

5. Make a brief plan about how you will structure your code


After this just dive in and get going! It'll evolve on its own but
point 5 will make sure you don't make bad design decisions on the spur
of the moment that will plague you forever after, points 2 and 4 will
make your game fun to play and exciting to develop, and point 3 will
make it better than all the others Smile
 >> Stay informed about: Where to start? 
Back to top
Login to vote
jice

External


Since: Nov 08, 2007
Posts: 90



(Msg. 36) Posted: Thu Feb 14, 2008 1:01 am
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 14 fév, 00:20, coppro <ride....DeleteThis@gmail.com> wrote:
> On Feb 13, 9:13 am, jice <jice.nos....DeleteThis@gmail.com> wrote:
>
> > Ok, I didn't know that. If fact, it may also work like this on Linux.
> > I spend most of my debug time on mingw32, which is apparently a bad
> > idea...
>
> > --
> > jice
>
> Assuming that mingw32 uses the headers similar enough to my Linux box:
> 'break __assert_fail' should do it.
>
> Why it isn't mandatory, I don't know.
>
> coppro

Nope... Function "__assert_fail" not defined.
The mingw32 port of gdb has always been cheesy...

--
jice
 >> Stay informed about: Where to start? 
Back to top
Login to vote
Paul Donnelly

External


Since: Nov 16, 2007
Posts: 65



(Msg. 37) Posted: Thu Feb 14, 2008 7:37 am
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

MrBudgens <mrbudgens DeleteThis @hotmail.com> writes:

> addcombatinenvy DeleteThis @gmail.com wrote:
>> I want to get into roguelike development, but I have no idea where to
>> start. If anyone can give me a push in the right direction, I'd be
>> forever grateful.
>
>
> My technique so far has been:
>
> 1. Play roguelike games
>
> 2. Decide what you like about each of them
>
> 3. Decide what you hate about each of them
>
> 4. Come up with a new theme and a few interesting ideas of your own
>
> 5. Make a brief plan about how you will structure your code
>
>
> After this just dive in and get going! It'll evolve on its own but
> point 5 will make sure you don't make bad design decisions on the spur
> of the moment that will plague you forever after, points 2 and 4 will
> make your game fun to play and exciting to develop, and point 3 will
> make it better than all the others Smile

And there's always the "pick an existing game and turn it into a RL"
tactic if you're starved for ideas. Smile
 >> Stay informed about: Where to start? 
Back to top
Login to vote
coppro

External


Since: Nov 24, 2007
Posts: 21



(Msg. 38) Posted: Thu Feb 14, 2008 9:10 am
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 14, 2:01 am, jice <jice.nos... DeleteThis @gmail.com> wrote:
> Nope... Function "__assert_fail" not defined.
> The mingw32 port of gdb has always been cheesy...
>
> --
> jice

Googling for some headers seems to show that __assert or _assert are
also good candidates for breaking on an assertion failure... I think
_assert is the one you want.

coppro
 >> Stay informed about: Where to start? 
Back to top
Login to vote
jice

External


Since: Nov 08, 2007
Posts: 90



(Msg. 39) Posted: Thu Feb 14, 2008 2:09 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 14 fév, 18:10, coppro <ride....TakeThisOut@gmail.com> wrote:
> On Feb 14, 2:01 am, jice <jice.nos....TakeThisOut@gmail.com> wrote:
>
> > Nope... Function "__assert_fail" not defined.
> > The mingw32 port of gdb has always been cheesy...
>
> > --
> > jice
>
> Googling for some headers seems to show that __assert or _assert are
> also good candidates for breaking on an assertion failure... I think
> _assert is the one you want.
>
> coppro

Cool ! "break _assert" works ! Thanks. Seems like I'll have to stuff
my code with asserts... Smile

--
jice
 >> Stay informed about: Where to start? 
Back to top
Login to vote
R. Dan Henry

External


Since: Mar 25, 2005
Posts: 615



(Msg. 40) Posted: Thu Feb 14, 2008 8:11 pm
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 14 Feb 2008 07:37:42 GMT, Paul Donnelly
<paul-donnelly.RemoveThis@sbcglobal.net> wrote:

>And there's always the "pick an existing game and turn it into a RL"
>tactic if you're starved for ideas. Smile

Personally, I can't wait for MonopolyRL!

--
R. Dan Henry = danhenry.RemoveThis@inreach.com
If you wish to put anything I post on your website,
please be polite enough to ask first.
 >> Stay informed about: Where to start? 
Back to top
Login to vote
Paul Donnelly

External


Since: Nov 16, 2007
Posts: 65



(Msg. 41) Posted: Fri Feb 15, 2008 6:36 am
Post subject: Re: Where to start? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

R. Dan Henry <danhenry.TakeThisOut@inreach.com> writes:

> On Thu, 14 Feb 2008 07:37:42 GMT, Paul Donnelly
> <paul-donnelly.TakeThisOut@sbcglobal.net> wrote:
>
>>And there's always the "pick an existing game and turn it into a RL"
>>tactic if you're starved for ideas. Smile
>
> Personally, I can't wait for MonopolyRL!

Finally, a chance to beat up that damn thimble!
 >> Stay informed about: Where to start? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
7drl start announcement - Since Im not only starting my new job next monday but moving out of home sometime near the end of the month, Ive decided to begin coding today. Since this is my first 7drl Id like to give myself the best chance that I have by doing it now while I have..

How to start making own Roguelike game? - Played ADOM ~100 hours and my dream is to make working RL game, i have little to nothing codeing knowledge / skills so what is best program to start with? 2D and ASCII is both fine to me.

7DRL: Invader - Well, I've talked myself into attempting a game for the 7DRL challenge. :-) Invader will be a sci-fi RL where the player is the planet's only hope of stopping a dread alien invasion ship. The character's base of operations will be their docked ship. ....

7DRL: TBA! :P - I'm going to throw my hat into the 7drl arena by taking on a project I've wanted to do for ages. I think it will get me past the mental block of actually getting started. My concept is based around the remains of a post apocalyptic world with gang..

7DRL : Commander - It is 13.40 in my time zone (GMT +100). Time to start my 7DRL project: Commander. I will do it in Free Pascal. Plans are quite big so there is real danger of failure. Good luck to all participants of 7DRL contest. -- Michal ''Ancient'' Bielinski
   Game Forums (Home) -> Roguelike -> Development All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Goto page Previous  1, 2, 3
Page 3 of 3

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]