Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Hi there,
I'm making a scorched earth-style game and it's all coming together pretty well, but I'm having some real problems with collision. Right now what I've got is pretty rudimentary but I can't work out how to do it any better. Basically when the tank fires a shot, the shot moves in a parabola with variables yspeed and xspeed that get added on to the y and x positions of the shot each frame. The shot cannot collide with anything for two frames (to prevent collision with the tank itself) but after that, the shot should explode on contact with any pixel that isn't the colour of the background (i.e. black). However, if moving at a decent speed it will usually move through walls for a frame or so before exploding.

I've attached the cartridge and the relevant collision code.

function shot:update()
 if self.timeout > 0 then
  self.x = flr(self.x + self.xspeed)
  self.y = flr(self.y + self.yspeed)
  self.yspeed = self.yspeed + gravity
  self.timeout -= 1
 else 
  if self.x>=127 then
   self.x = 127
   fired = false
  end
  if self.x<=0 then
   self.x = 0
   fired = false
  end
  if self.y>=127 then
   self.y = 127
   fired = false
   explode = true
   sfx(1,1)
  end
  if pget(self.x,self.y+3)!=0 
  and pget(self.x,self.y+3)!=textclr then
   fired = false
   explode = true
   sfx(1,1)
  end
  self.x = flr(self.x + self.xspeed)
  self.y = flr(self.y + self.yspeed)
  self.yspeed = self.yspeed + gravity
 end
end

[ Continue Reading.. ]

12 comments


Cart #27642 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Just a sketch!

Controls
Left/right arrows: Select
Z/X: Action

4
0 comments


Cart #27639 | 2016-08-29 | Code ▽ | Embed ▽ | No License
1


Kakigori is a kind of frappe

1
1 comment


Fewer colors

Cart #27672 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

More colors (noisier)

Cart #27637 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Room for perf improvements, including those scanlines. But it works!

・。゚[̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅]。゚.*

1
5 comments


Cart #27612 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Made a little demo for Matataki.midi, converted by the great gamax92. This is my second demo, and I'm really proud of it. :)

4
2 comments


Cart #27609 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
28

For Ludum Dare 36! The theme is "ancient technology", though it didn't exactly take center stage here.

Tiny puzzle-platformer with some less common mechanics.

Once again, to fit within the compressed size limit, I had to strip out all the comments. :(
Original source here: https://c.eev.ee/isaacs-descent/isaac-pristine.p8

28
9 comments


Cart #27738 | 2016-08-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Cart #27602 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

A canoe battling game. Use the ancient technologies of CANOE and SPEAR to defeat your rival canoes! Complete 7 levels of canoe mayhem, or battle against your friends in versus mode.

Controls:
LEFT to paddle left
RIGHT to paddle right
Z to throw a spear

Supports 1 to 4 players.

Made in 48 hours for Ludum Dare 36! Also my first PICO-8 game.

Updated (8/30/2016 19:26 EST) to fix a bug that made the versus AI mode unwinnable if you tried to continue after losing. Also fixed a bug where you could select a non-existent menu option.

8
2 comments


Cart #27595 | 2016-08-29 | Code ▽ | Embed ▽ | No License
6


It's your first day at the museum and your boss is sick. Guess you'll have to improvise!

Made in 48 hours for Ludum Dare 36 based on the theme 'Ancient Technology'.
Timelapse
LD entry page

6
2 comments


Cart #27594 | 2016-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #27585 | 2016-08-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Basic 2D shooter. My first try at using PICO-8 as a fun platform.

Aiming for a Galaga-style game with wave-buildup and player powerups.

Want to focus on solid controls and achievable art :) .

1 comment



