Skip to content

notnullgames/lop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very simple tester for null0 tiled map API.

I create a game-map style adventure.h, and a little user-code to define what happens, which could be lightly modified to do some other style (like SMB) then things are defined as objects in the Tiled maps.

screenshot

I added some no-install convenience scripts, if you have node installed:

# watch web for change, rebuild
npm start

# watch native for change, rebuild
npm run native:watch



# just build & run native (./build/lop)
npm run native

# just build & run native (./build/lop) in a debugger (type bt to see backtrace)
npm run debug

# just build web (docs/)
npm run web

# clean up any built files
npm run clean

collisions

Add a couple object-layers to your map:

  • objects - put the player & anything they interact with here. Collision is based on player-hitbox (covers the body) to whole-tile. set class to ysort to get that behavior.
  • collisions - I also want non-interactive (static geometry) collisions, but there some issues: cute_tiled does not like shapes, etc. I just used regular tiles here. it's not as fine-grained, but works fine for simple game

About

The Lengend of Pntr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published