All Projects → potato47 → Jump

potato47 / Jump

微信跳一跳复刻 CocosCreator + Typescript 在线试玩 https://potato47.github.io/game/jump/

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Jump

Braincup
Train your math skills, memory and focus.
Stars: ✭ 137 (-2.14%)
Mutual labels:  game
Slither
slither.io imitation
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
Elm Mogee
A WebGL platformer that fits into 64x64px screen
Stars: ✭ 140 (+0%)
Mutual labels:  game
Kaetram Open
An open-source 2D HTML5 adventure based off BrowserQuest (BQ).
Stars: ✭ 138 (-1.43%)
Mutual labels:  game
Eosio Card Game Repo
The Elemental Battles Tutorial is divided into easy to follow lessons that take you through the process of creating your own fully-functional blockchain-based dApp.
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
Wog
In the Wake of Gods 3.59 alpha
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
Azuriom
Azuriom is a modern, reliable, fast and secure game CMS.
Stars: ✭ 135 (-3.57%)
Mutual labels:  game
Windowsgsm
🎲 A powerful tool to manage game servers. Equipped with a GUI for server admins to install, import, start, stop, restart, update, and automate multiple servers with a push of a button.
Stars: ✭ 141 (+0.71%)
Mutual labels:  game
2048.cpp
🎮 Fully featured terminal version of the game "2048" written in C++
Stars: ✭ 1,886 (+1247.14%)
Mutual labels:  game
Gengineserver
netty4游戏服务端,依赖游戏核心包
Stars: ✭ 140 (+0%)
Mutual labels:  game
Leelasabaki
Leela (Zero) integration with Sabaki.
Stars: ✭ 138 (-1.43%)
Mutual labels:  game
Cross Lib
CROSS LIB - A universal 8-bit library and some games built with it
Stars: ✭ 137 (-2.14%)
Mutual labels:  game
Android Jigsaw Puzzle
Android app that allows you to draw anything and turn it into a jigsaw puzzle.
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
New Eden Social
🌌 New Eden Social 🚀
Stars: ✭ 136 (-2.86%)
Mutual labels:  game
Stellar
🌟 An open-source IDE for game development.
Stars: ✭ 140 (+0%)
Mutual labels:  game
Bootmine
Bootable minesweeper game in a 512-byte boot sector
Stars: ✭ 136 (-2.86%)
Mutual labels:  game
Ore Infinium
Ore Infinium, Open Source multiplayer Terraria-inspired Sci-fi game, focused on technology, devices and researching. Written in Kotlin (JVM), LibGDX. Cross platform
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
Rillserver
skynet game server
Stars: ✭ 139 (-0.71%)
Mutual labels:  game
Elovation
Simple rails app to track your game results with elo and trueskill ratings
Stars: ✭ 140 (+0%)
Mutual labels:  game
Ioquake3 Mac Install
Install ioquake3 on macOs in one command (unofficial)
Stars: ✭ 140 (+0%)
Mutual labels:  game

jump

微信跳一跳复刻 CocosCreator + Typescript 在线试玩 https://potato47.github.io/game/jump/

简单讲两句

说一下核心逻辑

一开始我做的时候想用物理引擎,或者简单的用一下碰撞组件,后来发现很麻烦,不好控制落点

多次观察微信跳一跳的界面发现了一个规律:

人物每次跳跃落地都是固定的几个点,如果把跳跃的方块看做九宫格的正方形,那么落点一共可以分为五个,也就是上下左右中

一个非常简便的方法就出来了:

不需要人物落地之后再判断是否跳到方块上

人物跳跃之前就根据跳跃距离(跳跃距离根据蓄力时间得出),算出人物跳跃后距离目标方块哪个点(上下左右中)最近,直接让人物执行一个固定距离的跳跃动作就可以了,完全不需要物理引擎和碰撞系统,每个落点都是预设好的

当然要设定一个差值,当大于这个差值时,就代表跳到了方块外面


我还写了一个2d横版的跳一跳,感兴趣的可以看我另一个小游戏集合项目 https://github.com/potato47/so-many-games

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].