Jump to content


novaz

Member Since 17 Nov 2004
Offline Last Active Yesterday, 11:21 PM

Topics I've Started

GM Raycasting 3d dll

19 March 2011 - 02:26 PM

edit: now there is the source for the dll (you must use
Delphi 6 or 7). Also i added functions to change the text
and to draw a sprite with alpha.

hi, i made a raycasting example, the engine used for the game
wolfenstein 3d. The example is in the script forum. I made a dll
to use the raycasting in game maker:

GM Raycasting dll

Posted Image

Posted Image

The dll is fast, the other example was not fast.
There is the gm6 file in the zip. In the gm6 there are the instructions
to use the dll. I'll try to add other functions to the dll.

Use the ASCII text in the create event to create the map of the level (there is
an example in the gm6).

You can't use the normal game maker functions to draw the screen, i will
try to make a code to switch from the normal mode to the other.

byte to bits and bits to byte

06 September 2010 - 11:51 AM

hi, i dont know if there is a script to convert a byte to bits, i
tried to make an example:
bytetobits

edit: this is a very good example posted by score_under, there are
the scripts bytetobits, bytetobits8 (for byte from 0 to 255)
and bytetobits8neg (for byte from -127 to 127)
bytetobitsadvanced

it converts a byte in bits, for example 3 is '00000011'

i dont know if the code is good, maybe there is a better code.

I made the script because it can be good if you make achievements in your
game, so if you want to know if an achievement is done you can use
1 in the string, or 0 if it's not done.

game card shuffle "realistic"

01 September 2010 - 08:30 PM

hi, i made an example for games with cards, you can use
the script to shuffle the deck. I tried to create a
"realistic" system, so the result it's like when you
shuffle the cards with the hands. I think it can work
with all the sizes of game card decks (i tried with
10 and 60). The example it's here:


GMSortDeck

I hope there are not bugs :) also i will try to make a better example.

GM Treeview

14 August 2010 - 05:30 PM

hi, i made a treeview example for game maker:

Posted Image

The example is here:
GMTreeview

old version for gm8 (thanks to yellowafterlife):
GMTreeview8

thanks if you try the code :)

info:
open the create event script to see the code. To create a root item use:

Treeview_Add_Item('my root item',true,true,true,0,-1,0)
the arguments are:
name,root type, allow all item types, group type, index item type,
parent item, bmp index,

If you want to create normal item:
Treeview_Add_Item('my item',false,true,false,0,0,0)

Raycasting Example

10 May 2010 - 12:09 AM

edit: i corrected some mistakes. Also in the example there are floor and
ceiling.

hi, i made a little example of raycasting, the system used for the 3d world
in wolfenstein 3d. The code is by Lode:
http://www.student.k...2/CG/index.html
the code is in c++ On the site there are also tutorial for the
raycasting. I made a gm6 example of the code:

raycastingwolf3d

Use the arrow keys to move in the map. Press space to render the screen.
It's not possible to render in real time because it's very slow.

Posted Image

Posted Image