Hi all, this is my unfinished Ludum Dare 36 submission (http://ludumdare.com/compo/ludum-dare-36/?uid=20847). I started building the game with the day/night system and text menus; by the time I was 40 hours in I realized that I hadn't found the game mechanic and decided to call it quits. Still learned a ton, though.

Quick shout out to geckojsc for the lua coroutine dialog system tutorial: https://www.lexaloffle.com/bbs/?tid=3833 I used a lot of the work here with a few tweaks to build the textboxes and in-game menu. One issue I'd like to address in the future is a more terse way of setting up actors and conditional scripts. I feel like when Pico-8 cartridges reach a length of ~1000 chars or so, things start to get really messy in terms of source code organization. Additionally, there were a few functions that I had trouble "hoisting" and I couldn't figure out why. If anyone has pointers on how to simplify the data structures I'm using or specifically better use of tables, please let me know. Thanks for taking a look!

1
1 comment


Cart #27573 | 2016-08-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

OVERVIEW
In Nile Ale you're an owner of a temple beer brewery in Ancient Egypt. Brew beer and sell it to people. Hire more slaves... err, workers, produce more beer. Build your Ancient Egypt beer empire!

CONTROLS
Arrows - choose options
X - open menu, hold to choose options in action menu, press to choose options in other menus

GETTING STARTED FAQ
For people that have trouble getting into the game. FAQ

TIPS
Don't forget to give a raise to your workers.
Beer quality depends on some proportion ratios. Guess them and you'll be fine.

[ Continue Reading.. ]

5
3 comments


Cart #27571 | 2016-08-28 | Code ▽ | Embed ▽ | No License
2

WARNING: Flashing images

My Ludum Dare 36 submission on the theme of Ancient Technology.

Ludum Dare submission link:
http://ludumdare.com/compo/ludum-dare-36/?action=preview&uid=95862

2
5 comments


Cart #27563 | 2016-08-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

A Matrix-like raining code animation made with m7kenji's Japanese KANA Font
https://www.lexaloffle.com/bbs/?tid=27548

12
5 comments


Cart #27550 | 2016-08-28 | Code ▽ | Embed ▽ | No License
9


イメージ素材のみとなります。3*5ドットのPICO-8のフォントと同じサイズです。
ぱっと見た感じでは読めますが文字の前後の並びによっては著しく可読性が下がってしまうかもしれません。
改善の余地がまだある素材ですが、もし良ければお使いください。

9
0 comments


Cart #27538 | 2016-08-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

It has been almost six hours since you have entered this cursed pyramid. Upon reaching the table, you noticed four carved patterns on the wall and a bag full of runes. You understand you have to make those patterns as fast as you can. Walls start contracting on you when you approach the table.

Here is the link for the LudumDare : http://ludumdare.com/compo/ludum-dare-36/?action=preview&uid=113100

4
3 comments


Cart #27530 | 2016-08-28 | Code ▽ | Embed ▽ | No License

Cart #27528 | 2016-08-28 | Code ▽ | Embed ▽ | No License

this game is for ludum dare 36 participation.

cast spell and beat invaders.

[control]
cursor: move
z: pick 1 letter
x: backspace

for example, when you pick "BEAM" you cast beam.
sorry it have only few words for now.

1 comment



I small demo I built during Ludum Dare 36

Now with music!

Follow me on twitter @hypirlink

1
3 comments


I hit an out of memory error and for once I don't know where the leak is...usually I know because the last change I made triggered it, not the case this time (or I just lost track of my shit) - either way, not sure exactly how to debug to trace it down.

Any tips or tricks are appreciated.

3 comments


Cart #29382 | 2016-09-25 | Code ▽ | Embed ▽ | No License
74

There were bricks in the sky. Why?

They fell on our cities - we did not like this.

We considered sending fighter jets against them, or surface-to-air missiles.

Wiser heads prevailed and instead an enormous, gravity defying bat was constructed, armed with spherical counter-measures and launched to protect us.

Sounds like the plot of a soon-to-be-commissioned movie (contact details in my about section).

--
Whelp. Arrows, X to serve. Bounce bricks for bonuses, multiple times for more.

There's only a few levels there at the moment, so I may add more. It might be a bit hard though.

Obviously I apologise for the 'music'. But nothing else.

UPDATE 1

This game is too hard! I've reduced the number of bricks, made the bat a bit bigger and added some multi-ball power bricks.

It's STILL too hard! Oh well.

UPDATE 2

Changed the bat controls to be less floaty (thanks for the feedback :)

Chris Donnelly (@gruber_music) has also very kindly spent some time on greatly enhancing the simple ditty I had playing, so there is now real music!

74
12 comments


Cart #27815 | 2016-09-01 | Code ▽ | Embed ▽ | No License
15

Old_version:

Cart #27480 | 2016-08-27 | Code ▽ | Embed ▽ | No License
15

Here's a peek at a voxel based flight simulator engine that I have been working on.
The engine is heavily inspired by Comanche:
https://en.wikipedia.org/wiki/Comanche_(series)

I've been having fun with the smooth and seamless map generation. Perhaps other folks can make use of that code.

I don't think that I am ever going to get the frame rate up to butter smooth 30fps without dropping the res so low that things are unreadable, but maybe a flight sim can settle at 15 and be okay.

Updates:
--Added controllable ship with shadow
--Up and down controls height
--Z controls thrust
--Rings to collect
--F to explore the ship / return to flight mode

-Electric Gryphon

15
6 comments




Top    Load More Posts ->