Free source code

I have updated the repo with a few games from the past 12 months:

  • Helo Storm
  • The Lost Caves
  • Pathfinder
  • Pixel Crypt
  • Snowline
  • Urban Climber
  • Maze Mania

GitHub link - https://github.com/benjames-171/defold-games
Play the games - https://benjames171.itch.io/

14 Likes

Doing lords work, thank you :pray:

3 Likes

Time to freshen up this repo. Have removed some older games and added the following:

  • Defrog
  • Exolon:REDUX
  • Incinerator
  • Mystery Mansion
  • Planetoid
  • Timelooper
  • Typhoon Baloon

GitHub repo - https://github.com/benjames-171/defold-games
Play the games - https://benjames171.itch.io

Have fun!

23 Likes

Thank you so much for sharing these examples with the community!

8 Likes

Thank you very much, your work is amazing :grinning_face_with_smiling_eyes:

1 Like

Hey, sorry but I can’t figure out how you did the screen transition in ExolonREDUX. Could you help me please ?
My guess is that it has something to do with the X tiles. :sweat_smile:

The X tiles are just guides left over from when I designed the levels. They denote the corners of the “rooms”.

Each level is stored in a tilemap - level1.tilemap, level2.tilemap… etc. but these are not directly displayed on the screen.

In common.collection/view there is screen.tilemap which room data is copied to for each room in turn when the player enters.

Check level.script for the functions that deal with that.

local function initscreen(self)
	for y = 2, 12 do
		for x = 1, 16 do
			local t = tilemap.get_tile("#tilemap", "world", x + (data.screen * 16), y)
			tilemap.set_tile("/common/view#screen", "world", x, y, t)
		end
	end
end

This function copies the room data from the level tilemap to the display (screen) tilemap. Not the simplest way to display a tilemap but I wanted the make the game as optimal as possible, so it only updates and displays what is on the screen.

3 Likes

Thank you so much ! :grinning_face_with_smiling_eyes: :grinning_face_with_smiling_eyes: :grinning_face_with_smiling_eyes: