Log In  
Follow
wwwhizz
[ :: Read More :: ]

Cart #51886 | 2018-04-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is my compo submission for LD41.

The 2 incompatible genres are platformer and minigames. Everytime you jump on an enemy you get to play heads or tails. The idea was to have to play a different minigame every time (e.g. like Wario Ware).

Unfortunately I ran out of time, due to some nasty bugs and not having the whole 48 hours available. I shouldn't have spent this much time on the level generation algorithm either.

What's missing:

  • fancy backgrounds,
  • bleepy music,
  • cool sfx,
  • many more minigames,
  • an actual goal,
  • timer
  • checkpoints
  • score
P#51887 2018-04-22 16:23 ( Edited 2018-04-22 20:23)

[ :: Read More :: ]

Thought you guys might like it. I needed it to programmatically randomize the look of sprites in my map.

With peek you can read a 32-bit value, while a pixel color is 16 bits. One address therefore holds two pixels. A bit of arithmatic does the trick.

Long version:

-- set sprite pixel
-- s: sprite number
-- x: x position of pixel in sprite [0..7]
-- y: y position of pixel in sprite [0..7]
-- c: new color
function ssp(s,x,y,c)
 addr=flr(s/16)*8*64+(s%16*4)+64*y+flr(x/2) -- current decimal address
 curr=peek(addr) -- current 2-pixel value
 if(x%2==0) then
  -- need to change pixel on the right
  lcol=flr(curr/16)
  rcol=c
 else
  -- need to change pixel on the left
  lcol=c
  rcol=curr%16
 end
 ncol=16*lcol + rcol -- new decimal memory value
 poke(addr,ncol)
end

Shortened version:

function ssp(s,x,y,c)
 a=flr(s/16)*512+(s%16*4)+64*y+flr(x/2) -- 2-pixel address
 v=peek(a)
 if(x%2==0) then
  poke(a,16*flr(v/16) + c)
 else
  poke(a,16*c+v%16)
 end
end
P#51837 2018-04-21 11:09 ( Edited 2018-08-24 16:17)

[ :: Read More :: ]

Cart #46965 | 2017-12-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

This is my entry for LD40. The Ludum Dare theme was "The more you have, the worse it is". Certainly true for food.

In this game you play a glutton, someone who eats a lot. You get fatter and fatter and moving gets harder. How much can you eat over seven courses?

P#46964 2017-12-03 16:27 ( Edited 2017-12-03 21:56)

[ :: Read More :: ]

TIP: Play in full screen!

Cart #43241 | 2017-08-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

This is my contribution to the Ludum Dare 39 compo. The theme of this LD was Running out of Power.

Story

The year is 3017
Earth is under attack again...
You are the last space pilot.
Unfortunately, your ship has only one generator left..
Choose wisely where you direct its power!

How to play

  • Use <left> and <right> arrow keys to move
  • Use <up> and <down> to select where you direct your power: recharge your cannon, rockets or shield
  • Use <z> to fire your cannon
  • Use <x> to fire your rockets
  • Catch powerups to replenish some power, do more damage, recover faster
  • Note that your cannon is more powerful when fully charged
  • The color of the bullets indicate how much damage they do, same for the enemy's bullets.

Update 1.4: bug fix, enemies aiming bullets are now deleted when off-screen
Update 1.5: bug fix, shield powerup never came due to wrong number of powerups in line 241 (changed 4 to 5)

P#42921 2017-07-30 13:35 ( Edited 2017-08-14 13:32)

Follow Lexaloffle:          
Generated 2024-03-29 14:17:12 | 0.065s | Q:15