enigma-devel
[Top][All Lists]
Advanced

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

Re: [Enigma-devel] New levels from illmind


From: Raoul
Subject: Re: [Enigma-devel] New levels from illmind
Date: Tue, 05 Dec 2006 01:17:56 +0100
User-agent: IceDove 1.5.0.8 (X11/20061116)

Hi,
>> Here are two new levels from illmind.
>>
>> Illmind12 is quite good and I would like to take it into Enigma until
>> 1.0.
>> Illmind13 could be an easymode for illming12?
> Should be.
After illmind agreed, here is such a version.
>> In both times, I think we must adjust the timer intervalls!
>> Any ideas, proposals, objections?
> The intervals have to be adjusted.
Please make a proposal.
> Furthermore, maybe use st-stone1 for the "burned out"
> oxyd-stones? illmind, what do you think?
Maybe, this would look much better.


-- Raoul


<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" 
xmlns:el="http://enigma-game.org/schema/level/1";>
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="be quick or be dead" el:subtitle="" 
el:id="illmind12"/>
      <el:version el:score="1" el:release="1" el:revision="0" 
el:status="stable"/>
      <el:author  el:name="illmind" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 illmind</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="0.92">
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
-- level dimensions and standards
levelw = 20
levelh = 13
create_world(levelw, levelh)

oxyd_default_flavor = "d"
draw_border("st-rock1")
fill_floor("fl-black", 0,0, level_width,level_height)

-- extra stones in level
if not difficult then
    set_stone( "st-timer", 0, 0, {action="callback", target="ill_timer_easy", 
interval=7})
    set_stones("st-rock1", 
{{2,2},{4,2},{6,2},{8,2},{11,2},{13,2},{15,2},{17,2}})
    set_stones("st-rock1", 
{{2,4},{4,4},{6,4},{8,4},{11,4},{13,4},{15,4},{17,4}})
    set_stones("st-rock1", 
{{2,6},{4,6},{6,6},{8,6},{11,6},{13,6},{15,6},{17,6}})
    set_stones("st-rock1", 
{{2,8},{4,8},{6,8},{8,8},{11,8},{13,8},{15,8},{17,8}})
    set_stones("st-rock1", 
{{2,10},{4,10},{6,10},{8,10},{11,10},{13,10},{15,10},{17,10}})
else
    set_stone( "st-timer", 0, 0, {action="callback", 
target="ill_timer_difficult", interval=5})
end

-- effect timer
mytimer=-1

function ill_timer_easy()
    mytimer=mytimer+1
    -- initiate oxyd_colors
    -- without oxyd_current_color correction, while running there is 
(oxyd_current_color==7) -> TRUE,
    -- but there are only 8 colors in enigma! So the oxyd() function failed 
when mytimer==2 because of colors overflow!
    -- see oxyd() function in init.lua for more details
    oxyd_current_color=0
    if mytimer==0 then
        oxyd(2,2)
        oxyd(8,2)
        oxyd(11,2)
        oxyd(17,2)
        oxyd(2,10)
        oxyd(8,10)
        oxyd(11,10)
        oxyd(17,10)
    elseif mytimer==1 then
        set_stones("st-rock1", 
{{2,2},{8,2},{11,2},{17,2},{2,10},{8,10},{11,10},{17,10}})
        oxyd(2,4)
        oxyd(8,4)
        oxyd(2,8)
        oxyd(8,8)
        oxyd(11,4)
        oxyd(17,4)
        oxyd(11,8)
        oxyd(17,8)
    elseif mytimer==2 then
        set_stones("st-rock1", 
{{2,4},{8,4},{2,8},{8,8},{11,4},{17,4},{11,8},{17,8}})
        oxyd(4,4)
        oxyd(6,4)
        oxyd(4,8)
        oxyd(6,8)
        oxyd(13,4)
        oxyd(15,4)
        oxyd(13,8)
        oxyd(15,8)
    elseif mytimer==3 then
        set_stones("st-rock1", 
{{4,4},{6,4},{4,8},{6,8},{13,4},{15,4},{13,8},{15,8}})
        oxyd(4,2)
        oxyd(6,2)
        oxyd(4,10)
        oxyd(6,10)
        oxyd(13,2)
        oxyd(15,2)
        oxyd(13,10)
        oxyd(15,10)
    elseif mytimer==4 then
        set_stones("st-rock1", 
{{4,2},{6,2},{4,10},{6,10},{13,2},{15,2},{13,10},{15,10}})
        oxyd(2,6)
        oxyd(4,6)
        oxyd(6,6)
        oxyd(8,6)
        oxyd(11,6)
        oxyd(13,6)
        oxyd(15,6)
        oxyd(17,6)
    elseif mytimer==5 then
        set_stones("st-rock1", 
{{2,6},{4,6},{6,6},{8,6},{11,6},{13,6},{15,6},{17,6}})
        oxyd(8,2)
        oxyd(8,4)
        oxyd(8,8)
        oxyd(8,10)
        oxyd(11,2)
        oxyd(11,4)
        oxyd(11,8)
        oxyd(11,10)
    elseif mytimer==6 then
        set_stones("st-rock1", 
{{8,2},{8,4},{8,8},{8,10},{11,2},{11,4},{11,8},{11,10}})
        -- loop ill_timer
        mytimer=-1
        ill_timer_easy()
    end
    -- shuffle on every call
    oxyd_shuffle()
end

