Web
Analytics
Log In  
2

Cart [#55053#] | Copy | Code | 2018-08-13 | Link
2

About

You hate trash and bacterias. And well, your home area got corrupted… It’s time for a big clean out, tho it’s not so easy to navigate in it, as it was before. Explore 31 level, jump on pads, ignore physic rules, and just have fun :D

Controls

  • Left/right - move
  • Up/down - manage gravity
  • X - switches gravity (hotkey for up/down)
  • P/enter - pause, as well as music/sfx muting and progress reset and lowrez mode
  • SDEF - move camera around (only in lowrez mode)

LDJAM entry: https://ldjam.com/events/ludum-dare/42/corrupted-space
On itch.io: egordorichev.itch.io/corrupted-space

ludumdare platformer puzzle
P#55054 2018-08-13 07:22 ( Edited 2018-08-13 17:50)

8

Cart [#53087#] | Copy | Code | 2018-05-29 | Link
8

Made for Magazine Jam https://www.lexaloffle.com/bbs/?tid=28950
Controls: x to start, left and right to move
Feel free to reuse the code

Cart is under 65 lines (with a few comments and empty lines added), 333 tokens and 1200 chars

P#53088 2018-05-29 12:04 ( Edited 2018-06-19 13:42)

8

Cart [#52680#] | Copy | Code | 2018-05-13 | Link
8

Hello guys, I'm working on a short article for fanzine #5, and I'm going to talk about game feel. So I wrote this tiny library that is super helpful and allows you to simply tween any value in your objects with some cool math functions. Here is a small example:

function _init()
-- the object that has your value
p={
 x=32,y=32
}

-- the tween function, takes args:
-- p - your object
-- table - table with the target values you want
-- 1 (optional) - time (in seconds) in what your value should end with your target value, default is 1
-- "quad_in_out" - easing function, you can look up all defined functions in the tab 1, I've implemented a few examples from https://easings.net/
local v=tween(p,{x=96,y=96},1,"quad_in_out")

-- you can also define a function that will run at the end of tweening
v.onend=function()
 stop()
end

-- and you can even set the delay before tweening you object!
v.delay=0.2
end

function _update60()
-- just update the library, if you use _update, update value to 1/30
tween_update(1/60)
end

function _draw()
cls()
-- draw our circle!
circfill(p.x,p.y,4,8)
end

The minimum source code ~340 tokens

-- tween engine
-- by @egordorichev

local back=1.70158

-- feel free to remove unused functions to save up some space
functions={
["linear"]=function(t) return t end,
["quad_out"]=function(t) return -t*(t-2) end,
["quad_in"]=function(t) return t*t end,
["quad_in_out"]=function(t) t=t*2 if(t<1) return 0.5*t*t
    return -0.5*((t-1)*(t-3)-1) end,
["back_in"]=function(t) local s=back  return t*t*((s+1)*t-s) end,
["back_out"]=function(t) local s=back t-=1 return t*t*((s+1)*t+s)+1 end,
["back_in_out"]=function(t) local s=back t*=2 if (t<1) s*=1.525 return 0.5*(t*t*((s+1)*t-s))
 t-=2 s*=1.525  return 0.5*(t*t*((s+1)*t+s)+2) end
}

local tasks={}

function tween(o,vl,t,fn)
 local task={
  vl={},
  rate=1/(t or 1),
  o=o,
  progress=0,
  delay=0,
  fn=functions[fn or "quad_out"]
 }

 for k,v in pairs(vl) do
  local x=o[k]
  task.vl[k]={start=x,diff=v-x}
 end

 add(tasks,task)
 return task
end

function tween_update(dt)
 for t in all(tasks) do
  if t.delay>0 then
   t.delay-=dt
  else
   t.progress+=dt
   local p=t.progress*t.rate
   local x=t.fn(p>=1 and 1 or p)
   for k,v in pairs(t.vl) do
    t.o[k]=v.start+v.diff*x
   end

   if p>=1 then
    del(tasks,t)
    if (t.onend) t.onend()
   end 
  end
 end
end

*update, fixed tasks not looking onto t var

tween engine
P#52681 2018-05-13 09:16 ( Edited 2018-08-13 01:46)

7

Cart [#47553#] | Copy | Code | 2017-12-21 | Link
4

Cart [#47021#] | Copy | Code | 2017-12-04 | Link
4

Cart [#47019#] | Copy | Code | 2017-12-04 | Link
4

Cart [#47018#] | Copy | Code | 2017-12-04 | Link
4

Cart [#47005#] | Copy | Code | 2017-12-04 | Link
4

Cart [#46961#] | Copy | Code | 2017-12-03 | Link
7

This is my entry for the ludum dare 40, read the rules/vote here.

This is a Celeste-inspired 2d exploration platformer, where you play as a guy, who found his self in a strange, mysterious world. He attempts to find his way back, to his world and recover the past. Collect strawberries, fight monsters, avoid spikes, solve puzzles.

jam ludumdare platformer adventure
P#46962 2017-12-03 16:05 ( Edited 2017-12-21 10:28)

4

Cart [#44343#] | Copy | Code | 2017-09-19 | Link
4

Press X/C/Z to generate a new pizza!

P#44344 2017-09-19 06:30

18

Cart [#43420#] | Copy | Code | 2017-08-19 | Link
18

Cart [#43393#] | Copy | Code | 2017-08-18 | Link
18

Cart [#43392#] | Copy | Code | 2017-08-18 | Link
18

Cart [#43308#] | Copy | Code | 2017-08-17 | Link
18

Dungeon game inspired by Pixel dungeon for LOWREZJAM
https://egordorichev.itch.io/lowrez-dungeon

Controls

C/Z - use current item
X + arrows - select inventory slot
X + C/Z - delete item (be careful :D)
Arrows - move

lowrezjam rpg
P#43309 2017-08-17 01:41 ( Edited 2017-08-20 04:04)

3

Cart [#42951#] | Copy | Code | 2017-07-31 | Link
3

Cart [#42910#] | Copy | Code | 2017-07-30 | Link
3

Small shooter game written for Ludum Dare 39 in 48 hours.

About the game

You need to control your space ship and keep eye on the energy! Every shot cost's you some, as you move forward, your battery discharges.

Avoid enemies, kill the boss and survive as long, as you can!

Controls

Arrows - move
X - shoot
C/Z - open shop

P#42911 2017-07-30 09:41 ( Edited 2017-07-31 07:29)


:: More
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-08-14 06:29 | 0.550s | 2097k | Q:149