This site is no longer active and is available for archival purposes only. Registration and login is disabled.

2d Platform Game - Random Level Generation


Postby brendan » Oct 7, 2002 @ 7:40am

I've played around with this code a bit, (it is screwy), it was doing all sorts of wierd stuff. it was creating a maze ok in the x axis, but twice the size it should have been in the y axis, after changing MazeX and Y to consts, rather than ints it sort of fixed the problem.

i.e

const MazeX=10;
const MazeY=10;

Does anyone else have code that "works" it seems the maze is built on an array or chars.... eg? why not ints? or somthing else?

maybe having a byte telling cell information, like bit 1, north, bit 2, east etc

so 00001010 would mean west and east exits etc.... the other spare bits can be used for defining "frontier" blocks etc.. while creationg the maze.

-B
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby brendan » Oct 8, 2002 @ 12:25am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby brendan » Oct 8, 2002 @ 3:38am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby brendan » Oct 10, 2002 @ 5:59am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Previous

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum