enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-devel] Per.Oxyd->Enigma level converter


From: Johannes Fortmann
Subject: [Enigma-devel] Per.Oxyd->Enigma level converter
Date: Sun, 19 Jan 2003 16:55:32 +0100

Hi all,
during the weekend I hacked together a proof-of-concept Per.Oxyd->Enigma level converter. It uses Jeremy's OxydLib (a hacked printlevel program) to dump all the levels into files like this:
------------------------
-- Level 2:
dofile(enigma.FindDataFile("levels/oxyd.inc.lua"))floors={
" 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41",
" 41 41 41 41 41 41 41 41 41 00 41 41 41 41 41 41 41 41 41 41",
" 41 41 41 00 00 00 00 41 41 00 41 41 41 41 41 41 41 41 41 41",
" 41 41 41 00 41 41 00 00 00 00 00 00 41 00 00 00 41 41 41 41",
" 41 41 41 00 41 41 00 41 41 41 41 41 41 41 41 41 00 41 41 41",
" 41 41 41 00 41 41 00 41 41 41 41 41 41 41 41 41 00 41 41 41",
" 41 41 41 00 41 41 00 41 41 41 41 41 41 00 41 41 00 00 41 41",
" 41 41 41 41 41 41 41 41 41 41 41 41 41 00 41 41 41 41 41 41",
" 41 41 41 41 41 41 00 41 41 41 41 00 41 00 00 00 00 41 41 41",
" 41 41 41 41 00 41 00 41 41 41 41 41 41 41 41 41 00 41 41 41",
" 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41",
"" }
stones={
" 11 11 11 11 11 11 11 03 11 11 11 11 11 11 04 11 11 11 11 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11",
" 11 11 11 11 11 05 11 11 11 06 11 11 11 11 11 11 11 11 11 11",
"" }
items={
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 05 27 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
"" }
-- Signals:

levelh = 11
levelw = 20
create_world(levelw, levelh)
render_field(20, 11)
set_actor("ac-blackball", 11.8, 5.6, {player=0})
--------------------------
It currently works for (at least) the first levels from Oxyd Extra. Level 2 is even completely playable.
Stones are mapped using a table in lua like
stone_map["0e"]="st-oxyd"
Signals are currently not implemented, as well as most stones (i.e. one needs to fill in the mapping table with the correct names).

I'll submit my source archive as a patch on the enigma project page.

Have fun,
Johannes






reply via email to

[Prev in Thread] Current Thread [Next in Thread]