function ill_timer_difficult()
    mytimer=mytimer+1
    oxyd_current_color=0
    if mytimer==0 then
        oxyd(2,2)
        oxyd(8,2)
        oxyd(11,2)
        oxyd(17,2)
        oxyd(2,10)
        oxyd(8,10)
        oxyd(11,10)
        oxyd(17,10)
    elseif mytimer==1 then
        set_stones("st-rock1", 
{{2,2},{8,2},{11,2},{17,2},{2,10},{8,10},{11,10},{17,10}})
        oxyd(2,4)
        oxyd(8,4)
        oxyd(2,8)
        oxyd(8,8)
        oxyd(11,4)
        oxyd(17,4)
        oxyd(11,8)
        oxyd(17,8)
    elseif mytimer==2 then
        set_stones("st-rock1", 
{{2,4},{8,4},{2,8},{8,8},{11,4},{17,4},{11,8},{17,8}})
        oxyd(4,4)
        oxyd(6,4)
        oxyd(4,8)
        oxyd(6,8)
        oxyd(13,4)
        oxyd(15,4)
        oxyd(13,8)
        oxyd(15,8)
    elseif mytimer==3 then
        set_stones("st-rock1", 
{{4,4},{6,4},{4,8},{6,8},{13,4},{15,4},{13,8},{15,8}})
        oxyd(4,2)
        oxyd(6,2)
        oxyd(4,10)
        oxyd(6,10)
        oxyd(13,2)
        oxyd(15,2)
        oxyd(13,10)
        oxyd(15,10)
    elseif mytimer==4 then
        set_stones("st-rock1", 
{{4,2},{6,2},{4,10},{6,10},{13,2},{15,2},{13,10},{15,10}})
        oxyd(3,3)
        oxyd(7,3)
        oxyd(12,3)
        oxyd(16,3)
        oxyd(3,9)
        oxyd(7,9)
        oxyd(12,9)
        oxyd(16,9)
    elseif mytimer==5 then
        set_stones("st-rock1", 
{{3,3},{7,3},{12,3},{16,3},{3,9},{7,9},{12,9},{16,9}})
        oxyd(5,3)
        oxyd(14,3)
        oxyd(2,6)
        oxyd(8,6)
        oxyd(5,9)
        oxyd(14,9)
        oxyd(11,6)
        oxyd(17,6)
    elseif mytimer==6 then
        set_stones("st-rock1", 
{{5,3},{14,3},{2,6},{8,6},{5,9},{14,9},{11,6},{17,6}})
        oxyd(4,6)
        oxyd(6,6)
        oxyd(3,2)
        oxyd(3,10)
        oxyd(13,6)
        oxyd(15,6)
        oxyd(16,2)
        oxyd(16,10)
    elseif mytimer==7 then
        set_stones("st-rock1", 
{{4,6},{6,6},{3,2},{3,10},{13,6},{15,6},{16,2},{16,10}})
        oxyd(3,5)
        oxyd(7,5)
        oxyd(3,7)
        oxyd(7,7)
        oxyd(12,5)
        oxyd(16,5)
        oxyd(12,7)
        oxyd(16,7)
    elseif mytimer==8 then
        set_stones("st-rock1", 
{{3,5},{7,5},{3,7},{7,7},{12,5},{16,5},{12,7},{16,7}})
        oxyd(2,3)
        oxyd(2,5)
        oxyd(2,7)
        oxyd(2,9)
        oxyd(17,3)
        oxyd(17,5)
        oxyd(17,7)
        oxyd(17,9)
    elseif mytimer==9 then
        set_stones("st-rock1", 
{{2,3},{2,5},{2,7},{2,9},{17,3},{17,5},{17,7},{17,9}})
        oxyd(5,2)
        oxyd(7,2)
        oxyd(5,10)
        oxyd(7,10)
        oxyd(12,2)
        oxyd(14,2)
        oxyd(12,10)
        oxyd(14,10)
    elseif mytimer==10 then
        set_stones("st-rock1", 
{{5,2},{7,2},{5,10},{7,10},{12,2},{14,2},{12,10},{14,10}})
        oxyd(8,3)
        oxyd(9,2)
        oxyd(10,2)
        oxyd(11,3)
        oxyd(8,9)
        oxyd(9,10)
        oxyd(10,10)
        oxyd(11,9)
    elseif mytimer==11 then
        set_stones("st-rock1", 
{{8,3},{9,2},{10,2},{11,3},{8,9},{9,10},{10,10},{11,9}})
        oxyd(8,5)
        oxyd(9,4)
        oxyd(10,4)
        oxyd(11,5)
        oxyd(8,7)
        oxyd(9,8)
        oxyd(10,8)
        oxyd(11,7)
    elseif mytimer==12 then
        set_stones("st-rock1", 
{{8,5},{9,4},{10,4},{11,5},{8,7},{9,8},{10,8},{11,7}})
        oxyd(5,5)
        oxyd(5,7)
        oxyd(9,5)
        oxyd(10,5)
        oxyd(9,7)
        oxyd(10,7)
        oxyd(14,5)
        oxyd(14,7)
        ill_timer_difficult()
    end
    -- shuffle on every call
    oxyd_shuffle()
end

-- first initiate
if not difficult then
    ill_timer_easy()
else
    ill_timer_difficult()
end

-- documents
set_item("it-document", 1,1, {text="text1"})

-- blackball
set_actor("ac-blackball", 18.5, 1.5, {player=0})
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
      <el:string el:key="text1">
        <el:english el:translate="true">illmind's be quick or be 
dead</el:english>
      </el:string> 
    </el:i18n>
  </el:protected>
</el:level>

reply via email to

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