CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - max plus
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - max plus - List
[
JSP/Java
]
jsweixindfj
DL : 0
纯JavaScript模仿微信打飞机游戏,做网页小游戏的借鉴下,界面设计是竖长形仿手机屏幕风格,游戏效果流畅。具有分数统计,里面的JS封装类中包括有创建飞机类、飞机移动行为控制,创建子弹类,产生min到max之间的随机数,判断本方飞机是否移出边界,如果移出边界,则取消mousemove事件,反之加上mousemove事件,为暂停界面的继续按钮添加暂停事件,创建敌方飞机类、碰撞判断、完成界面的初始化,敌方小飞机一个,我方飞机一个。-Pure JavaScript to mimic the micro-channel planes games, web games do reference, interface design is an elongated vertical screen style imitation mobile phone, game results and smooth. Have fractional statistics, which the JS wrapper classes include classes created aircraft, aircraft control movement behavior, create bullet classes, random number generation min to max between the aircraft to determine whether the party out of the boundaries, if removed from the border, then canceled mousemove event, whereas plus mousemove event, adding to continue pause button to pause interface events, create class enemy aircraft, collision judgment, complete interface initialization, one, our enemy aircraft a small plane.
Date
: 2025-12-23
Size
: 229kb
User
:
heibao
[
JSP/Java
]
jsweixindfj
DL : 0
纯JavaScript模仿微信打飞机游戏,做网页小游戏的借鉴下,界面设计是竖长形仿手机屏幕风格,游戏效果流畅。具有分数统计,里面的JS封装类中包括有创建飞机类、飞机移动行为控制,创建子弹类,产生min到max之间的随机数,判断本方飞机是否移出边界,如果移出边界,则取消mousemove事件,反之加上mousemove事件,为暂停界面的继续按钮添加暂停事件,创建敌方飞机类、碰撞判断、完成界面的初始化,敌方小飞机一个,我方飞机一个-Pure JavaScript to mimic the micro-channel planes games, web games do reference, interface design is an elongated vertical screen style imitation mobile phone, game results and smooth. Have fractional statistics, which the JS wrapper classes include classes created aircraft, aircraft control movement behavior, create bullet classes, random number generation min to max between the aircraft to determine whether the party out of the boundaries, if removed the border, then canceled mousemove event, whereas plus mousemove event, adding to continue pause button to pause interface events, create class enemy aircraft, collision judgment, complete interface initialization, the enemy of a small plane, one of our aircraft
Date
: 2025-12-23
Size
: 228kb
User
:
lpudn81
[
JSP/Java
]
Maximum-Subarray
DL : 0
求一个数组中的连续的和最大的子数组。采用滑动窗口解决。sum 如果小于0,置为0,再加上当前值。然后再与max相比,取大的-Seeking a continuous array and the largest sub-array. Sliding window resolved. If the sum is less than 0, set to 0, plus the current value. Then compared to the max, whichever is greater
Date
: 2025-12-23
Size
: 1kb
User
:
achun
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.